public class WebSphereExtendedJtaPlatform.TransactionManagerAdapter extends Object implements TransactionManager
| Modifier and Type | Class and Description |
|---|---|
class |
WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Starts a new transaction, and associate it with the calling thread.
|
void |
commit()
Commit the transaction associated with the calling thread.
|
int |
getStatus()
Get the status of the transaction associated with the calling thread.
|
Transaction |
getTransaction()
Get the transaction associated with the calling thread.
|
void |
resume(Transaction txn)
Resume the association of the calling thread with the given
transaction.
|
void |
rollback()
Rolls back the transaction associated with the calling thread.
|
void |
setRollbackOnly()
Mark the transaction associated with the calling thread for rollback
only.
|
void |
setTransactionTimeout(int i)
Change the transaction timeout for transactions started by the calling
thread with the
TransactionManager.begin() method. |
Transaction |
suspend()
Suspend the association the calling thread has to a transaction,
and return the suspended transaction.
|
public void begin()
throws NotSupportedException,
SystemException
TransactionManagerbegin in interface TransactionManagerNotSupportedException - If the calling thread is already
associated with a transaction, and nested transactions are
not supported.SystemException - If the transaction service fails in an
unexpected way.public void commit()
throws UnsupportedOperationException
TransactionManagercommit in interface TransactionManagerUnsupportedOperationExceptionpublic int getStatus()
throws SystemException
TransactionManagergetStatus in interface TransactionManagerStatus constants. If no transaction is associated
with the calling thread,
Status.STATUS_NO_TRANSACTION is returned.SystemException - If the transaction service fails in an
unexpected way.public Transaction getTransaction() throws SystemException
TransactionManagergetTransaction in interface TransactionManagernull if the calling thread is not associated
with a transaction.SystemException - If the transaction service fails in an
unexpected way.public void resume(Transaction txn) throws UnsupportedOperationException
TransactionManagerresume in interface TransactionManagertxn - The transaction to be associated with the calling thread.UnsupportedOperationExceptionpublic void rollback()
throws UnsupportedOperationException
TransactionManagerrollback in interface TransactionManagerUnsupportedOperationExceptionpublic void setRollbackOnly()
throws UnsupportedOperationException
TransactionManagersetRollbackOnly in interface TransactionManagerUnsupportedOperationExceptionpublic void setTransactionTimeout(int i)
throws UnsupportedOperationException
TransactionManagerTransactionManager.begin() method.setTransactionTimeout in interface TransactionManageri - The new timeout value, in seconds. If this parameter
is 0, the timeout value is reset to the default
value.UnsupportedOperationExceptionpublic Transaction suspend() throws UnsupportedOperationException
TransactionManagersuspend in interface TransactionManagernull if the calling thread was not associated
with a transaction.UnsupportedOperationExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.