gda.data_proxy
Module for [DataProxy] class
Types 4
Methods
DataProxyGidBuilder builder() static nothrowGet builder for [gda.data_proxy.DataProxy] Returns: New builder objectbool cacheChanges() @property nothrowGet `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) @property nothrowSet `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...gda.data_proxy.DataProxy newWithDataModel(gda.data_model.DataModel model) static nothrowCreates 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) nothrowAlters 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 ...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() nothrowCancel 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) nothrowResets data at the corresponding row and column. If proxy_row corresponds to a new row, then that new row is deleted from proxy.string getFilterExpr() nothrowGet the current filter expression used by proxy. Returns: the current filter expression or null if no filter has been setint getFilteredNRows() nothrowGet 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() nothrowGet 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() nothrowGet 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() nothrowFetch the #GdaDataModel which proxy does proxy Returns: the proxied data modelint getProxiedModelNCols() nothrowGet the number of columns in the proxied data model Returns: the number of columns, or -1 if an error occurredint getProxiedModelNRows() nothrowGet 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) nothrowGet the proxy's proxied model row corresponding to proxy_rowint getSampleEnd() nothrowGet 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() nothrowGet 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() nothrowGet 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) nothrowGet 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) nothrowRetrieve 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.bool hasChanged() nothrowTells if proxy contains any modifications not applied to the proxied data model. Returns: TRUE if there are some modifications in proxybool isReadOnly() nothrowbool rowIsInserted(int proxyRow) nothrowTells 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) nothrowSets 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) nothrowSets the number of the first row to be available in proxy (in reference to the proxied data model)void undelete(int proxyRow) nothrowRemove 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `ValidateRowChanges` signal.Constructors
this(gda.data_model.DataModel model)Creates a new proxy for model. For bindings use gda_data_proxy_new_with_data_model.classDataProxyGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gda.data_model.DataModelGidBuilderImpl!T
Fluent builder implementation template for gda.data_proxy.DataProxy
Methods
T cacheChanges(bool propval) nothrowSet `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) nothrowT model(gda.data_model.DataModel propval) nothrowT prependNullEntry(bool propval) nothrowT sampleSize(int propval) nothrowFluent builder for gda.data_proxy.DataProxy
classDataProxyException : ErrorWrap