FieldAttributes

Constructors

this
this(GdaFieldAttributes* gdaFieldAttributes)

Sets our main struct and passes it to the parent class

this
this()

Members

Functions

copy
FieldAttributes copy()

Creates a new GdaFieldAttributes object from an existing one.

equal
int equal(FieldAttributes rhs)

Tests whether two field attributes are equal.

free
void free()

Deallocates all memory associated to the given GdaFieldAttributes object.

getAllowNull
int getAllowNull()

Gets the 'allow null' flag of the given field attributes.

getAutoIncrement
int getAutoIncrement()
getCaption
string getCaption()
getDefaultValue
Value getDefaultValue()
getDefinedSize
glong getDefinedSize()
getFieldAttributesStruct
GdaFieldAttributes* getFieldAttributesStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getGdatype
GdaValueType getGdatype()
getName
string getName()
getPosition
int getPosition()
getPrimaryKey
int getPrimaryKey()
getReferences
string getReferences()
getScale
glong getScale()
getStruct
void* getStruct()

the main Gtk struct as a void*

getTable
string getTable()
getUniqueKey
int getUniqueKey()
setAllowNull
void setAllowNull(int allow)

Sets the 'allow null' flag of the given field attributes.

setAutoIncrement
void setAutoIncrement(int isAuto)

Sets the auto increment flag for the given field.

setCaption
void setCaption(string caption)

Sets fa's caption.

setDefaultValue
void setDefaultValue(Value defaultValue)

Sets fa's default GdaValue.

setDefinedSize
void setDefinedSize(glong size)

Sets the defined size of a GdaFieldAttributes.

setGdatype
void setGdatype(GdaValueType type)

Sets the type of fa to type.

setName
void setName(string name)

Sets the name of fa to name.

setPosition
void setPosition(int position)

Sets the position of the field the attributes refer to in the containing data model.

setPrimaryKey
void setPrimaryKey(int pk)

Sets the 'primary key' flag of the given field attributes.

setReferences
void setReferences(string doref)

Sets fa's references.

setScale
void setScale(glong scale)

Sets the scale of fa to scale.

setTable
void setTable(string table)

Sets the name of the table to which the given field belongs.

setUniqueKey
void setUniqueKey(int uk)

Sets the 'unique key' flag of the given field attributes.

Static functions

getType
GType getType()

Variables

gdaFieldAttributes
GdaFieldAttributes* gdaFieldAttributes;

the main Gtk struct

Meta