DbColumn
Object Hierarchy:
Description:
[
CCode ( type_id =
"gda_db_column_get_type ()" ) ]
public class DbColumn :
Object,
DbBuildable,
DdlModifiable
Content:
Properties:
- public string @default { get; set; }
- public bool autoinc { get; set; }
- public string check { get; set; }
- public string comment { get; set; }
- public string name { get; set; }
- public bool nnul { get; set; }
- public bool pkey { get; set; }
- public uint scale { get; set; }
- public uint size { get; set; }
- public DbTable table { owned get; set; }
- public bool unique { get; set; }
Static methods:
Creation methods:
Methods:
- public bool get_autoinc ()
Get value for autoinc key
- public unowned string get_check ()
Returns value of the check field.
- public unowned string get_comment ()
Get value for column comment.
- public unowned string get_ctype ()
Returns column type as a string derivied from
Type
- public unowned string get_default ()
Returns default value for the column.
- public Type get_gtype ()
Return of column type as Type
- public unowned string get_name ()
Returns name of the column
- public bool get_nnul ()
Specify if the column's value can be NULL.
- public bool get_pkey ()
Returns a primary key flag
- public uint get_scale ()
Scale is used for float number representation to specify a number of
decimal digits.
- public uint get_size ()
- public bool get_unique ()
Get value for unique key
- public bool prepare_add (ServerOperation op) throws Error
Populate op
with information stored in
this.
- public bool prepare_create (ServerOperation op, uint order) throws Error
This method populate op
with information stored in
this.
- public void set_autoinc (bool autoinc)
Set value for auto-incremented key.
- public void set_check (string value)
Sets check string to the column.
- public void set_comment (string comnt)
Set value for column comment.
- public void set_default (string value)
- public void set_name (string name)
Set column name.
- public void set_nnul (bool nnul)
- public void set_pkey (bool pkey)
If pkey
is true, the
given column will be marked with PRIMERY KEY flag
- public void set_scale (uint scale)
Scale is used for float number representation to specify a number of
decimal digits.
- public void set_size (uint size)
Set value for column size.
- public void set_type (Type type)
Set type of the column as a Type.
- public void set_unique (bool unique)
Set value for unique key.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gda.DbBuildable
All known members inherited from interface Gda.DdlModifiable