Top | ![]() |
![]() |
![]() |
![]() |
GdaDataModel columnsGdaDataModel columns — Management of GdaDataModel column attributes |
GdaColumn *
gda_column_copy (GdaColumn *column
);
Creates a new GdaColumn object from an existing one.
void gda_column_set_defined_size (GdaColumn *column
,glong size
);
Sets the defined size of a GdaColumn.
void gda_column_set_name (GdaColumn *column
,const gchar *name
);
Sets the name of column
to name
.
void gda_column_set_title (GdaColumn *column
,const gchar *title
);
Sets the column's title
void gda_column_set_table (GdaColumn *column
,const gchar *table
);
Sets the name of the table to which the given column belongs.
void gda_column_set_caption (GdaColumn *column
,const gchar *caption
);
Sets column
's caption
.
void gda_column_set_scale (GdaColumn *column
,glong scale
);
Sets the scale of column
to scale
.
void gda_column_set_dbms_type (GdaColumn *column
,const gchar *dbms_type
);
void gda_column_set_g_type (GdaColumn *column
,GType type
);
Sets the type of column
to type
.
gboolean
gda_column_get_allow_null (GdaColumn *column
);
Gets the 'allow null' flag of the given column.
void gda_column_set_allow_null (GdaColumn *column
,gboolean allow
);
Sets the 'allow null' flag of the given column.
void gda_column_set_primary_key (GdaColumn *column
,gboolean pk
);
Sets the 'primary key' flag of the given column.
void gda_column_set_unique_key (GdaColumn *column
,gboolean uk
);
Sets the 'unique key' flag of the given column.
const gchar *
gda_column_get_references (GdaColumn *column
);
Reference is returned in tablename.fieldname format. Do not free this variable, it is used internally within GdaColumn.
void gda_column_set_references (GdaColumn *column
,const gchar *ref
);
Sets column
's references
.
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. |
“g-type-changed”
signalvoid user_function (GdaColumn *gdacolumn, gint arg1, gint arg2, gpointer user_data)
gdacolumn |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“name-changed”
signalvoid user_function (GdaColumn *gdacolumn, gchar *arg1, gpointer user_data)
gdacolumn |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last