Traversing and Loading from an OID
Philip Mötteli
philip.moetteli at econophone.ch
Fri Feb 3 10:19:20 CST 2006
Hi again,
Am 03.02.2006 um 09:22 schrieb Ruslan Zasukhin:
> On 2/3/06 9:40 AM, "Philip Mötteli" <philip.moetteli at econophone.ch>
> wrote:
>
>> Lets say, I have an OID and an I_Database (and a table name). What
>> would I have to do, if I want to load the associated record in the db
>> (using VSDK C++)?
>
> MAY BE there I sense add new function
>
> I_Table_Ptr I_Database::GoToRecord( OID )
>
> Which will do this job ?
Yes, I think, it would make sense to offer this function.
Which leads me to the next question: Are you sure, that there must be
an "I_Table_Ptr" returned? Shouldn't it be some kind of a record?
How do I actually load the (serialized) data of this record from the
client?
I've found some pointing functions:
virtual bool put_RecID( REC_ID inRecID ) = 0;
virtual bool put_OID( OID inOID ) = 0;
But, after having pointed something in the I_Table, I need to
actually load it to some local cache. How would I do that?
Thanks for your patience!
Phil
More information about the Valentina
mailing list