com.scooterframework.transaction
Interface TransactionManager

All Known Implementing Classes:
ThreadLocalTransactionManager

public interface TransactionManager

TransactionManager interface specified services that are related to managing a transaction.


Method Summary
 void beginTransaction()
          Begin a transaction.
 void beginTransaction(java.lang.String type)
          Begin a transaction of a specific type.
 void commitTransaction()
          Commit a transaction.
 Transaction getTransaction()
          Return a Transaction instance associated with the current thread.
 void releaseResources()
          Release all resources hold by this transaction.
 void rollbackTransaction()
          Rollback a transaction.
 void setTransaction(Transaction tx)
          Set a Transaction instance associated with the current thread.
 

Method Detail

getTransaction

Transaction getTransaction()
Return a Transaction instance associated with the current thread.

Returns:
Transaction

setTransaction

void setTransaction(Transaction tx)
Set a Transaction instance associated with the current thread.


beginTransaction

void beginTransaction()
Begin a transaction.


beginTransaction

void beginTransaction(java.lang.String type)
Begin a transaction of a specific type.


commitTransaction

void commitTransaction()
Commit a transaction.


rollbackTransaction

void rollbackTransaction()
Rollback a transaction.


releaseResources

void releaseResources()
Release all resources hold by this transaction.