db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: re-read a record
Date Fri, 07 Oct 2005 09:20:15 GMT




Hi,

The usual way is to read another instance of the class from the database.

    Thomas

David Beukes <davidb@paygate.co.za> schrieb am 06.10.2005 11:35:11:

> Hi,
>
> Fairly new to Torque so please go easy :)
>
> Is there a 'generally accepted' way to re-read a record. Scenario as
> follows; using Torque generated classes 'Transactions' and
> 'TransactionsPeer':
>
> 1. Create new instance of Transaction class by calling
> TransactionsPeer.retrievByPK.
>
> 2. External program gets control (through TCP connection) does some
> processing on the same record.
>
> 3. I still have original instance from point 1 but need to read changes
> that were made to the record in point 2.
>
> Should I simply create another instance of the Transactions class or is
> there a 'cleaner' way to re-read the record.
>
> Thanks in advance for any tips.
> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message