
public class TransactionManagerDelegator extends Object implements TransactionManager, org.jboss.jca.core.spi.transaction.TransactionTimeoutConfiguration
| Constructor and Description |
|---|
TransactionManagerDelegator(TransactionManager tm)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
long |
getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
Get the time left before transaction timeout.
|
Transaction |
getTransaction() |
int |
getTransactionTimeout()
Get the transaction timeout.
|
void |
resume(Transaction tobj) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
public TransactionManagerDelegator(TransactionManager tm)
tm - The transaction managerpublic void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic int getTransactionTimeout()
throws SystemException
getTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfigurationSystemException - For any errorpublic long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
throws RollbackException
getTimeLeftBeforeTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfigurationerrorRollback - throw an error if the transaction is marked for rollbackRollbackException - If the transaction is marked for rollback and
errorRollback is trueCopyright © 2013 IronJacamar (http://www.ironjacamar.org)