Top | ![]() |
![]() |
![]() |
![]() |
GdaQueryTarget * | gda_query_target_new () |
GdaQueryTarget * | gda_query_target_new_copy () |
GdaQuery * | gda_query_target_get_query () |
const gchar * | gda_query_target_get_represented_table_name () |
GdaEntity * | gda_query_target_get_represented_entity () |
void | gda_query_target_set_alias () |
const gchar * | gda_query_target_get_alias () |
gchar * | gda_query_target_get_complete_name () |
A GdaQueryTarget object represents an entity (usually a table, as a GdaDictTable) which is taking part in a query. For SELECT queries, the targets are the entities listed after the FROM clause; for the INSERT, DELETE and UPDATE queries, there is only one target which is the entity to which the modifications apply.
Within a single SELECT query, there can be more than one GdaQueryTarget object representing the same entity for queries making usage of an entity more than one time.
It implements the GdaXmlStorage, GdaReferer and GdaRenderer interfaces.
GdaQueryTarget * gda_query_target_new (GdaQuery *query
,const gchar *table
);
Creates a new GdaQueryTarget object, specifying the name of the table to reference.
GdaQueryTarget *
gda_query_target_new_copy (GdaQueryTarget *orig
);
Makes a copy of an existing object (copy constructor)
GdaQuery *
gda_query_target_get_query (GdaQueryTarget *target
);
Get the GdaQuery in which target
is
const gchar *
gda_query_target_get_represented_table_name
(GdaQueryTarget *target
);
Get the table name represented by target
GdaEntity *
gda_query_target_get_represented_entity
(GdaQueryTarget *target
);
Get the GdaEntity object which is represented by target
void gda_query_target_set_alias (GdaQueryTarget *target
,const gchar *alias
);
Sets target
's alias to alias
const gchar *
gda_query_target_get_alias (GdaQueryTarget *target
);
Get target
's alias
gchar *
gda_query_target_get_complete_name (GdaQueryTarget *target
);
Get a complete name for target in the form of "<entity name> AS <target alias>"