GdaDataModelRow

GdaDataModelRow — Base implementation for other objects to implement the GdaDataModel interface based on the usage of

Synopsis

                    GdaDataModelRow;
                    GdaDataModelRowClass;
                    GdaDataModelRowPrivate;

Object Hierarchy

  GObject
   +----GdaObject
         +----GdaDataModelRow
               +----GdaDataModelArray
               +----GdaDataModelHash

Implemented Interfaces

GdaDataModelRow implements GdaDataModel.

Properties

  "command-text"             gchar*                : Read / Write
  "command-type"             gint                  : Read / Write
  "read-only"                gboolean              : Read / Write

Description

This object is not intended to be instanciated directly, but to be inherited.

Details

GdaDataModelRow

typedef struct _GdaDataModelRow GdaDataModelRow;


GdaDataModelRowClass

typedef struct {
	GdaObjectClass parent_class;

	/* virtual methods */
	gint                (* get_n_rows)      (GdaDataModelRow *model);
	gint                (* get_n_columns)   (GdaDataModelRow *model);
	GdaRow             *(* get_row)         (GdaDataModelRow *model, gint row, GError **error);
	const GValue       *(* get_value_at)    (GdaDataModelRow *model, gint col, gint row);
	
	gboolean            (* is_updatable)    (GdaDataModelRow *model);

	GdaRow             *(* append_values)   (GdaDataModelRow *model, const GList *values, GError **error);
	gboolean            (* append_row)      (GdaDataModelRow *model, GdaRow *row, GError **error);
	gboolean            (* update_row)      (GdaDataModelRow *model, GdaRow *row, GError **error);
	gboolean            (* remove_row)      (GdaDataModelRow *model, GdaRow *row, GError **error);
} GdaDataModelRowClass;


GdaDataModelRowPrivate

typedef struct _GdaDataModelRowPrivate GdaDataModelRowPrivate;

Property Details

The "command-text" property

  "command-text"             gchar*                : Read / Write

Default value: NULL


The "command-type" property

  "command-type"             gint                  : Read / Write

Allowed values: [0,5]

Default value: 5


The "read-only" property

  "read-only"                gboolean              : Read / Write

Default value: FALSE