public interface BeanTransactionPolicy extends TransactionPolicy
Modifier and Type | Interface and Description |
---|---|
static interface |
BeanTransactionPolicy.SuspendedTransaction
Represents a suspended transaction.
|
TransactionPolicy.TransactionSynchronization
Modifier and Type | Method and Description |
---|---|
UserTransaction |
getUserTransaction()
Gets the UserTransaction the bean uses to manage the transaction.
|
void |
resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction)
Resumes the transaction contained in the suspended transaction token.
|
BeanTransactionPolicy.SuspendedTransaction |
suspendUserTransaction()
Syspends the bean managed transaction.
|
commit, enlistResource, getResource, getTransactionType, isClientTransaction, isNewTransaction, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, setRollbackOnly, setRollbackOnly
UserTransaction getUserTransaction()
BeanTransactionPolicy.SuspendedTransaction suspendUserTransaction() throws SystemException
SystemException
- if there was a problem suspending the
transactionvoid resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction) throws SystemException
suspendedTransaction
- the transaction to resume; not nullSystemException
- if there was a problem resuming the transaction