Creates a new proxy for model. For bindings use gda_data_proxy_new_with_data_model.
Alters the attributes of the value stored at (proxy_row, col) in proxy. the alter_flags can only contain the GDA_VALUE_ATTR_IS_NULL, GDA_VALUE_ATTR_IS_DEFAULT and GDA_VALUE_ATTR_IS_UNCHANGED flags (other flags are ignored).
Apply all the changes stored in the proxy to the proxied data model. The changes are done row after row, and if an error occurs, then it is possible that not all the changes to all the rows have been applied.
Commits the modified data in the proxy back into the #GdaDataModel.
Cancel all the changes stored in the proxy (the proxy will be reset to its state as it was just after creation). Note that if there are some cached changes (i.e. not applied to the current proxied data model), then these cached changes are not cleared (set the "cache-changes" property to false for this).
Resets data at the corresponding row and column. If proxy_row corresponds to a new row, then that new row is deleted from proxy.
Connect to FilterChanged signal.
Connect to RowChangesApplied signal.
Connect to RowDeleteChanged signal.
Connect to SampleChanged signal.
Connect to SampleSizeChanged signal.
Connect to ValidateRowChanges signal.
Marks the row proxy_row to be deleted
Get the current filter expression used by proxy.
Get the total number of filtered rows in proxy if a filter has been applied. As new rows (rows added to the proxy and not yet added to the proxied data model) and rows to remove (rows marked for removal but not yet removed from the proxied data model) are also filtered, the returned number also contains references to new rows and rows to be removed.
Get the number of rows which have been modified in the proxy (the sum of rows existing in the proxied data model which have been modified, and new rows).
Get the number of rows which have been added to proxy and which are not part of the proxied data model.
Fetch the #GdaDataModel which proxy does proxy
Get the number of columns in the proxied data model
Get the number of rows in the proxied data model
Get the proxy's proxied model row corresponding to proxy_row
Get the number of the last row to be available in proxy (in reference to the proxied data model)
Get the size of each chunk of data displayed at a time.
Get the number of the first row to be available in proxy (in reference to the proxied data model)
Get the attributes of the value stored at (proxy_row, col) in proxy, which is an ORed value of #GdaValueAttribute flags
Retrieve a whole list of values from the proxy data model. This function calls gda_data_proxy_get_value() for each column index specified in cols_index, and generates a #GSList on the way.
Tells if proxy contains any modifications not applied to the proxied data model.
Tells if the row number proxy_row has changed
Tells if the row number proxy_row is marked to be deleted.
Tells if the row number proxy_row is a row which has been inserted in proxy (and is thus not in the proxied data model).
Returns this, for use in with statements.
Sets a filter among the rows presented by proxy. The filter is defined by a filter expression which can be any SQL valid expression using proxy's columns. For instance if proxy has the "id" and "name" columns, then a filter can be "length(name) < 5" to filter only the rows where the length of the name is strictly inferior to 5, or "id >= 1000 and id < 2000 order by name limit 50" to filter only the rows where the id is between 1000 and 2000, ordered by name and limited to 50 rows.
Orders by the col column
Sets the size of each chunk of data to display: the maximum number of rows which can be "displayed" at a time (the maximum number of rows which proxy pretends to have). The default value is arbitrary 300 as it is big enough to be able to display quite a lot of data, but small enough to avoid too much data displayed at the same time.
Sets the number of the first row to be available in proxy (in reference to the proxied data model)
Remove the "to be deleted" mark at the row proxy_row, if it existed.
Get cacheChanges property.
Set cacheChanges property.
Creates a new proxy for model. This is the preferred method to create #GdaDataProxy objects by bindings.
Adds the data from an XML node to the given data model (see the DTD for that node in the $prefix/share/libgda/dtd/libgda-array.dtd file).
Appends a row to the data model (the new row will possibly have NULL values for all columns, or some other values depending on the data model implementation)
Appends a row to the given data model. If any value in values is actually null, then it is considered as a default value. If values is null then all values are set to their default value.
Makes a copy of src into a new #GdaDataModelArray object
Like gda.data_model.DataModel.arrayCopyModel, makes a copy of src, but copies only some columns.
Creates a new iterator object #GdaDataModelIter object which can be used to iterate through rows in model. The new #GdaDataModelIter does not hold any reference to model (ie. if model is destroyed at some point, the new iterator will become useless but in any case it will not prevent the data model from being destroyed).
Queries the underlying data model implementation for a description of a given column. That description is returned in the form of a #GdaColumn structure, which contains all the information about the given column in the data model.
Dumps a textual representation of the model to the to_stream stream
Dumps a textual representation of the model into a new string. The main differences with gda.data_model.DataModel.exportToString are that the formatting options are passed using environment variables, and that the data is dumped regardless of the user locale (e.g. dates are not formatted according to the locale).
Exports data contained in model to the file file; the format is specified using the format argument. Note that the date format used is the one used by the connection from which the data model has been made (as the result of a SELECT statement), or, for other kinds of data models, the default format (refer to gda.data_handler.DataHandler.getDefault) unless the "cnc" property has been set and points to a #GdaConnection to use that connection's date format.
Exports data contained in model to a string; the format is specified using the format argument, see the gda.data_model.DataModel.exportToFile documentation for more information about the options argument (except for the "OVERWRITE" option).
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the #gda_data_model_thaw function.
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
Get the attributes of the value stored at (row, col) in model, which is an ORed value of #GdaValueAttribute flags. As a special case, if row is -1, then the attributes returned correspond to a "would be" value if a row was added to model.
Get the index of the first column named name in model.
Returns the status of notifications changes on the given data model.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
Retrieves the data stored in the given position (identified by the col and row parameters) on a data model.
Moves iter to the row number given by row.
Moves iter to the next row in model.
Moves iter to the next row in model.
Set value to the given column and row pointed by iter in the given model.
Removes a row from the data model.
Emits the 'reset' and 'changed' signal on model.
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'row_updated' and 'changed' signals on model.
Sends a hint to the data model. The hint may or may not be handled by the data model, depending on its implementation
Sets the name of the given col in model, and if its title is not set, also sets the title to name.
Sets the title of the given col in model.
Enable or disable notifications changes on the given data model.
Modifies a value in model, at (col, row).
In a similar way to gda.data_model.DataModel.setValueAt, this method modifies a data model's contents by setting several values at once.
Re-enables notifications of changes on the given data model.
Connect to AccessChanged signal.
Connect to Changed signal.
Connect to Reset signal.
Connect to RowInserted signal.
Connect to RowRemoved signal.
Connect to RowUpdated signal.
Set the GObject of a D ObjectWrap wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectWrap.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectWrap.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectWrap.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectWrap.ref_ and gobject.object.ObjectWrap.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
Adds the data from an XML node to the given data model (see the DTD for that node in the $prefix/share/libgda/dtd/libgda-array.dtd file).
Appends a row to the data model (the new row will possibly have NULL values for all columns, or some other values depending on the data model implementation)
Appends a row to the given data model. If any value in values is actually null, then it is considered as a default value. If values is null then all values are set to their default value.
Makes a copy of src into a new #GdaDataModelArray object
Like gda.data_model.DataModel.arrayCopyModel, makes a copy of src, but copies only some columns.
Creates a new iterator object #GdaDataModelIter object which can be used to iterate through rows in model. The new #GdaDataModelIter does not hold any reference to model (ie. if model is destroyed at some point, the new iterator will become useless but in any case it will not prevent the data model from being destroyed).
Queries the underlying data model implementation for a description of a given column. That description is returned in the form of a #GdaColumn structure, which contains all the information about the given column in the data model.
Dumps a textual representation of the model to the to_stream stream
Dumps a textual representation of the model into a new string. The main differences with gda.data_model.DataModel.exportToString are that the formatting options are passed using environment variables, and that the data is dumped regardless of the user locale (e.g. dates are not formatted according to the locale).
Exports data contained in model to the file file; the format is specified using the format argument. Note that the date format used is the one used by the connection from which the data model has been made (as the result of a SELECT statement), or, for other kinds of data models, the default format (refer to gda.data_handler.DataHandler.getDefault) unless the "cnc" property has been set and points to a #GdaConnection to use that connection's date format.
Exports data contained in model to a string; the format is specified using the format argument, see the gda.data_model.DataModel.exportToFile documentation for more information about the options argument (except for the "OVERWRITE" option).
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the #gda_data_model_thaw function.
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
Get the attributes of the value stored at (row, col) in model, which is an ORed value of #GdaValueAttribute flags. As a special case, if row is -1, then the attributes returned correspond to a "would be" value if a row was added to model.
Get the index of the first column named name in model.
Returns the status of notifications changes on the given data model.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
Retrieves the data stored in the given position (identified by the col and row parameters) on a data model.
Moves iter to the row number given by row.
Moves iter to the next row in model.
Moves iter to the next row in model.
Set value to the given column and row pointed by iter in the given model.
Removes a row from the data model.
Emits the 'reset' and 'changed' signal on model.
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'row_updated' and 'changed' signals on model.
Sends a hint to the data model. The hint may or may not be handled by the data model, depending on its implementation
Sets the name of the given col in model, and if its title is not set, also sets the title to name.
Sets the title of the given col in model.
Enable or disable notifications changes on the given data model.
Modifies a value in model, at (col, row).
In a similar way to gda.data_model.DataModel.setValueAt, this method modifies a data model's contents by setting several values at once.
Re-enables notifications of changes on the given data model.
Connect to AccessChanged signal.
Connect to Changed signal.
Connect to Reset signal.
Connect to RowInserted signal.
Connect to RowRemoved signal.
Connect to RowUpdated signal.