libgdamm 4.99.10

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
Gnome::Gda::Column Class Reference
Data Handlers

Management of DataModel column attributes. More...

Inheritance diagram for Gnome::Gda::Column:
[legend]
Collaboration diagram for Gnome::Gda::Column:
[legend]

## Public Member Functions
| Column (Column&& src) noexcept
Column& | operator= (Column&& src) noexcept
virtual | ~Column () noexcept
GdaColumn* | gobj ()
| Provides access to the underlying C GObject. More...
const GdaColumn* | gobj () const
| Provides access to the underlying C GObject. More...
GdaColumn* | gobj_copy ()
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
Glib::RefPtr< Column > | copy () const
| Creates a new Gda::Column object from an existing one. More...
bool | equal (const Glib::RefPtr< const Column >& src) const
Glib::ustring | get_description () const
void | set_description (const Glib::ustring& title)
| Sets the column's description. More...
void | set_attribute (const Glib::ustring& attribute, const Value& value)
Value | get_attribute (const Glib::ustring& attribute) const
| Get the value associated to a named attribute. More...
Glib::ustring | get_name () const
void | set_name (const Glib::ustring& name)
| Sets the name of column to name. More...
Glib::ustring | get_dbms_type () const
void | set_dbms_type (const Glib::ustring& dbms_type)
| Defines column's database type. More...
GType | get_g_type () const
void | set_g_type (GType type)
| Sets the type of column to type. More...
bool | get_allow_null () const
| Gets the 'allow null' flag of the given column. More...
void | set_allow_null (bool allow=true)
| Sets the 'allow null' flag of the given column. More...
bool | get_auto_increment () const
void | set_auto_increment (bool is_auto=true)
| Sets the auto increment flag for the given column. More...
gint | get_position () const
void | set_position (gint position)
| Sets the position of the column refer to in the containing data model. More...
Value | get_default_value () const
void | set_default_value (const Value& default_value)
| Sets column's default Value. More...
Glib::SignalProxy1< void, const Glib::ustring& > | signal_name_changed ()
Glib::SignalProxy2< void, GType, GType > | signal_g_type_changed ()
Glib::PropertyProxy< Glib::ustring > | property_id ()
| Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel). More...
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_id () const
| Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel). More...
Public Member Functions inherited from Glib::Object
| Object (const Object &)=delete
Object & | operator= (const Object &)=delete
| Object (Object &&src) noexcept
Object & | operator= (Object &&src) noexcept
void * | get_data (const QueryQuark &key)
void | set_data (const Quark &key, void *data)
void | set_data (const Quark &key, void *data, DestroyNotify notify)
void | remove_data (const QueryQuark &quark)
void * | steal_data (const QueryQuark &quark)
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false)
Public Member Functions inherited from Glib::ObjectBase
| ObjectBase (const ObjectBase &)=delete
ObjectBase & | operator= (const ObjectBase &)=delete
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
void | set_property (const Glib::ustring &property_name, const PropertyType &value)
void | get_property (const Glib::ustring &property_name, PropertyType &value) const
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot)
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot)
void | freeze_notify ()
void | thaw_notify ()
virtual void | reference () const
virtual void | unreference () const
GObject * | gobj ()
const GObject * | gobj () const
GObject * | gobj_copy () const
Public Member Functions inherited from sigc::trackable
| trackable ()
| trackable (const trackable &src)
| trackable (trackable &&src) noexcept
| ~trackable ()
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const
void | notify_callbacks ()
trackable & | operator= (const trackable &src)
trackable & | operator= (trackable &&src) noexcept
void | remove_destroy_notify_callback (void *data) const

## Static Public Member Functions
static GType | get_type ()
| Get the GType for this class, for use with the underlying GObject type system. More...
static Glib::RefPtr< Column > | create ()

## Protected Member Functions
| Column ()
virtual void | on_name_changed (const Glib::ustring& old_name)
| This is a default handler for the signal signal_name_changed(). More...
virtual void | on_g_type_changed (GType old_type, GType new_type)
| This is a default handler for the signal signal_g_type_changed(). More...
Protected Member Functions inherited from Glib::Object
| Object ()
| Object (const Glib::ConstructParams &construct_params)
| Object (GObject *castitem)
virtual | ~Object () noexcept
Protected Member Functions inherited from Glib::ObjectBase
| ObjectBase ()
| ObjectBase (const char *custom_type_name)
| ObjectBase (const std::type_info &custom_type_info)
| ObjectBase (ObjectBase &&src) noexcept
ObjectBase & | operator= (ObjectBase &&src) noexcept
virtual | ~ObjectBase () noexcept=0
void | initialize (GObject *castitem)
void | initialize_move (GObject *castitem, Glib::ObjectBase *previous_wrapper)

## 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. More...

## Additional Inherited Members
Public Types inherited from Glib::Object
typedef void(* | DestroyNotify) (gpointer data)
Public Types inherited from sigc::trackable
typedef internal::func_destroy_notify | func_destroy_notify

## Detailed Description

Management of DataModel column attributes.

## Constructor & Destructor Documentation

Gnome::Gda::Column::Column | ( | Column&& | src | ) |
| noexcept

virtual Gnome::Gda::Column::~Column | ( |  | ) |
| virtual noexcept

Gnome::Gda::Column::Column | ( |  | ) |
| protected

## Member Function Documentation

Glib::RefPtr<Column> Gnome::Gda::Column::copy | ( |  | ) | const

Creates a new Gda::Column object from an existing one.

Returns
  A newly allocated Gda::Column with a copy of the data in column.

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.

Returns
  Whether the given column allows null values or not (`true` or `false`).

Value Gnome::Gda::Column::get_attribute | ( | const 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.

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`).

Glib::ustring Gnome::Gda::Column::get_dbms_type | ( |  | ) | const

Returns
  The database type of column.

Value Gnome::Gda::Column::get_default_value | ( |  | ) | const

Returns
  column's default value, as a Value object.

Glib::ustring Gnome::Gda::Column::get_description | ( |  | ) | const

Returns
  The column's description, in any.

GType Gnome::Gda::Column::get_g_type | ( |  | ) | const

Returns
  The type of column.

Glib::ustring Gnome::Gda::Column::get_name | ( |  | ) | const

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
| ) |  |
| protected virtual

This is a default handler for the signal signal_g_type_changed().

virtual void Gnome::Gda::Column::on_name_changed | ( | const Glib::ustring & | old_name | ) |
| protected virtual

This is a default handler for the signal signal_name_changed().

Column& Gnome::Gda::Column::operator= | ( | Column&& | src | ) |
| noexcept

Glib::PropertyProxy< Glib::ustring > Gnome::Gda::Column::property_id | ( |  | ) |

Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).

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.

Glib::PropertyProxy_ReadOnly< Glib::ustring > Gnome::Gda::Column::property_id | ( |  | ) | const

Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).

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

  dbms_type | A string.

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

  title | Title name.

void Gnome::Gda::Column::set_g_type | ( | GType | type | ) |

Sets the type of column to type.

Parameters

  type | The new type of column.

void Gnome::Gda::Column::set_name | ( | const Glib::ustring & | name | ) |

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.

Glib::SignalProxy2< void,GType,GType > Gnome::Gda::Column::signal_g_type_changed | ( |  | ) |

Slot Prototype:
  `void on_my_g_type_changed(GType old_type, GType new_type)`

Glib::SignalProxy1< void,const Glib::ustring& > Gnome::Gda::Column::signal_name_changed | ( |  | ) |

Slot Prototype:
  `void on_my_name_changed(const Glib::ustring& old_name)`

## Friends And Related Function Documentation

Glib::RefPtr< Gnome::Gda::Column > wrap | ( | GdaColumn * | object,
|  | bool | take_copy = `false`
| ) |  |
| related

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:

- libgdamm/column.h