Gnome::Gda::QueryField Class Reference

Parent class for any query's field. More...

#include <queryfield.h>

Inheritance diagram for Gnome::Gda::QueryField:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~QueryField ()
GdaQueryField* gobj ()
 Provides access to the underlying C GObject.
const GdaQueryField* gobj () const
 Provides access to the underlying C GObject.
GdaQueryField* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr<DictTypeget_dict_type ()
 Get the Gda::DictType represented by the qfield object: for a function it returns the return type, for a value, it returns its type, etc.
Glib::RefPtr<const DictTypeget_dict_type () const
 Get the Gda::DictType represented by the qfield object: for a function it returns the return type, for a value, it returns its type, etc.
void set_alias (const Glib::ustring& alias)
 Sets qfield 's alias.
Glib::ustring get_alias () const
 Get qfield 's alias.
void set_visible (bool visible=true)
 Sets the visibility of qfield .
bool get_visible () const
void set_internal (bool internal=true)
 Sets weather qfield is internal or not.
bool get_internal () const
bool is_list () const
 Tells if qfield can potentially represent a list of values.

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gnome::Gda::QueryFieldwrap (GdaQueryField* object, bool take_copy=false)

Detailed Description

Parent class for any query's field.


Constructor & Destructor Documentation

virtual Gnome::Gda::QueryField::~QueryField (  )  [virtual]


Member Function Documentation

Glib::ustring Gnome::Gda::QueryField::get_alias (  )  const

Get qfield 's alias.

Returns:
The alias.

Glib::RefPtr<const DictType> Gnome::Gda::QueryField::get_dict_type (  )  const

Get the Gda::DictType represented by the qfield object: for a function it returns the return type, for a value, it returns its type, etc.

Returns:
The data type, or 0 if qfield does not have a data type.

Reimplemented in Gnome::Gda::QueryFieldValue.

Glib::RefPtr<DictType> Gnome::Gda::QueryField::get_dict_type (  ) 

Get the Gda::DictType represented by the qfield object: for a function it returns the return type, for a value, it returns its type, etc.

Returns:
The data type, or 0 if qfield does not have a data type.

Reimplemented in Gnome::Gda::QueryFieldValue.

bool Gnome::Gda::QueryField::get_internal (  )  const

Returns:
true if field is internal.

bool Gnome::Gda::QueryField::get_visible (  )  const

Returns:
true if field is visible.

const GdaQueryField* Gnome::Gda::QueryField::gobj (  )  const [inline]

Provides access to the underlying C GObject.

Reimplemented from Gnome::Gda::QueryObject.

Reimplemented in Gnome::Gda::QueryFieldAgg, Gnome::Gda::QueryFieldAll, Gnome::Gda::QueryFieldField, and Gnome::Gda::QueryFieldValue.

GdaQueryField* Gnome::Gda::QueryField::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Gnome::Gda::QueryObject.

Reimplemented in Gnome::Gda::QueryFieldAgg, Gnome::Gda::QueryFieldAll, Gnome::Gda::QueryFieldField, and Gnome::Gda::QueryFieldValue.

GdaQueryField* Gnome::Gda::QueryField::gobj_copy (  ) 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

Reimplemented from Gnome::Gda::QueryObject.

Reimplemented in Gnome::Gda::QueryFieldAgg, Gnome::Gda::QueryFieldAll, Gnome::Gda::QueryFieldField, and Gnome::Gda::QueryFieldValue.

bool Gnome::Gda::QueryField::is_list (  )  const

Tells if qfield can potentially represent a list of values.

Returns:
true if field can be a list of values.

void Gnome::Gda::QueryField::set_alias ( const Glib::ustring alias  ) 

Sets qfield 's alias.

Parameters:
alias The alias to set qfield to.

void Gnome::Gda::QueryField::set_internal ( bool  internal = true  ) 

Sets weather qfield is internal or not.

Internal fields in a query are fields added or changed by libgnomedb itself, such fields may or may not be visible.

void Gnome::Gda::QueryField::set_visible ( bool  visible = true  ) 

Sets the visibility of qfield .

A visible field will appear in the query's corresponding (virtual) entity, whereas a non visible one will be hidden (and possibly not taking part in the query).


Friends And Related Function Documentation

Glib::RefPtr<Gnome::Gda::QueryField> wrap ( GdaQueryField *  object,
bool  take_copy = false 
) [related]

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:
Generated on Sat Feb 10 20:06:40 2007 for libgdamm by  doxygen 1.4.7