![]() |
![]() |
![]() |
GNOME Data Access 3.0 manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
GdaDataModel columnsGdaDataModel columns — Management of GdaDataModel column attributes |
GdaColumn; GdaColumn * gda_column_new (void
); GdaColumn * gda_column_copy (GdaColumn *column
); glong gda_column_get_defined_size (GdaColumn *column
); void gda_column_set_defined_size (GdaColumn *column
,glong size
); const gchar * gda_column_get_name (GdaColumn *column
); void gda_column_set_name (GdaColumn *column
,const gchar *name
); const gchar * gda_column_get_title (GdaColumn *column
); void gda_column_set_title (GdaColumn *column
,const gchar *title
); const gchar * gda_column_get_table (GdaColumn *column
); void gda_column_set_table (GdaColumn *column
,const gchar *table
); const gchar * gda_column_get_caption (GdaColumn *column
); void gda_column_set_caption (GdaColumn *column
,const gchar *caption
); glong gda_column_get_scale (GdaColumn *column
); void gda_column_set_scale (GdaColumn *column
,glong scale
); const gchar * gda_column_get_dbms_type (GdaColumn *column
); void gda_column_set_dbms_type (GdaColumn *column
,const gchar *dbms_type
); GType gda_column_get_g_type (GdaColumn *column
); void gda_column_set_g_type (GdaColumn *column
,GType type
); gboolean gda_column_get_allow_null (GdaColumn *column
); void gda_column_set_allow_null (GdaColumn *column
,gboolean allow
); gboolean gda_column_get_primary_key (GdaColumn *column
); void gda_column_set_primary_key (GdaColumn *column
,gboolean pk
); gboolean gda_column_get_unique_key (GdaColumn *column
); void gda_column_set_unique_key (GdaColumn *column
,gboolean uk
); const gchar * gda_column_get_references (GdaColumn *column
); void gda_column_set_references (GdaColumn *column
,const gchar *ref
); gboolean gda_column_get_auto_increment (GdaColumn *column
); void gda_column_set_auto_increment (GdaColumn *column
,gboolean is_auto
); gint gda_column_get_position (GdaColumn *column
); void gda_column_set_position (GdaColumn *column
,gint position
); const GValue * gda_column_get_default_value (GdaColumn *column
); void gda_column_set_default_value (GdaColumn *column
,const GValue *default_value
);
GdaColumn * gda_column_copy (GdaColumn *column
);
Creates a new GdaColumn object from an existing one.
|
column to get a copy from. |
Returns : |
a newly allocated GdaColumn with a copy of the data
in column . |
glong gda_column_get_defined_size (GdaColumn *column
);
|
a GdaColumn . |
Returns : |
the defined size of column . |
void gda_column_set_defined_size (GdaColumn *column
,glong size
);
Sets the defined size of a GdaColumn.
|
a GdaColumn. |
|
the defined size we want to set. |
const gchar * gda_column_get_name (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the name of column . |
void gda_column_set_name (GdaColumn *column
,const gchar *name
);
Sets the name of column
to name
.
|
a GdaColumn. |
|
the new name of column . |
const gchar * gda_column_get_title (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the column's title |
void gda_column_set_title (GdaColumn *column
,const gchar *title
);
Sets the column's title
|
a GdaColumn. |
|
title name. |
const gchar * gda_column_get_table (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the name of the table to which this column belongs. |
void gda_column_set_table (GdaColumn *column
,const gchar *table
);
Sets the name of the table to which the given column belongs.
|
a GdaColumn. |
|
table name. |
const gchar * gda_column_get_caption (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
column 's caption. |
void gda_column_set_caption (GdaColumn *column
,const gchar *caption
);
Sets column
's caption
.
|
a GdaColumn. |
|
caption. |
glong gda_column_get_scale (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the number of decimals of column . |
void gda_column_set_scale (GdaColumn *column
,glong scale
);
Sets the scale of column
to scale
.
|
a GdaColumn. |
|
number of decimals. |
const gchar * gda_column_get_dbms_type (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the dbms_type of column . |
void gda_column_set_dbms_type (GdaColumn *column
,const gchar *dbms_type
);
GType gda_column_get_g_type (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the type of column . |
void gda_column_set_g_type (GdaColumn *column
,GType type
);
Sets the type of column
to type
.
|
a GdaColumn. |
|
the new type of column . |
gboolean gda_column_get_allow_null (GdaColumn *column
);
Gets the 'allow null' flag of the given column.
|
a GdaColumn. |
Returns : |
whether the given column allows null values or not (TRUE or FALSE ). |
void gda_column_set_allow_null (GdaColumn *column
,gboolean allow
);
Sets the 'allow null' flag of the given column.
|
a GdaColumn. |
|
whether the given column should allows null values or not. |
gboolean gda_column_get_primary_key (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
whether if the given column is a primary key (TRUE or FALSE ). |
void gda_column_set_primary_key (GdaColumn *column
,gboolean pk
);
Sets the 'primary key' flag of the given column.
|
a GdaColumn. |
|
whether if the given column should be a primary key. |
gboolean gda_column_get_unique_key (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
whether if the given column is an unique key (TRUE or FALSE ). |
void gda_column_set_unique_key (GdaColumn *column
,gboolean uk
);
Sets the 'unique key' flag of the given column.
|
a GdaColumn. |
|
whether if the given column should be an unique key. |
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.
|
a GdaColumn. |
Returns : |
column 's references. |
void gda_column_set_references (GdaColumn *column
,const gchar *ref
);
Sets column
's references
.
|
a GdaColumn. |
|
references. |
gboolean gda_column_get_auto_increment (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
whether the given column is an auto incremented one (TRUE or FALSE ). |
void gda_column_set_auto_increment (GdaColumn *column
,gboolean is_auto
);
Sets the auto increment flag for the given column.
|
a GdaColumn. |
|
auto increment status. |
gint gda_column_get_position (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
the position of the column refer to in the containing data model. |
void gda_column_set_position (GdaColumn *column
,gint position
);
Sets the position of the column refer to in the containing data model.
|
a GdaColumn. |
|
the wanted position of the column in the containing data model. |
const GValue * gda_column_get_default_value (GdaColumn *column
);
|
a GdaColumn. |
Returns : |
column 's default value, as a GValue object. |
"g-type-changed"
signalvoid user_function (GdaColumn *gdacolumn,
gint arg1,
gint arg2,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"name-changed"
signalvoid user_function (GdaColumn *gdacolumn,
gchar *arg1,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |