GdaQueryFieldFunc

GdaQueryFieldFunc — Represents a function (selected by a GdaDictFunction object)

Synopsis




                    GdaQueryFieldFunc;
GdaQueryField*      gda_query_field_func_new            (GdaQuery *query,
                                                         const gchar *func_name);
GdaDictFunction*    gda_query_field_func_get_ref_func   (GdaQueryFieldFunc *func);
const gchar*        gda_query_field_func_get_ref_func_name
                                                        (GdaQueryFieldFunc *func);
gboolean            gda_query_field_func_set_args       (GdaQueryFieldFunc *func,
                                                         GSList *args);
GSList*             gda_query_field_func_get_args       (GdaQueryFieldFunc *func);

Object Hierarchy


  GObject
   +----GdaObject
         +----GdaQueryObject
               +----GdaQueryField
                     +----GdaQueryFieldFunc

Implemented Interfaces

GdaQueryFieldFunc implements GdaXmlStorage, GdaReferer, GdaEntityField and GdaRenderer.

Properties


  "function"                 GdaDictFunction*      : Read / Write
  "function-id"              gchar*                : Write
  "function-name"            gchar*                : Write
  "query"                    GdaQuery*             : Read / Write / Construct Only

Description

The function is applied to zero or more GdaQueryField objects of the same query

Details

GdaQueryFieldFunc

typedef struct _GdaQueryFieldFunc GdaQueryFieldFunc;

Warning

GdaQueryFieldFunc is deprecated and should not be used in newly-written code.


gda_query_field_func_new ()

GdaQueryField*      gda_query_field_func_new            (GdaQuery *query,
                                                         const gchar *func_name);

Warning

gda_query_field_func_new is deprecated and should not be used in newly-written code.

Creates a new GdaQueryFieldFunc object which represents the func_name function

query :

a GdaQuery in which the new object will be

func_name :

the name of the function to use

Returns :

the new object

gda_query_field_func_get_ref_func ()

GdaDictFunction*    gda_query_field_func_get_ref_func   (GdaQueryFieldFunc *func);

Warning

gda_query_field_func_get_ref_func is deprecated and should not be used in newly-written code.

Get the name of the function which func represents

func :

a GdaQueryFieldFunc object

Returns :

the function name

gda_query_field_func_get_ref_func_name ()

const gchar*        gda_query_field_func_get_ref_func_name
                                                        (GdaQueryFieldFunc *func);

Warning

gda_query_field_func_get_ref_func_name is deprecated and should not be used in newly-written code.

func :

Returns :


gda_query_field_func_set_args ()

gboolean            gda_query_field_func_set_args       (GdaQueryFieldFunc *func,
                                                         GSList *args);

Warning

gda_query_field_func_set_args is deprecated and should not be used in newly-written code.

Sets the argument(s) of func. If args is NULL, then all the arguments (if there was any) are removed.

If func is not active, then no check on the provided args is performed.

func :

a GdaQueryFieldFunc object

args :

a list of GdaQueryField objects

Returns :

TRUE if no error occurred

gda_query_field_func_get_args ()

GSList*             gda_query_field_func_get_args       (GdaQueryFieldFunc *func);

Warning

gda_query_field_func_get_args is deprecated and should not be used in newly-written code.

Get a list of the other GdaQueryField objects which are arguments of func. If some of them are missing, then a NULL is inserted where it should have been.

func :

a GdaQueryFieldFunc object

Returns :

a new list of arguments

Property Details

The "function" property

  "function"                 GdaDictFunction*      : Read / Write


The "function-id" property

  "function-id"              gchar*                : Write

Default value: NULL


The "function-name" property

  "function-name"            gchar*                : Write

Default value: NULL


The "query" property

  "query"                    GdaQuery*             : Read / Write / Construct Only