DataModelIter

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

connectEndOfData
ulong connectEndOfData(T callback, Flag!"After" after)

Connect to EndOfData signal.

connectRowChanged
ulong connectRowChanged(T callback, Flag!"After" after)

Connect to RowChanged signal.

getColumnForParam
int getColumnForParam(gda.holder.Holder param)

Get the column number in the #GdaDataModel for which iter is an iterator as represented by the param parameter

getHolderForField
gda.holder.Holder getHolderForField(int col)

Fetch a pointer to the #GdaHolder object which is synchronized with data at column col

getRow
int getRow()

Get the row which iter represents in the data model

getValueAt
gobject.value.Value getValueAt(int col)

Get the value stored at the column col in iter. The returned value must not be modified.

getValueAtE
gobject.value.Value getValueAtE(int col)

Get the value stored at the column col in iter. The returned value must not be modified.

getValueForField
gobject.value.Value getValueForField(string fieldName)

Get the value stored at the column field_name in iter

invalidateContents
void invalidateContents()

Declare all the parameters in iter invalid, without modifying the #GdaDataModel iter is for or changing the row it represents. This method is for internal usage. Note that for gda.data_model_iter.DataModelIter.isValid to return false, it is also necessary to set the "current-row" property to -1.

isValid
bool isValid()

Tells if iter is a valid iterator (if it actually corresponds to a valid row in the model)

moveNext
bool moveNext()

Moves iter one row further than where it already is (synchronizes the values of the parameters in iter with the values at the new row).

movePrev
bool movePrev()

Moves iter one row before where it already is (synchronizes the values of the parameters in iter with the values at the new row).

moveToRow
bool moveToRow(int row)

Synchronizes the values of the parameters in iter with the values at the row row.

self
DataModelIter self()

Returns this, for use in with statements.

setValueAt
bool setValueAt(int col, gobject.value.Value value)

Sets a value in iter, at the column specified by col

Properties

_gType
GType _gType [@property getter]
currentRow
int currentRow [@property getter]
currentRow
int currentRow [@property setter]
dataModel
gda.data_model.DataModel dataModel [@property getter]
dataModel
gda.data_model.DataModel dataModel [@property setter]
forcedModel
gda.data_model.DataModel forcedModel [@property getter]
forcedModel
gda.data_model.DataModel forcedModel [@property setter]
updateModel
bool updateModel [@property getter]
updateModel
bool updateModel [@property setter]

Static functions

_getGType
GType _getGType()
errorQuark
glib.types.Quark errorQuark()

Inherited Members

From Set

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Set self()

Returns this, for use in with statements.

description
string description [@property getter]
description
string description [@property setter]
id
string id [@property getter]
id
string id [@property setter]
name
string name [@property getter]
name
string name [@property setter]
validateChanges
bool validateChanges [@property getter]

Get validateChanges property.

validateChanges
bool validateChanges [@property setter]

Set validateChanges property.

newFromSpecNode
gda.set.Set newFromSpecNode(libxml2.types.NodePtr xmlSpec)

Creates a new #GdaSet object from the xml_spec specifications

newFromSpecString
gda.set.Set newFromSpecString(string xmlSpec)

Creates a new #GdaSet object from the xml_spec specifications

newReadOnly
gda.set.Set newReadOnly(gda.holder.Holder[] holders)

Creates a new #GdaSet like gda.set.Set.new_, but does not allow modifications to any of the #GdaHolder object in holders. This function is used for Libgda's database providers' implementation.

errorQuark
glib.types.Quark errorQuark()
addHolder
bool addHolder(gda.holder.Holder holder)

Adds holder to the list of holders managed within set.

copy
gda.set.Set copy()

Creates a new #GdaSet object, copy of set

getGroup
gda.set_group.SetGroup getGroup(gda.holder.Holder holder)

Finds a #GdaSetGroup which lists a #GdaSetNode containing holder, don't modify the returned structure.

getHolder
gda.holder.Holder getHolder(string holderId)

Finds a #GdaHolder using its ID

getHolderValue
gobject.value.Value getHolderValue(string holderId)

Get the value of the #GdaHolder which ID is holder_id

getNode
gda.set_node.SetNode getNode(gda.holder.Holder holder)

Finds a #GdaSetNode holding information for holder, don't modify the returned structure

getNthHolder
gda.holder.Holder getNthHolder(int pos)

Finds a #GdaHolder using its position

getSource
gda.set_source.SetSource getSource(gda.holder.Holder holder)

Finds a #GdaSetSource which contains the #GdaDataModel restricting the possible values of holder, don't modify the returned structure.

getSourceForModel
gda.set_source.SetSource getSourceForModel(gda.data_model.DataModel model)

Finds the #GdaSetSource structure used in set for which model is a the data model (the returned structure should not be modified).

isValid
bool isValid()

This method tells if all set's #GdaHolder objects are valid, and if they represent a valid combination of values, as defined by rules external to Libgda: the "validate-set" signal is emitted and if none of the signal handlers return an error, then the returned value is TRUE, otherwise the return value is FALSE as soon as a signal handler returns an error.

mergeWithSet
void mergeWithSet(gda.set.Set setToMerge)

Add to set all the holders of set_to_merge. Note1: only the #GdaHolder of set_to_merge for which no holder in set has the same ID are merged Note2: all the #GdaHolder merged in set are still used by set_to_merge.

removeHolder
void removeHolder(gda.holder.Holder holder)

Removes a #GdaHolder from the list of holders managed by set

replaceSourceModel
void replaceSourceModel(gda.set_source.SetSource source, gda.data_model.DataModel model)

Replaces source->data_model with model, which must have the same characteristics as source->data_model (same column types)

connectHolderAttrChanged
ulong connectHolderAttrChanged(T callback, Flag!"After" after)

Connect to HolderAttrChanged signal.

connectHolderChanged
ulong connectHolderChanged(T callback, Flag!"After" after)

Connect to HolderChanged signal.

connectHolderTypeSet
ulong connectHolderTypeSet(T callback, Flag!"After" after)

Connect to HolderTypeSet signal.

connectPublicDataChanged
ulong connectPublicDataChanged(T callback, Flag!"After" after)

Connect to PublicDataChanged signal.

connectSourceModelChanged
ulong connectSourceModelChanged(T callback, Flag!"After" after)

Connect to SourceModelChanged signal.

connectValidateHolderChange
ulong connectValidateHolderChange(T callback, Flag!"After" after)

Connect to ValidateHolderChange signal.

connectValidateSet
ulong connectValidateSet(T callback, Flag!"After" after)

Connect to ValidateSet signal.