|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.jbatch.container.transaction.impl.JTAUserTransactionAdapter
public class JTAUserTransactionAdapter
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()
Create a new transaction and associate it with the current thread. |
void |
commit()
Complete the transaction associated with the current thread. |
int |
getStatus()
Obtain the status of the transaction associated with the current thread. |
void |
rollback()
Roll back the transaction associated with the current thread. |
void |
setRollbackOnly()
Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction. |
void |
setTransactionTimeout(int seconds)
Modify the value of the timeout value that is associated with the transactions started by the current thread with the begin method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UserTransaction userTran
| Constructor Detail |
|---|
public JTAUserTransactionAdapter(String jndiLookup)
| Method Detail |
|---|
public void begin()
throws TransactionManagementException
TransactionManagerAdapter
begin in interface TransactionManagerAdapterTransactionManagementException
public void commit()
throws TransactionManagementException
TransactionManagerAdapter
commit in interface TransactionManagerAdapterTransactionManagementException
public void rollback()
throws TransactionManagementException
TransactionManagerAdapter
rollback in interface TransactionManagerAdapterTransactionManagementException
public int getStatus()
throws TransactionManagementException
TransactionManagerAdapter
getStatus in interface TransactionManagerAdapterTransactionManagementException
public void setRollbackOnly()
throws TransactionManagementException
TransactionManagerAdapter
setRollbackOnly in interface TransactionManagerAdapterTransactionManagementException
public void setTransactionTimeout(int seconds)
throws TransactionManagementException
TransactionManagerAdapter
setTransactionTimeout in interface TransactionManagerAdapterseconds - seconds - The value of the timeout
in seconds. If the value is zero, the transaction
service restores the default value.
TransactionManagementException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||