gda.data_proxy
Module for [DataProxy] class
Types 4
Methods
DataProxyGidBuilder builder()Get builder for [gda.data_proxy.DataProxy] Returns: New builder objectbool cacheChanges() @propertyGet `cacheChanges` property. Returns: Defines how changes kept in the data proxy are handled when the proxied data model is changed (using the "model" property). The default is to silently discard ...void cacheChanges(bool propval) @propertySet `cacheChanges` property. Params: propval = Defines how changes kept in the data proxy are handled when the proxied data model is changed (using the "model" property). The default is to silently...bool deferSync() @propertyvoid deferSync(bool propval) @propertygda.data_model.DataModel model() @propertyvoid model(gda.data_model.DataModel propval) @propertybool prependNullEntry() @propertyvoid prependNullEntry(bool propval) @propertyint sampleSize() @propertyvoid sampleSize(int propval) @propertygda.data_proxy.DataProxy newWithDataModel(gda.data_model.DataModel model)Creates a new proxy for model. This is the preferred method to create #GdaDataProxy objects by bindings.void alterValueAttributes(int proxyRow, int col, gda.types.ValueAttribute alterFlags)Alters the attributes of the value stored at (proxyrow, col) in proxy. the alterflags can only contain the GDAVALUEATTRISNULL, GDAVALUEATTRISDEFAULT and GDAVALUEATTRISUNCHANGED flags (other flags a...bool applyAllChanges()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 be...bool applyRowChanges(int proxyRow)Commits the modified data in the proxy back into the #GdaDataModel.bool cancelAllChanges()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 ...void cancelRowChanges(int proxyRow, int col)Resets data at the corresponding row and column. If proxy_row corresponds to a new row, then that new row is deleted from proxy.void delete_(int proxyRow)Marks the row proxy_row to be deletedstring getFilterExpr()Get the current filter expression used by proxy. Returns: the current filter expression or null if no filter has been setint getFilteredNRows()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 re...int getNModifiedRows()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). Returns: the number of modified rowsint getNNewRows()Get the number of rows which have been added to proxy and which are not part of the proxied data model. Returns: the number of new rowsgda.data_model.DataModel getProxiedModel()Fetch the #GdaDataModel which proxy does proxy Returns: the proxied data modelint getProxiedModelNCols()Get the number of columns in the proxied data model Returns: the number of columns, or -1 if an error occurredint getProxiedModelNRows()Get the number of rows in the proxied data model Returns: the number of rows, or -1 if the number of rows is not knownint getProxiedModelRow(int proxyRow)Get the proxy's proxied model row corresponding to proxy_rowint getSampleEnd()Get the number of the last row to be available in proxy (in reference to the proxied data model) Returns: the number of the last proxied model's row.int getSampleSize()Get the size of each chunk of data displayed at a time. Returns: the chunk (or sample) size, or 0 if chunking is disabled.int getSampleStart()Get the number of the first row to be available in proxy (in reference to the proxied data model) Returns: the number of the first proxied model's row.gda.types.ValueAttribute getValueAttributes(int proxyRow, int col)Get the attributes of the value stored at (proxy_row, col) in proxy, which is an ORed value of #GdaValueAttribute flagsgobject.value.Value[] getValues(int proxyRow, int[] colsIndex)Retrieve a whole list of values from the proxy data model. This function calls gdadataproxygetvalue() for each column index specified in cols_index, and generates a #GSList on the way.bool hasChanged()Tells if proxy contains any modifications not applied to the proxied data model. Returns: TRUE if there are some modifications in proxybool isReadOnly()bool rowHasChanged(int proxyRow)Tells if the row number proxy_row has changedbool rowIsDeleted(int proxyRow)Tells if the row number proxy_row is marked to be deleted.bool rowIsInserted(int proxyRow)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).bool setFilterExpr(string filterExpr = null)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 "na...bool setOrderingColumn(int col)Orders by the col columnvoid setSampleSize(int sampleSize)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 arbitra...void setSampleStart(int sampleStart)Sets the number of the first row to be available in proxy (in reference to the proxied data model)void undelete(int proxyRow)Remove the "to be deleted" mark at the row proxy_row, if it existed.gulong connectFilterChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 2)Connect to `FilterChanged` signal.gulong connectRowChangesApplied(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 4)Connect to `RowChangesApplied` signal.gulong connectRowDeleteChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == bool)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 4)Connect to `RowDeleteChanged` signal.gulong connectSampleChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 4)Connect to `SampleChanged` signal.gulong connectSampleSizeChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 3)Connect to `SampleSizeChanged` signal.gulong connectValidateRowChanges(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == glib.error.ErrorWrap)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.data_proxy.DataProxy)))
&& Parameters!T.length < 4)Connect to `ValidateRowChanges` signal.Constructors
this(gda.data_model.DataModel model)Creates a new proxy for model. For bindings use gdadataproxynewwithdatamodel.classDataProxyGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gda.data_model.DataModelGidBuilderImpl!T
Methods
T cacheChanges(bool propval)Set `cacheChanges` property. Params: propval = Defines how changes kept in the data proxy are handled when the proxied data model is changed (using the "model" property). The default is to silently...T deferSync(bool propval)T model(gda.data_model.DataModel propval)T prependNullEntry(bool propval)T sampleSize(int propval)classDataProxyException : ErrorWrap