What are you sorry about?
Yes, Torque supports that...but like I have already said today, your
database must also support it as well.
For example, here is the save() method that Torque generates for your
BaseBusinessObject...
/**
* Stores the object in the database. If the object is new,
* it inserts it; otherwise an update is performed.
*/
public void save(String dbName) throws Exception
{
DBConnection dbCon = null;
try
{
dbCon = BasePeer.beginTransaction(dbName);
save(dbCon);
}
catch(Exception e)
{
BasePeer.rollBackTransaction(dbCon);
throw e;
}
BasePeer.commitTransaction(dbCon);
}
Speaking of which, why isn't that in BaseObject instead of the BaseBO?
-jon
on 8/21/01 9:22 AM, "Gururaj Clinthamanikar" <[EMAIL PROTECTED]> wrote:
> Sorry,
>
> What I mean is like begnin (), commit () and rollback () etc. Like a
> TransactionManager.
>
> Guru.
>
> -----Original Message-----
> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 5:16 PM
> To: Turbine-user
> Subject: Re: Database Transactions.
>
>
> on 8/21/01 7:38 AM, "Gururaj Clinthamanikar" <[EMAIL PROTECTED]> wrote:
>
>> Does Turbine support Database Transactions.
>>
>> Gururaj.
>
> Turbine is the framework. Torque is the object relational tool.
>
> Torque supports transactions if your underlying database supports
> transactions.
>
> -jon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]