Sets our main struct and passes it to the parent class
Frees all the rows inserted in model.
Get the main Gtk struct
the main Gtk struct as a void*
Inserts a row in the model.
Sets the number of columns for rows inserted in this model. cols must be greater than or equal to 0. This function calls gda_data_model_hash_clear to free the existing rows if any.
Retrieves a row from the underlying hash table.
Retrieves the value at a specified column and row.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Notifies listeners of the given data model object of changes in the underlying data. Listeners usually will connect themselves to the "changed" signal in the GdaDataModel class, thus being notified of any new data being appended or removed from the data model.
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_updated' and 'changed' signals on model.
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'column_inserted' and 'changed' signals on model.
Emits the 'column_updated' and 'changed' signals on model.
Emits the 'column_removed' and 'changed' signal on model.
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the gda_data_model_thaw function.
Re-enables notifications of changes on the given data model.
Queries the underlying data model implementation for a description of a given column. That description is returned in the form of a GdaFieldAttributes structure, which contains all the information about the given column in the data model.
Sets the title of the given col in model.
Gets the position of a column on the data model, based on the column's title.
Retrieves a given row from a data model.
Retrieves the data stored in the given position (identified by the col and row parameters) on a data model. This is the main function for accessing data in a model.
Checks whether the given data model can be updated or not.
Appends a row to the given data model.
Removes a row from the data model. This results in the underlying database row being removed in the database.
Updates a row data model. This results in the underlying database row's values being changed.
Appends a column to the given data model. If successful, the position of the new column in the data model is set on col, and you can grab it using gda_field_attributes_get_position.
Updates a column in the given data model. This results in the underlying database row's values being changed.
Removes a column from the data model. This means that all values attached to this column in the data model will be destroyed in the underlying database.
Calls the specified callback function for each row in the data model. This will just traverse all rows, and call the given callback function for each of them.
Checks whether this data model is in updating mode or not. Updating mode is set to TRUE when gda_data_model_begin_update has been called successfully, and is not set back to FALSE until either gda_data_model_cancel_update or gda_data_model_end_update have been called.
Starts update of this data model. This function should be the first called when modifying the data model.
Cancels update of this data model. This means that all changes will be discarded, and the old data put back in the model.
Approves all modifications and send them to the underlying data source/store.
Converts the given model into a comma-separated series of rows.
Converts the given model into a tab-separated series of rows.
Converts the given model into a XML representation.
Converts a GdaDataModel into a xmlNodePtr (as used in libxml).
Adds the data from a XML node to the given data model.
Gets the text of command that generated this data model.
Sets the command text of the given model.
Gets the type of command that generated this data model.
Sets the type of command that generated this data model.
Unlike GdaDataModelArray, this data model implementation stores the GdaRow in a hash table. So it only retrieves from the database backend exactly the requested rows (while in GdaDataModelArray you have to retrieve all the rows until the one requested).