gda.holder

Module for [Holder] class

Types 4

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Holder self() nothrowReturns `this`, for use in `with` statements.
HolderGidBuilder builder() static nothrowGet builder for [gda.holder.Holder] Returns: New builder object
string description() @property nothrow
void description(string propval) @property nothrow
gda.holder.Holder fullBind() @property nothrow
void fullBind(gda.holder.Holder propval) @property nothrow
gobject.types.GType gType() @property nothrow
void gType(gobject.types.GType propval) @property nothrow
string id() @property nothrow
void id(string propval) @property nothrow
string name() @property nothrow
void name(string propval) @property nothrow
bool notNull() @property nothrow
void notNull(bool propval) @property nothrow
gda.holder.Holder simpleBind() @property nothrow
void simpleBind(gda.holder.Holder propval) @property nothrow
int sourceColumn() @property nothrow
void sourceColumn(int propval) @property nothrow
void sourceModel(gda.data_model.DataModel propval) @property nothrow
bool validateChanges() @property nothrowGet `validateChanges` property. Returns: Defines if the "validate-change" signal gets emitted when the holder's value changes.
void validateChanges(bool propval) @property nothrowSet `validateChanges` property. Params: propval = Defines if the "validate-change" signal gets emitted when the holder's value changes.
glib.types.Quark errorQuark() static nothrow
gda.holder.Holder copy() nothrowCopy constructor.
void forceInvalid() nothrowForces a holder to be invalid; to set it valid again, a new value must be assigned to it using [gda.holder.Holder.setValue] or [gda.holder.Holder.takeValue].
void forceInvalidE(glib.error.ErrorWrap error = null) nothrowForces a holder to be invalid; to set it valid again, a new value must be assigned to it using [gda.holder.Holder.setValue] or [gda.holder.Holder.takeValue].
string getAlphanumId() nothrowGet an "encoded" version of holder's name. The "encoding" consists in replacing non alphanumeric character with the string "__gdaXX" where XX is the hex. representation of the non alphanumeric char.
gobject.value.Value getAttribute(string attribute) nothrowGet the value associated to a named attribute.
gda.holder.Holder getBind() nothrowGet the holder which makes holder change its value when the holder's value is changed. Returns: the #GdaHolder or null
gobject.value.Value getDefaultValue() nothrowGet the default value held into the holder. WARNING: the default value does not need to be of the same type as the one required by holder. Returns: the default value
string getId() nothrowGet the ID of holder. The ID can be set using holder's "id" property Returns: the ID (don't modify the string).
bool getNotNull() nothrowGet wether the holder can be NULL or not Returns: TRUE if the holder cannot be NULL
gobject.value.Value getValue() nothrowGet the value held into the holder. If holder is set to use its default value and that default value is not of the same type as holder, then null is returned.
string getValueStr(gda.data_handler.DataHandler dh = null) nothrowSame functionality as [gda.holder.Holder.getValue] except that it returns the value as a string (the conversion is done using dh if not null, or the default data handler otherwise).
bool isValid() nothrowGet the validity of holder (that is, of the value held by holder) Returns: TRUE if holder's value can safely be used
bool isValidE()Get the validity of holder (that is, of the value held by holder) Returns: TRUE if holder's value can safely be used Throws: [HolderException]
void setAttribute(string attribute, gobject.value.Value value, glib.types.DestroyNotify destroy) nothrowSet the value associated to a named attribute. The attribute string is 'stolen' by this method, and the memory it uses will be freed using the destroy function when no longer needed (if destroy is ...
bool setBind(gda.holder.Holder bindTo)Sets holder to change when bind_to changes (and does not make bind_to change when holder changes). For the operation to succeed, the GType of holder and bind_to must be the same, with the exception...
void setDefaultValue(gobject.value.Value value) nothrowSets the default value within the holder. If value is null then holder won't have a default value anymore. To set a default value to null, then pass a #GValue created using [gda.global.valueNewNull].
void setNotNull(bool notNull) nothrowSets if the holder can have a NULL value. If not_null is TRUE, then that won't be allowed
bool setSourceModel(gda.data_model.DataModel model, int col)Sets an hint that holder's values should be restricted among the values contained in the col column of the model data model. Note that this is just a hint, meaning this policy is not enforced by ho...
bool setValue(gobject.value.Value value = null)Sets the value within the holder. If holder is an alias for another holder, then the value is also set for that other holder.
bool setValueStr(gda.data_handler.DataHandler dh, string value)Same functionality as [gda.holder.Holder.setValue] except that it uses a string representation of the value to set, which will be converted into a GValue first (using default data handler if dh is ...
bool setValueToDefault() nothrowSet holder's value to its default value. Returns: TRUE if holder has got a default value
bool takeValue(gobject.value.Value value)Sets the value within the holder. If holder is an alias for another holder, then the value is also set for that other holder.
bool valueIsDefault() nothrowTells if holder's current value is the default one. Returns: TRUE if holder holder's current value is the default one
gulong connectAttributeChanged(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] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gobject.value.Value))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.holder.Holder))) && Parameters!T.length < 4) nothrowConnect to `AttributeChanged` signal.
gulong connectChanged(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.holder.Holder))) && Parameters!T.length < 2) nothrowConnect to `Changed` signal.
gulong connectSourceChanged(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.holder.Holder))) && Parameters!T.length < 2) nothrowConnect to `SourceChanged` signal.
gulong connectValidateChange(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] == gobject.value.Value))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.holder.Holder))) && Parameters!T.length < 3) nothrowConnect to `ValidateChange` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(gobject.types.GType type)Creates a new holder of type type

Fluent builder implementation template for gda.holder.Holder

Methods
T description(string propval) nothrow
T fullBind(gda.holder.Holder propval) nothrow
T gType(gobject.types.GType propval) nothrow
T id(string propval) nothrow
T name(string propval) nothrow
T notNull(bool propval) nothrow
T simpleBind(gda.holder.Holder propval) nothrow
T sourceColumn(int propval) nothrow
T validateChanges(bool propval) nothrowSet `validateChanges` property. Params: propval = Defines if the "validate-change" signal gets emitted when the holder's value changes. Returns: Builder instance for fluent chaining

Fluent builder for gda.holder.Holder

Methods
Holder build() nothrowCreate object from builder. Returns: New object
Constructors
this(GError * err)
this(Code code, string msg)