GNOME Data Access manual |
---|
typedef GdaFieldAttributes; typedef GdaField; GdaFieldAttributes* gda_field_attributes_new (void); GdaFieldAttributes* gda_field_attributes_copy (GdaFieldAttributes *fa); void gda_field_attributes_free (GdaFieldAttributes *fa); glong gda_field_attributes_get_defined_size (GdaFieldAttributes *fa); void gda_field_attributes_set_defined_size (GdaFieldAttributes *fa, glong size); const gchar* gda_field_attributes_get_name (GdaFieldAttributes *fa); void gda_field_attributes_set_name (GdaFieldAttributes *fa, const gchar *name); const gchar* gda_field_attributes_get_table (GdaFieldAttributes *fa); void gda_field_attributes_set_table (GdaFieldAttributes *fa, const gchar *table); const gchar* gda_field_attributes_get_caption (GdaFieldAttributes *fa); void gda_field_attributes_set_caption (GdaFieldAttributes *fa, const gchar *caption); glong gda_field_attributes_get_scale (GdaFieldAttributes *fa); void gda_field_attributes_set_scale (GdaFieldAttributes *fa, glong scale); GdaValueType gda_field_attributes_get_gdatype (GdaFieldAttributes *fa); void gda_field_attributes_set_gdatype (GdaFieldAttributes *fa, GdaValueType type); gboolean gda_field_attributes_get_allow_null (GdaFieldAttributes *fa); void gda_field_attributes_set_allow_null (GdaFieldAttributes *fa, gboolean allow); gboolean gda_field_attributes_get_primary_key (GdaFieldAttributes *fa); void gda_field_attributes_set_primary_key (GdaFieldAttributes *fa, gboolean pk); gboolean gda_field_attributes_get_unique_key (GdaFieldAttributes *fa); void gda_field_attributes_set_unique_key (GdaFieldAttributes *fa, gboolean uk); const gchar* gda_field_attributes_get_references (GdaFieldAttributes *fa); void gda_field_attributes_set_references (GdaFieldAttributes *fa, const gchar *ref); gboolean gda_field_attributes_get_auto_increment (GdaFieldAttributes *fa); void gda_field_attributes_set_auto_increment (GdaFieldAttributes *fa, gboolean is_auto); gint gda_field_attributes_get_position (GdaFieldAttributes *fa); void gda_field_attributes_set_position (GdaFieldAttributes *fa, gint position);
typedef struct { gint defined_size; gchar *name; gchar *table; gchar *caption; gint scale; GdaValueType gda_type; gboolean allow_null; gboolean primary_key; gboolean unique_key; gchar *references; gboolean auto_increment; glong auto_increment_start; glong auto_increment_step; gint position; } GdaFieldAttributes;
typedef struct { gint actual_size; GdaValue *value; GdaFieldAttributes *attributes; } GdaField;
GdaFieldAttributes* gda_field_attributes_copy (GdaFieldAttributes *fa);
fa : | |
Returns : |
|
glong gda_field_attributes_get_defined_size (GdaFieldAttributes *fa);
fa : | a GdaFieldAttributes |
Returns : | the defined size of fa. |
void gda_field_attributes_set_defined_size (GdaFieldAttributes *fa, glong size);
Sets the defined size of a GdaFieldAttributes.
fa : | |
size : | the defined size we want to set. |
const gchar* gda_field_attributes_get_name (GdaFieldAttributes *fa);
fa : | |
Returns : | the name of fa. |
void gda_field_attributes_set_name (GdaFieldAttributes *fa, const gchar *name);
Sets the name of fa to name.
fa : | |
name : | the new name of fa. |
const gchar* gda_field_attributes_get_table (GdaFieldAttributes *fa);
Get the table to which this field belongs.
fa : | |
Returns : | the name of the table. |
void gda_field_attributes_set_table (GdaFieldAttributes *fa, const gchar *table);
Set the name of the table to which the given field belongs.
fa : | |
table : | table name. |
const gchar* gda_field_attributes_get_caption (GdaFieldAttributes *fa);
fa : | |
Returns : |
|
void gda_field_attributes_set_caption (GdaFieldAttributes *fa, const gchar *caption);
fa : | |
caption : |
|
glong gda_field_attributes_get_scale (GdaFieldAttributes *fa);
fa : | |
Returns : | the number of decimals of fa. |
void gda_field_attributes_set_scale (GdaFieldAttributes *fa, glong scale);
Sets the scale of fa to scale.
fa : | |
scale : | number of decimals. |
GdaValueType gda_field_attributes_get_gdatype (GdaFieldAttributes *fa);
fa : | |
Returns : | the type of fa. |
void gda_field_attributes_set_gdatype (GdaFieldAttributes *fa, GdaValueType type);
Sets the type of fa to type.
fa : | |
type : | the new type of fa. |
gboolean gda_field_attributes_get_allow_null (GdaFieldAttributes *fa);
Get the 'allow null' flag of the given field attributes.
fa : | |
Returns : | whether the given field allows null values or not. |
void gda_field_attributes_set_allow_null (GdaFieldAttributes *fa, gboolean allow);
Sets the 'allow null' flag of the given field attributes.
fa : | |
allow : |
gboolean gda_field_attributes_get_primary_key (GdaFieldAttributes *fa);
fa : | |
Returns : |
|
void gda_field_attributes_set_primary_key (GdaFieldAttributes *fa, gboolean pk);
fa : | |
pk : |
|
gboolean gda_field_attributes_get_unique_key (GdaFieldAttributes *fa);
fa : | |
Returns : |
|
void gda_field_attributes_set_unique_key (GdaFieldAttributes *fa, gboolean uk);
fa : | |
uk : |
|
const gchar* gda_field_attributes_get_references (GdaFieldAttributes *fa);
fa : | |
Returns : |
|
void gda_field_attributes_set_references (GdaFieldAttributes *fa, const gchar *ref);
fa : | |
ref : |
|
gboolean gda_field_attributes_get_auto_increment (GdaFieldAttributes *fa);
Get whether the given field is an auto incremented one.
fa : | |
Returns : | TRUE or FALSE. |
void gda_field_attributes_set_auto_increment (GdaFieldAttributes *fa, gboolean is_auto);
Set the auto increment flag for the given field.
fa : | |
is_auto : | auto increment status. |
gint gda_field_attributes_get_position (GdaFieldAttributes *fa);
Get the position of the field the attributes refer to.
The position of this field in the containing data model.
fa : | |
Returns : |
|
void gda_field_attributes_set_position (GdaFieldAttributes *fa, gint position);
fa : | |
position : |
|
<<< GdaExport | gda-log >>> |