GObject.Object
Gda.DataModelArray
Import line: | Gda = imports.gi.Gda; |
GIR File: | Gda-4.0.gir |
C documentation: | GdaDataModelArray |
Class : | DataModelArray |
Implements: | Gda.DataModel |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
n_columns : Number
|
Gda.DataModelArray | |
object : GObject.Object
read only
|
Gda.DataModelArray | |
priv : Gda.DataModelArrayPrivate
read only
|
Gda.DataModelArray | |
read_only : Boolean
|
Gda.DataModelArray |
Method / Constructor | Defined By | |
---|---|---|
new Gda.DataModelArray
(Object properties)
Create a new Gda.DataModelArray
Create a new Gda.DataModelArray
|
||
Create a new Gda.DataModelArray
Create a new Gda.DataModelArray
|
||
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 | |
clear
()
:
none
Frees all the rows in model.
Frees all the rows in model.
|
Gda.DataModelArray | |
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 | |
Gda.DataModelArray | ||
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 | ||
set_n_columns
(Number cols)
:
none
Sets the number of columns for rows inserted in this model.
Sets the number of columns for rows inserted in this model. Also clears model's contents.
|
Gda.DataModelArray | |
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.DataModel
Method |
array_copy_model
()
:
Gda.DataModelArray
Makes a copy of src into a new GdaDataModelArray object
|