Top | ![]() |
![]() |
![]() |
![]() |
gda-rowgda-row — Functions for accessing GdaRow |
GType | gda_row_get_type () |
GdaRow * | gda_row_new () |
GdaRow * | gda_row_new_from_list () |
GdaRow * | gda_row_copy () |
void | gda_row_free () |
GdaDataModel * | gda_row_get_model () |
gint | gda_row_get_number () |
void | gda_row_set_number () |
const gchar * | gda_row_get_id () |
void | gda_row_set_id () |
GdaValue * | gda_row_get_value () |
gint | gda_row_get_length () |
GdaRow * gda_row_new_from_list (GdaDataModel *model
,const GList *values
);
Creates a GdaRow from a list of GdaValue's. These GdaValue's are value-copied and the user are still resposible for freeing them.
GdaDataModel *
gda_row_get_model (GdaRow *row
);
Gets the GdaDataModel the given GdaRow belongs to.
gint
gda_row_get_number (GdaRow *row
);
Gets the number of the given row, that is, its position in its containing data model.
void gda_row_set_number (GdaRow *row
,gint number
);
Sets the row number for the given row.
const gchar *
gda_row_get_id (GdaRow *row
);
Returns the unique identifier for this row. This identifier is assigned by the different providers, to uniquely identify rows returned to clients. If there is no ID, this means that the row has not been created by a provider, or that it the provider cannot identify it (ie, modifications to it won't take place into the database).
void gda_row_set_id (GdaRow *row
,const gchar *id
);
Assigns a new identifier to the given row. This function is usually called by providers.
GdaValue * gda_row_get_value (GdaRow *row
,gint num
);
Gets a pointer to a GdaValue stored in a GdaRow.
This is a pointer to the internal array of values. Don't try to free or modify it!