public class TxBeanManaged extends JtaTransactionPolicy implements BeanTransactionPolicy
BeanTransactionPolicy.SuspendedTransactionTransactionPolicy.TransactionSynchronizationlogger, transactionManager, transactionType, txLogger| Constructor and Description |
|---|
TxBeanManaged(TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits or rolls back this TransactionPolicy.
|
Transaction |
getCurrentTransaction() |
UserTransaction |
getUserTransaction()
Gets the UserTransaction the bean uses to manage the transaction.
|
boolean |
isClientTransaction()
Is this policy running in an inhreited transaction? Some
TransactionTypes, such as Required or Supported, use the caller's
transaction instead of starting a new transaction.
|
boolean |
isNewTransaction()
Is this a new transaction and not an inhreited transaction or no transaction? Some
TransactionTypes, such as Required or Supported, use the caller's
transaction instead of starting a new transaction.
|
void |
resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction)
Resumes the transaction contained in the suspended transaction token.
|
BeanTransactionPolicy.SuspendedTransaction |
suspendUserTransaction()
Syspends the bean managed transaction.
|
beginTransaction, completeTransaction, enlistResource, fireNonTransactionalCompletion, getResource, getTransaction, getTransactionType, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, resumeTransaction, rollbackTransaction, setRollbackOnly, setRollbackOnly, setRollbackOnly, suspendTransaction, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenlistResource, getResource, getTransactionType, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, setRollbackOnly, setRollbackOnlypublic TxBeanManaged(TransactionManager transactionManager)
throws SystemException
SystemExceptionpublic boolean isNewTransaction()
TransactionPolicyisNewTransaction in interface TransactionPolicypublic boolean isClientTransaction()
TransactionPolicyisClientTransaction in interface TransactionPolicypublic Transaction getCurrentTransaction()
getCurrentTransaction in class JtaTransactionPolicypublic UserTransaction getUserTransaction()
BeanTransactionPolicygetUserTransaction in interface BeanTransactionPolicypublic BeanTransactionPolicy.SuspendedTransaction suspendUserTransaction() throws SystemException
BeanTransactionPolicysuspendUserTransaction in interface BeanTransactionPolicySystemException - if there was a problem suspending the
transactionpublic void resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction) throws SystemException
BeanTransactionPolicyresumeUserTransaction in interface BeanTransactionPolicysuspendedTransaction - the transaction to resume; not nullSystemException - if there was a problem resuming the transactionpublic void commit()
throws ApplicationException,
SystemException
TransactionPolicycommit in interface TransactionPolicyApplicationException - if recoverable exception is encounteredSystemException - if an unrecoverable exception is encountered