libgdamm Reference Documentation |
Public Member Functions | |
Glib::RefPtr<Column> | copy () const |
Creates a new Gda::Column object from an existing one. | |
bool | equal (const Glib::RefPtr<const Column>& src) const |
bool | get_allow_null () const |
Gets the 'allow null' flag of the given column. | |
Glib::ValueBase | get_attribute (Glib::ustring& attribute) const |
Get the value associated to a named attribute. | |
bool | get_auto_increment () const |
Glib::ustring | get_dbms_type () const |
Glib::ValueBase | get_default_value () const |
Glib::ustring | get_description () const |
GType | get_g_type () const |
Glib::ustring | get_name () const |
gint | get_position () const |
const GdaColumn* | gobj () const |
Provides access to the underlying C GObject. | |
GdaColumn* | gobj () |
Provides access to the underlying C GObject. | |
GdaColumn* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::PropertyProxy_ReadOnly <Glib::ustring> | property_id () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy <Glib::ustring> | property_id () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
void | set_allow_null (bool allow=true) |
Sets the 'allow null' flag of the given column. | |
void | set_attribute (const Glib::ustring& attribute, const Glib::ValueBase& value) |
Set the value associated to a named attribute. | |
void | set_auto_increment (bool is_auto=true) |
Sets the auto increment flag for the given column. | |
void | set_dbms_type (const Glib::ustring& dbms_type) |
void | set_default_value (const Glib::ValueBase& default_value) |
Sets column's default Value. | |
void | set_description (const Glib::ustring& title) |
Sets the column's description. | |
void | set_g_type (GType type) |
Sets the type of column to type. | |
void | set_name (const Glib::ustring& name) |
Sets the name of column to name. | |
void | set_position (gint position) |
Sets the position of the column refer to in the containing data model. | |
Glib::SignalProxy2< void, GType, GType > | signal_g_type_changed () |
Glib::SignalProxy1< void, const Glib::ustring& > | signal_name_changed () |
virtual | ~Column () |
Static Public Member Functions | |
static Glib::RefPtr<Column> | create () |
Protected Member Functions | |
Column () | |
virtual void | on_g_type_changed (GType old_type, GType new_type) |
virtual void | on_name_changed (const Glib::ustring& old_name) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gnome::Gda::Column> | wrap (GdaColumn* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Gnome::Gda::Column::~Column | ( | ) | [virtual] |
Gnome::Gda::Column::Column | ( | ) | [protected] |
Glib::RefPtr<Column> Gnome::Gda::Column::copy | ( | ) | const |
Creates a new Gda::Column object from an existing one.
static Glib::RefPtr<Column> Gnome::Gda::Column::create | ( | ) | [static] |
bool Gnome::Gda::Column::equal | ( | const Glib::RefPtr<const Column>& | src | ) | const |
bool Gnome::Gda::Column::get_allow_null | ( | ) | const |
Gets the 'allow null' flag of the given column.
true
or false
). Glib::ValueBase Gnome::Gda::Column::get_attribute | ( | Glib::ustring & | attribute | ) | const |
Get the value associated to a named attribute.
Attributes can have any name, but Libgda proposes some default names, see this section.
attribute | Attribute name as a string. |
0
if not attribute named attribute has been set for column. bool Gnome::Gda::Column::get_auto_increment | ( | ) | const |
true
or false
). Glib::ustring Gnome::Gda::Column::get_dbms_type | ( | ) | const |
Glib::ValueBase Gnome::Gda::Column::get_default_value | ( | ) | const |
Glib::ustring Gnome::Gda::Column::get_description | ( | ) | const |
GType Gnome::Gda::Column::get_g_type | ( | ) | const |
Glib::ustring Gnome::Gda::Column::get_name | ( | ) | const |
gint Gnome::Gda::Column::get_position | ( | ) | const |
const GdaColumn* Gnome::Gda::Column::gobj | ( | ) | const [inline] |
GdaColumn* Gnome::Gda::Column::gobj | ( | ) | [inline] |
GdaColumn* Gnome::Gda::Column::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
virtual void Gnome::Gda::Column::on_g_type_changed | ( | GType | old_type, | |
GType | new_type | |||
) | [protected, virtual] |
virtual void Gnome::Gda::Column::on_name_changed | ( | const Glib::ustring & | old_name | ) | [protected, virtual] |
Glib::PropertyProxy_ReadOnly<Glib::ustring> Gnome::Gda::Column::property_id | ( | ) | const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<Glib::ustring> Gnome::Gda::Column::property_id | ( | ) |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gnome::Gda::Column::set_allow_null | ( | bool | allow = true |
) |
Sets the 'allow null' flag of the given column.
allow | Whether the given column should allows null values or not. |
void Gnome::Gda::Column::set_attribute | ( | const Glib::ustring & | attribute, | |
const Glib::ValueBase & | value | |||
) |
Set the value associated to a named attribute.
Attributes can have any name, but Libgda proposes some default names, see this section. If there is already an attribute named attribute set, then its value is replaced with the new value, except if value is 0
, in which case the attribute is removed.
Warning: sttribute should be a static string (no copy of it is made), so the string should exist as long as the column object exists.
attribute | Attribute name as a static string. | |
value | A Value, or 0 . |
void Gnome::Gda::Column::set_auto_increment | ( | bool | is_auto = true |
) |
Sets the auto increment flag for the given column.
is_auto | Auto increment status. |
void Gnome::Gda::Column::set_dbms_type | ( | const Glib::ustring & | dbms_type | ) |
void Gnome::Gda::Column::set_default_value | ( | const Glib::ValueBase & | default_value | ) |
void Gnome::Gda::Column::set_description | ( | const Glib::ustring & | title | ) |
Sets the column's description.
title | Title name. |
void Gnome::Gda::Column::set_g_type | ( | GType | type | ) |
Sets the type of column to type.
type | The new type of column. |
void Gnome::Gda::Column::set_name | ( | const Glib::ustring & | name | ) |
Sets the name of column to name.
name | The new name of column. |
void Gnome::Gda::Column::set_position | ( | gint | position | ) |
Sets the position of the column refer to in the containing data model.
position | The wanted position of the column in the containing data model. |
Glib::SignalProxy2< void,GType,GType > Gnome::Gda::Column::signal_g_type_changed | ( | ) |
void on_my_g_type_changed(GType old_type, GType new_type)
Glib::SignalProxy1< void,const Glib::ustring& > Gnome::Gda::Column::signal_name_changed | ( | ) |
void on_my_name_changed(const Glib::ustring& old_name)
Glib::RefPtr<Gnome::Gda::Column> wrap | ( | GdaColumn * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |