com.scooterframework.transaction
Class JdbcTransaction

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

public class JdbcTransaction
extends AbstractTransactionImpl

JdbcTransaction class


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
JdbcTransaction()
          Initialize JdbcTransaction
 
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

JdbcTransaction

public JdbcTransaction()
Initialize JdbcTransaction

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.

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

rollback

public void rollback()
Rollback a transaction.

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