Management of DataModel column attributes.
More...
Management of DataModel column attributes.
virtual Gnome::Gda::Column::~Column |
( |
| ) |
|
|
virtual |
Gnome::Gda::Column::Column |
( |
| ) |
|
|
protected |
Creates a new Gda::Column object from an existing one.
- Returns
- A newly allocated Gda::Column with a copy of the data in column.
bool Gnome::Gda::Column::get_allow_null |
( |
| ) |
const |
Gets the 'allow null' flag of the given column.
- Returns
- Whether the given column allows null values or not (
true
or false
).
Get the value associated to a named attribute.
Attributes can have any name, but Libgda proposes some default names, see this section.
- Parameters
-
attribute | Attribute name as a string. |
- Returns
- A read-only Value, or
0
if not attribute named attribute has been set for column.
bool Gnome::Gda::Column::get_auto_increment |
( |
| ) |
const |
- Returns
- Whether the given column is an auto incremented one (
true
or false
).
- Returns
- The database type of column.
Value Gnome::Gda::Column::get_default_value |
( |
| ) |
const |
- Returns
- column's default value, as a Value object.
- Returns
- The column's description, in any.
GType Gnome::Gda::Column::get_g_type |
( |
| ) |
const |
- Returns
- The type of column.
- Returns
- The name of column.
gint Gnome::Gda::Column::get_position |
( |
| ) |
const |
- Returns
- The position of the column refer to in the containing data model.
static GType Gnome::Gda::Column::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
GdaColumn* Gnome::Gda::Column::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C GObject.
const GdaColumn* Gnome::Gda::Column::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C GObject.
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 |
|
) |
| |
|
protectedvirtual |
virtual void Gnome::Gda::Column::on_name_changed |
( |
const Glib::ustring & |
old_name | ) |
|
|
protectedvirtual |
Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
void Gnome::Gda::Column::set_allow_null |
( |
bool |
allow = true | ) |
|
Sets the 'allow null' flag of the given column.
- Parameters
-
allow | Whether the given column should allows null values or not. |
void Gnome::Gda::Column::set_attribute |
( |
const Glib::ustring & |
attribute, |
|
|
const Value& |
value |
|
) |
| |
void Gnome::Gda::Column::set_auto_increment |
( |
bool |
is_auto = true | ) |
|
Sets the auto increment flag for the given column.
- Parameters
-
is_auto | Auto increment status. |
void Gnome::Gda::Column::set_dbms_type |
( |
const Glib::ustring & |
dbms_type | ) |
|
Defines column's database type.
- Parameters
-
void Gnome::Gda::Column::set_default_value |
( |
const Value& |
default_value | ) |
|
Sets column's default Value.
- Parameters
-
default_value | Default Value for the column. |
void Gnome::Gda::Column::set_description |
( |
const Glib::ustring & |
title | ) |
|
Sets the column's description.
- Parameters
-
void Gnome::Gda::Column::set_g_type |
( |
GType |
type | ) |
|
Sets the type of column to type.
- Parameters
-
type | The new type of column. |
Sets the name of column to name.
- Parameters
-
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.
- Parameters
-
position | The wanted position of the column in the containing data model. |
- Slot Prototype:
void on_my_g_type_changed(GType old_type, GType new_type)
- Slot Prototype:
void on_my_name_changed(const Glib::ustring& old_name)
A Glib::wrap() method for this object.
- Parameters
-
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. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: