| GNOME Data Access 3.0 manual | ||||
|---|---|---|---|---|
GdaDictAggregateGdaDictAggregate — Represents an aggregate in the DBMS (like |
Synopsis
GdaDictAggregate; GObject* gda_dict_aggregate_new (GdaDict *dict); void gda_dict_aggregate_set_dbms_id (GdaDictAggregate *agg, const gchar *id); gchar* gda_dict_aggregate_get_dbms_id (GdaDictAggregate *agg); void gda_dict_aggregate_set_sqlname (GdaDictAggregate *agg, const gchar *sqlname); const gchar* gda_dict_aggregate_get_sqlname (GdaDictAggregate *agg); void gda_dict_aggregate_set_arg_dict_type (GdaDictAggregate *agg, GdaDictType *dt); GdaDictType* gda_dict_aggregate_get_arg_dict_type (GdaDictAggregate *agg); void gda_dict_aggregate_set_ret_dict_type (GdaDictAggregate *agg, GdaDictType *dt); GdaDictType* gda_dict_aggregate_get_ret_dict_type (GdaDictAggregate *agg);
Description
Because aggregates can be polymorphic, the name is not enough to identify them, so the DBMS provides a unique id which can be used to uniquely identify an aggregate.
It implements the GdaXmlStorage interface.
Details
gda_dict_aggregate_new ()
GObject* gda_dict_aggregate_new (GdaDict *dict);
Creates a new GdaDictAggregate object which represents an aggregate in the dictionary
|
a GdaDict object |
Returns : |
the new object |
gda_dict_aggregate_set_dbms_id ()
void gda_dict_aggregate_set_dbms_id (GdaDictAggregate *agg, const gchar *id);
Set the DBMS identifier of the aggregate
|
a GdaDictAggregate object |
|
the DBMS identifier |
gda_dict_aggregate_get_dbms_id ()
gchar* gda_dict_aggregate_get_dbms_id (GdaDictAggregate *agg);
Get the DBMS identifier of the aggregate
|
a GdaDictAggregate object |
Returns : |
the aggregate's id |
gda_dict_aggregate_set_sqlname ()
void gda_dict_aggregate_set_sqlname (GdaDictAggregate *agg, const gchar *sqlname);
Set the SQL name of the data type.
|
a GdaDictAggregate object |
|
gda_dict_aggregate_get_sqlname ()
const gchar* gda_dict_aggregate_get_sqlname (GdaDictAggregate *agg);
Get the DBMS's name of a data type.
|
a GdaDictAggregate object |
Returns : |
the name of the data type |
gda_dict_aggregate_set_arg_dict_type ()
void gda_dict_aggregate_set_arg_dict_type
(GdaDictAggregate *agg,
GdaDictType *dt);
Set the argument type of a aggregate
|
a GdaDictAggregate object |
|
a GdaDictType objects or NULL value to represent the data type of the aggregate's unique argument . |
gda_dict_aggregate_get_arg_dict_type ()
GdaDictType* gda_dict_aggregate_get_arg_dict_type (GdaDictAggregate *agg);
To consult the list of arguments types (and number) of a aggregate.
|
a GdaDictAggregate object |
Returns : |
a list of GdaDictType objects, the list MUST NOT be modified. |
gda_dict_aggregate_set_ret_dict_type ()
void gda_dict_aggregate_set_ret_dict_type
(GdaDictAggregate *agg,
GdaDictType *dt);
Set the return type of a aggregate
|
a GdaDictAggregate object |
|
a GdaDictType object or NULL |
gda_dict_aggregate_get_ret_dict_type ()
GdaDictType* gda_dict_aggregate_get_ret_dict_type (GdaDictAggregate *agg);
To consult the return type of a aggregate.
|
a GdaDictAggregate object |
Returns : |
a GdaDictType object. |
