com.ibm.batch.container.transaction.impl
Class JTAUserTransactionAdapter
java.lang.Object
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. *
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userTran
protected UserTransaction userTran
- JTA transaction manager
JTAUserTransactionAdapter
public JTAUserTransactionAdapter(String jndiLookup)
- constructor
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.