To get the data row from the DB at object constructor run a SELECT query
returning a GdaDataSelect, but in order to manage modifications I'm using a
GdaDataProxy using the returning GdaDataSelect, then to modify the data I
call gda_data_model_* functions over the GdaDataProxy, and then commint
changes when finish to modify each column's value (csh_object_update wraps
gda_data_proxy_apply_all_changes)

I haven't deside if I will have a Global GdaDataProxy and the object must
refers to one and only one object in it, in order to avoid run multiple
SELECT queries each time a new object is created; for today implementation,
when open a data from the data base it runs a SELECT query with a WHERE id =
ID, returning a GdaDataSelect object with just one row, may be adding a
*_new function with a GdaDataModel and row number could resove the problem
and allows the developer to use a per object query or a global data model.

2009/4/21 Vivien Malerba <vmale...@gmail.com>

>
>
> 2009/4/19 Daniel Espinosa <eso...@gmail.com>
>
>> I'm creating a financial library to record operations for accounting using
>> libgda, and I've created a CshObject to get a row from a table to get its
>> columns values or modify them, may be this object could be part of GDA you
>> can see the code for csh-object.c/h at:
>>
>> http://libcash.svn.sourceforge.net/viewvc/libcash/trunk/libcash/
>>
>
> I don't understand how it works because sometimes the priv->model is a
> GdaDataProxy, and sometimes it's a GdaDataSelect.
>
> Cheers,
>
> Vivien
>



-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates:
LIBRE)
_______________________________________________
gnome-db-list mailing list
gnome-db-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to