| Top |
GdaDataModel columnsGdaDataModel columns — Management of GdaDataModel column attributes |
| GdaColumn * | gda_column_new () |
| GdaColumn * | gda_column_copy () |
| const gchar * | gda_column_get_name () |
| const gchar * | gda_column_get_description () |
| const gchar * | gda_column_get_dbms_type () |
| GType | gda_column_get_g_type () |
| gboolean | gda_column_get_allow_null () |
| gboolean | gda_column_get_auto_increment () |
| gint | gda_column_get_position () |
| const GValue * | gda_column_get_default_value () |
| void | gda_column_set_name () |
| void | gda_column_set_description () |
| void | gda_column_set_dbms_type () |
| void | gda_column_set_g_type () |
| void | gda_column_set_allow_null () |
| void | gda_column_set_auto_increment () |
| void | gda_column_set_position () |
| void | gda_column_set_default_value () |
GdaColumn *
gda_column_copy (GdaColumn *column);
Creates a new GdaColumn object from an existing one.
gboolean
gda_column_get_allow_null (GdaColumn *column);
Gets the 'allow null' flag of the given column.
void gda_column_set_name (GdaColumn *column,const gchar *name);
Sets the name of column
to name
.
void gda_column_set_description (GdaColumn *column,const gchar *descr);
Sets the column's description
void gda_column_set_dbms_type (GdaColumn *column,const gchar *dbms_type);
Defines column
's database type
void gda_column_set_g_type (GdaColumn *column,GType type);
Sets the type of column
to type
.
void gda_column_set_allow_null (GdaColumn *column,gboolean allow);
Sets the 'allow null' flag of the given column.
void gda_column_set_auto_increment (GdaColumn *column,gboolean is_auto);
Sets the auto increment flag for the given column.
void gda_column_set_position (GdaColumn *column,gint position);
Sets the position of the column refer to in the containing data model.
column |
a GdaColumn. |
|
position |
the wanted position of the column in the containing data model. |
“desc” property “desc” char *
Column's description.
Owner: GdaColumn
Flags: Read / Write
Default value: NULL
“id” property “id” char *
Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).
Owner: GdaColumn
Flags: Read / Write
Default value: NULL
“g-type-changed” signalvoid user_function (GdaColumn *column, GType *old_type, GType *new_type, gpointer user_data)
Gets emitted whenever column
's type has been changed
column |
the GdaColumn object |
|
old_type |
the column's previous type |
|
new_type |
the column's new type |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“name-changed” signalvoid user_function (GdaColumn *column, char *old_name, gpointer user_data)
Gets emitted whenever column
's name has been changed
column |
the GdaColumn object |
|
old_name |
the column's previous name |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last