com.softwareag.tamino.db.api.connection
Interface TLocalTransaction

All Superinterfaces:
TTransaction
All Known Implementing Classes:
TLocalTransactionMode

public interface TLocalTransaction
extends TTransaction

TLocalTransaction represents a local transaction context. A TLocalTransaction instance provides operations needed to demarcate a local transaction. A local transaction can either be terminated by a commit or rollback. If a TLocalTransaction instance is released it can no longer be used and then stays invalid until it is garbage collected.

Version:
$Revision: 1.6 $
Author:
Marcus Schreyer

Method Summary
 void commit()
          Performs a commit on the local transaction instance.
 void rollback()
          Performs a rollback on the local transaction instance.
 
Methods inherited from interface com.softwareag.tamino.db.api.connection.TTransaction
getLocale, setLocale
 

Method Detail

commit

void commit()
            throws TTransactionException
Performs a commit on the local transaction instance. The commit operation commits the database changes made so far during the current local transaction. If the commit is successful, a new local transaction is started automatically.

Throws:
TTransactionException - signals an error while attempting the commit operation.

rollback

void rollback()
              throws TTransactionException
Performs a rollback on the local transaction instance. The rollback operation discards all of the database changes that were made during the current local transaction. If the rollback is successful, a new local transaction is started automatically.

Throws:
TTransactionException - signals an error while attempting the rollback operation.


Copyright (c) 2013 Software AG. All Rights Reserved.