com.scooterframework.transaction
Class CmtTransaction

java.lang.Object
  extended by com.scooterframework.transaction.AbstractTransactionImpl
      extended by com.scooterframework.transaction.CmtTransaction
All Implemented Interfaces:
Transaction

public class CmtTransaction
extends AbstractTransactionImpl

CmtTransaction class allows container to control transaction.


Field Summary
 
Fields inherited from class com.scooterframework.transaction.AbstractTransactionImpl
bAllResourcesReleased, bTransactionHasCommitted, bTransactionHasEnded, bTransactionHasRollbacked, bTransactionHasStarted, connList, nameConnMap, transactionType
 
Fields inherited from interface com.scooterframework.transaction.Transaction
CMT_TRANSACTION_TYPE, JDBC_TRANSACTION_TYPE, JTA_TRANSACTION_TYPE, USER_TRANSACTION_JNDI_STRING
 
Constructor Summary
CmtTransaction()
          Initialize CmtTransaction
 
Method Summary
 void begin()
          Start a transaction.
 void commit()
          Commit a transaction.
 void rollback()
          Rollback a transaction.
 
Methods inherited from class com.scooterframework.transaction.AbstractTransactionImpl
getConnection, getConnection, getConnection, getTransactionType, isAllResourcesReleased, isTransactionEnded, isTransactionStarted, releaseResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmtTransaction

public CmtTransaction()
Initialize CmtTransaction

Method Detail

begin

public void begin()
Start a transaction.

Specified by:
begin in interface Transaction
Overrides:
begin in class AbstractTransactionImpl

commit

public void commit()
Commit a transaction. This is the end of the transaction. This method commits all JdbcConnections.

Specified by:
commit in interface Transaction
Overrides:
commit in class AbstractTransactionImpl

rollback

public void rollback()
Rollback a transaction. This method commits all JdbcConnections.

Specified by:
rollback in interface Transaction
Overrides:
rollback in class AbstractTransactionImpl