public class TxMandatory extends JtaTransactionPolicy
TransactionPolicy.TransactionSynchronization
logger, transactionManager, transactionType, txLogger
Constructor and Description |
---|
TxMandatory(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 TxMandatory(TransactionManager transactionManager) throws SystemException, ApplicationException
SystemException
ApplicationException
public boolean isNewTransaction()
TransactionPolicy
public boolean isClientTransaction()
TransactionPolicy
public Transaction getCurrentTransaction()
getCurrentTransaction
in class JtaTransactionPolicy
public void commit()
TransactionPolicy