Import line: | Gda = imports.gi.Gda; |
GIR File: | Gda-4.0.gir |
C documentation: | GdaDataModel |
Interface : | DataModel |
Implementations: | Gda.DataAccessWrapper, Gda.DataModelArray, Gda.DataModelBdb, Gda.DataModelDir, Gda.DataModelDsnList, Gda.DataModelImport, Gda.DataProxy, Gda.DataSelect |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
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).
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).
|
Gda.DataModel | |
append_row
()
:
Number
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 data model (the new row will possibly have NULL values for all columns, or some other values depending on the data model implementation)
|
Gda.DataModel | |
Appends a row to the given data model.
Appends a row to the given data model. If any value in values is actually NULL, then it is considered as a default value.
|
Gda.DataModel | |
array_copy_model
()
:
Gda.DataModelArray
Makes a copy of src into a new GdaDataModelArray object
Makes a copy of src into a new GdaDataModelArray object
|
Gda.DataModel | |
create_iter
()
:
Gda.DataModelIter
Creates a new iterator object GdaDataModelIter object which can be used to iterate through rows in model.
Creates a new iterator object GdaDataModelIter object which can be used to iterate through rows in model. Depending on the data model's implementation, a new GdaDataModelIter object may be created, or a reference to an already existing GdaDataModelIter may be returned. If a new GdaDataModelIter is created, then the row it represents is undefined. For models which can be accessed randomly, any row can be set using gda_data_model_iter_move_to_row(), and for models which are accessible sequentially only then use gda_data_model_iter_move_next() (and gda_data_model_iter_move_prev() if supported).
|
Gda.DataModel | |
describe_column
(Number col)
:
Gda.Column
Queries the underlying data model implementation for a description of a given column.
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. and should not be destroyed; any modification will affect the whole data model.
|
Gda.DataModel | |
dump_as_string
()
:
String
Dumps a textual representation of the model into a new string The following environment variables can affect the resulting output:
Dumps a textual representation of the model into a new string The following environment variables can affect the resulting output:
|
Gda.DataModel | |
export_to_file
(DataModelIOFormat format, String file, Array cols, Number nb_cols, Array rows, Number nb_rows, Set options)
:
Boolean
Exports data contained in model to the file file; the format is specified using the format argument.
Exports data contained in model to the file file; the format is specified using the format argument. Specifically, the parameters in the options list can be:
|
Gda.DataModel | |
export_to_string
(DataModelIOFormat format, Array cols, Number nb_cols, Array rows, Number nb_rows, Set options)
:
String
Exports data contained in model to a string; the format is specified using the format argument, see the gda_data_model_export_to_file() documentation for more information about the options argument (except for the "OVERWRITE" option).
Exports data contained in model to a string; the format is specified using the format argument, see the gda_data_model_export_to_file() documentation for more information about the options argument (except for the "OVERWRITE" option).
|
Gda.DataModel | |
freeze
()
:
none
Disables notifications of changes on the given data model.
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the gda_data_model_thaw function.
|
Gda.DataModel | |
get_access_flags
()
:
Gda.DataModelAccessFlags
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
|
Gda.DataModel | |
Get the attributes of the value stored at (row, col) in model, which is an ORed value of GdaValueAttribute flags.
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 if a row was added to model.
|
Gda.DataModel | |
Gda.DataModel | ||
Gda.DataModel | ||
Gda.DataModel | ||
get_n_columns
()
:
Number
|
Gda.DataModel | |
get_n_rows
()
:
Number
|
Gda.DataModel | |
Returns the first row where all the values in values at the columns identified at
|
Gda.DataModel | |
This method is similar to gda_data_model_get_value_at(), except that it also allows one to specify the expected this method returns NULL and an error code.
This method is similar to gda_data_model_get_value_at(), except that it also allows one to specify the expected this method returns NULL and an error code. position, or NULL on error (out-of-bound position, wrong data type, etc).
|
Gda.DataModel | |
Retrieves the data stored in the given position (identified by the col and row parameters) on 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 which allows random access to its data. To access data in a data model using a cursor, use a GdaDataModelIter object, obtained using gda_data_model_create_iter(). occur if you do so). which means if you want to keep the value, a copy must be made, however it will remain valid as long as the only Libgda usage is calling gda_data_model_get_value_at() for different values of the same row. If you want to modify a value stored in a GdaDataModel, use the gda_data_model_set_value_at() or gda_data_model_set_values() methods. position, or NULL on error (out-of-bound position, etc).
|
Gda.DataModel | |
Gda.DataModel | ||
Copy the contents of the from data model to the to data model.
Copy the contents of the from data model to the to data model. The copy stops as soon as an error orrurs. The cols_trans is a hash table for which keys are to columns numbers and the values are the corresponding column numbers in the from data model. To set the values of a column in to to NULL, create an entry in the hash table with a negative value.
|
Gda.DataModel | |
Gda.DataModel | ||
iter_move_next_default
(DataModelIter iter)
:
Boolean
|
Gda.DataModel | |
iter_move_prev_default
(DataModelIter iter)
:
Boolean
|
Gda.DataModel | |
|
Gda.DataModel | |
Gda.DataModel | ||
reset
()
:
none
Emits the 'reset' and 'changed' signal on model.
Emits the 'reset' and 'changed' signal on model.
|
Gda.DataModel | |
row_inserted
(Number row)
:
none
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_inserted' and 'changed' signals on model. This method should only be used by GdaDataModel implementations to signal that a row has been inserted.
|
Gda.DataModel | |
row_removed
(Number row)
:
none
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'row_removed' and 'changed' signal on model. This method should only be used by GdaDataModel implementations to signal that a row has been removed
|
Gda.DataModel | |
row_updated
(Number row)
:
none
Emits the 'row_updated' and 'changed' signals on model.
Emits the 'row_updated' and 'changed' signals on model. This method should only be used by GdaDataModel implementations to signal that a row has been updated.
|
Gda.DataModel | |
send_hint
(DataModelHint hint, Value hint_value)
:
none
Sends a hint to the data model.
Sends a hint to the data model. The hint may or may not be handled by the data model, depending on its implementation
|
Gda.DataModel | |
Gda.DataModel | ||
Gda.DataModel | ||
Modifies a value in model, at (col, row).
Modifies a value in model, at (col, row).
|
Gda.DataModel | |
In a similar way to gda_data_model_set_value_at(), this method modifies a data model's contents by setting several values at once.
In a similar way to gda_data_model_set_value_at(), this method modifies a data model's contents by setting several values at once. If any value in values is actually NULL, then the value in the corresponding column is left unchanged.
|
Gda.DataModel | |
thaw
()
:
none
Re-enables notifications of changes on the given data model.
Re-enables notifications of changes on the given data model.
|
Gda.DataModel |
Event | Defined By | |
---|---|---|
changed (DataModel self)
:
none
|
Gda.DataModel | |
reset (DataModel self)
:
none
|
Gda.DataModel | |
|
Gda.DataModel | |
|
Gda.DataModel | |
|
Gda.DataModel |
Class / Namespace | Method / Signal / Properties |
---|---|
Gda
Method |
|
Gda
Method |
Gda.utility_data_model_dump_data_to_xml
(DataModel model, Node parent, Object out_values, Number nb_cols, Number rows, Number nb_rows, Boolean use_col_ids)
:
Boolean
|
Gda.Config
Method |
Gda.Config.list_dsn
()
:
Gda.DataModel
Get a GdaDataModel representing all the configured DSN, and keeping itself up to date with the changes in the declared DSN.
|
Gda.Config
Method |
Gda.Config.list_providers
()
:
Gda.DataModel
Get a GdaDataModel representing all the installed database providers.
|
Gda.Connection
Method |
Executes a selection command on the given connection.
|
Gda.Connection
Method |
statement_execute_select_full
(Statement stmt, Set params, StatementModelUsage model_usage, Array col_types)
:
Gda.DataModel
value.
|
Gda.Connection
Method |
see gda_connection_get_meta_store_data for freeing the returned model using g_object_unref().
|
Gda.DataAccessWrapper
Property |
model : Gda.DataModel
|
Gda.DataAccessWrapper
Method |
Create a new Gda.DataAccessWrapper
|
Gda.DataComparator
Property |
new_model : Gda.DataModel
|
Gda.DataComparator
Property |
old_model : Gda.DataModel
|
Gda.DataComparator
Method |
Create a new Gda.DataComparator
|
Gda.DataModelIter
Property |
data_model : Gda.DataModel
|
Gda.DataModelIter
Property |
forced_model : Gda.DataModel
|
Gda.DataProxy
Property |
model : Gda.DataModel
|
Gda.DataProxy
Method |
Create a new Gda.DataProxy
|
Gda.DataProxy
Method |
get_proxied_model
()
:
Gda.DataModel
|
Gda.Holder
Property |
source_model : Gda.DataModel
|
Gda.Holder
Method |
|
Gda.Holder
Method |
get_source_model
(Object out_values)
:
Gda.DataModel
|
Gda.MetaStore
Method |
|
Gda.MetaStore
Method |
create_modify_data_model
(String table_name)
:
Gda.DataModel
|
Gda.ServerProvider
Method |
|
Gda.ServerProvider
Method |
|
Gda.Set
Method |
get_source_for_model
(DataModel model)
:
Gda.SetSource
Finds the GdaSetSource structure used in set for which model is a the data model (the returned structure should not be modified).
|
Gdaui.Cloud
Property |
model : Gda.DataModel
|
Gdaui.Cloud
Method |
Create a new Gdaui.Cloud
|
Gdaui.Combo
Property |
model : Gda.DataModel
|
Gdaui.Combo
Method |
Create a new Gdaui.Combo
|
Gdaui.Combo
Method |
|
Gdaui.DataSelector
Method |
get_model
()
:
Gda.DataModel
|
Gdaui.DataSelector
Method |
set_model
(DataModel model)
:
none
|
Gdaui.DataStore
Method |
Create a new Gdaui.DataStore
|
Gdaui.Form
Property |
model : Gda.DataModel
|
Gdaui.Form
Method |
Create a new Gdaui.Form
|
Gdaui.Grid
Property |
model : Gda.DataModel
|
Gdaui.Grid
Method |
Create a new Gdaui.Grid
|
Gdaui.RawForm
Property |
model : Gda.DataModel
|
Gdaui.RawForm
Method |
Create a new Gdaui.RawForm
|
Gdaui.RawGrid
Property |
model : Gda.DataModel
|
Gdaui.RawGrid
Method |
Create a new Gdaui.RawGrid
|