com.ibm.batch.container.transaction.impl
Class JTAUserTransactionAdapter

java.lang.Object
  extended by com.ibm.batch.container.transaction.impl.JTAUserTransactionAdapter
All Implemented Interfaces:
TransactionManagerSPI

public class JTAUserTransactionAdapter
extends Object
implements TransactionManagerSPI

The JTA Transaction Adapter is used in a J2EE environment where a JTA tran manager is available. *


Field Summary
protected  UserTransaction userTran
          JTA transaction manager
 
Constructor Summary
JTAUserTransactionAdapter(String jndiLookup)
          constructor
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userTran

protected UserTransaction userTran
JTA transaction manager

Constructor Detail

JTAUserTransactionAdapter

public JTAUserTransactionAdapter(String jndiLookup)
constructor

Method Detail

begin

public void begin()
           throws TransactionManagementException
Specified by:
begin in interface TransactionManagerSPI
Throws:
TransactionManagementException

commit

public void commit()
            throws TransactionManagementException
Specified by:
commit in interface TransactionManagerSPI
Throws:
TransactionManagementException

rollback

public void rollback()
              throws TransactionManagementException
Specified by:
rollback in interface TransactionManagerSPI
Throws:
TransactionManagementException

getStatus

public int getStatus()
              throws TransactionManagementException
Specified by:
getStatus in interface TransactionManagerSPI
Throws:
TransactionManagementException

setRollbackOnly

public void setRollbackOnly()
                     throws TransactionManagementException
Specified by:
setRollbackOnly in interface TransactionManagerSPI
Throws:
TransactionManagementException

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws TransactionManagementException
Specified by:
setTransactionTimeout in interface TransactionManagerSPI
Throws:
TransactionManagementException


Copyright © 2013. All Rights Reserved.