You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by David Beukes <da...@paygate.co.za> on 2005/10/06 11:35:11 UTC
re-read a record
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
RE: re-read a record
Posted by Thomas Fischer <fi...@seitenbau.net>.
Hi,
The usual way is to read another instance of the class from the database.
Thomas
David Beukes <da...@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