## GdaDataAccessWrapper

GdaDataAccessWrapper — Offers a random access on top of a cursor-only access data model

## Synopsis

                        GdaDataAccessWrapper;
                        GdaDataAccessWrapperClass;
                        GdaDataAccessWrapperPrivate;
    GdaDataModel*       gda_data_access_wrapper_new         (GdaDataModel *model);
    gboolean            gda_data_access_wrapper_row_exists  (GdaDataAccessWrapper *wrapper,
                                                             gint row);

## Object Hierarchy

      GObject
       +----GdaObject
             +----GdaDataAccessWrapper

## Implemented Interfaces

GdaDataAccessWrapper implements GdaDataModel.

## Properties

      "model"                    GdaDataModel*         : Read / Write / Construct Only

## Description

The GdaDataAccessWrapper object simply wraps around another GdaDataModel data model object and allows data to be accessed in a random way while remaining memory efficient as much as possible.

## Details

### GdaDataAccessWrapper

    typedef struct _GdaDataAccessWrapper GdaDataAccessWrapper;

### GdaDataAccessWrapperClass

    typedef struct {
    	GdaObjectClass                 parent_class;
    } GdaDataAccessWrapperClass;

### GdaDataAccessWrapperPrivate

    typedef struct _GdaDataAccessWrapperPrivate GdaDataAccessWrapperPrivate;

### gda_data_access_wrapper_new ()

    GdaDataModel*       gda_data_access_wrapper_new         (GdaDataModel *model);

Creates a new GdaDataModel object which buffers the rows of `model`. This object is usefull only if `model` can only be accessed using cursor based method.

`model` : | a GdaDataModel
Returns : | a pointer to the newly created GdaDataModel.

### gda_data_access_wrapper_row_exists ()

    gboolean            gda_data_access_wrapper_row_exists  (GdaDataAccessWrapper *wrapper,
                                                             gint row);

Tests if the wrapper model of `wrapper` has a row number `row`

`wrapper` : | a GdaDataAccessWrapper objects
`row` : | a row number to test existance
Returns : | TRUE if row number `row` exists

## Property Details

### The `"model"` property

      "model"                    GdaDataModel*         : Read / Write / Construct Only