public class TxRequired extends JtaTransactionPolicy
TransactionPolicy.TransactionSynchronization
logger, transactionManager, transactionType, txLogger
Constructor and Description |
---|
TxRequired(TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits or rolls back this TransactionPolicy.
|
Transaction |
getCurrentTransaction() |
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.
|
beginTransaction, completeTransaction, enlistResource, fireNonTransactionalCompletion, getResource, getTransaction, getTransactionType, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, resumeTransaction, rollbackTransaction, setRollbackOnly, setRollbackOnly, setRollbackOnly, suspendTransaction, toString
public TxRequired(TransactionManager transactionManager) throws SystemException
SystemException
public boolean isNewTransaction()
TransactionPolicy
public boolean isClientTransaction()
TransactionPolicy
public Transaction getCurrentTransaction()
getCurrentTransaction
in class JtaTransactionPolicy
public void commit() throws ApplicationException, SystemException
TransactionPolicy
ApplicationException
- if recoverable exception is encounteredSystemException
- if an unrecoverable exception is encountered