Class ManagedTransactionAdapter
java.lang.Object
org.springframework.transaction.jta.ManagedTransactionAdapter
- All Implemented Interfaces:
- Transaction
Adapter for a managed JTA Transaction handle, taking a JTA
 
TransactionManager reference and creating
 a JTA Transaction handle for it.- Since:
- 3.0.2
- Author:
- Juergen Hoeller
- 
Constructor SummaryConstructorsConstructorDescriptionManagedTransactionAdapter(TransactionManager transactionManager) Create a new ManagedTransactionAdapter for the given TransactionManager.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcommit()booleandelistResource(XAResource xaRes, int flag) booleanenlistResource(XAResource xaRes) intfinal TransactionManagerReturn the JTA TransactionManager that this adapter delegates to.voidvoidrollback()void
- 
Constructor Details- 
ManagedTransactionAdapterCreate a new ManagedTransactionAdapter for the given TransactionManager.- Parameters:
- transactionManager- the JTA TransactionManager to wrap
- Throws:
- SystemException
 
 
- 
- 
Method Details- 
getTransactionManagerReturn the JTA TransactionManager that this adapter delegates to.
- 
commitpublic void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException- Specified by:
- commitin interface- Transaction
- Throws:
- RollbackException
- HeuristicMixedException
- HeuristicRollbackException
- SecurityException
- SystemException
 
- 
rollback- Specified by:
- rollbackin interface- Transaction
- Throws:
- SystemException
 
- 
setRollbackOnly- Specified by:
- setRollbackOnlyin interface- Transaction
- Throws:
- SystemException
 
- 
getStatus- Specified by:
- getStatusin interface- Transaction
- Throws:
- SystemException
 
- 
enlistResource- Specified by:
- enlistResourcein interface- Transaction
- Throws:
- RollbackException
- SystemException
 
- 
delistResource- Specified by:
- delistResourcein interface- Transaction
- Throws:
- SystemException
 
- 
registerSynchronization- Specified by:
- registerSynchronizationin interface- Transaction
- Throws:
- RollbackException
- SystemException
 
 
-