Package org.frankframework.jta
Class SpringTxManagerProxy
java.lang.Object
org.frankframework.jta.SpringTxManagerProxy
- All Implemented Interfaces:
IThreadConnectableTransactionManager<Object,
,Object> org.springframework.beans.factory.InitializingBean
,org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.TransactionManager
public class SpringTxManagerProxy
extends Object
implements IThreadConnectableTransactionManager<Object,Object>, org.springframework.beans.factory.InitializingBean
proxy class for transaction manager.
- Since:
- 4.8
- Author:
- Tim van der Leeuw
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
commit
(org.springframework.transaction.TransactionStatus txStatus) org.springframework.transaction.PlatformTransactionManager
org.springframework.transaction.TransactionStatus
getTransaction
(org.springframework.transaction.TransactionDefinition txDef) static org.springframework.transaction.TransactionDefinition
getTransactionDefinition
(int txOption, int timeout) void
resumeTransaction
(Object transaction, Object resources) void
rollback
(org.springframework.transaction.TransactionStatus txStatus) void
setRealTxManager
(org.springframework.transaction.PlatformTransactionManager realTxManager) suspendTransaction
(Object transaction)
-
Constructor Details
-
SpringTxManagerProxy
public SpringTxManagerProxy()
-
-
Method Details
-
getTransactionDefinition
public static org.springframework.transaction.TransactionDefinition getTransactionDefinition(int txOption, int timeout) - Parameters:
txOption
- e.q. TransactionDefinition.PROPAGATION_REQUIRES_NEWtimeout
- Set the timeout to apply in seconds. Default timeout is -1.- Returns:
- IbisTransaction
-
getTransaction
@Nonnull public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition txDef) throws org.springframework.transaction.TransactionException - Specified by:
getTransaction
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
commit
public void commit(org.springframework.transaction.TransactionStatus txStatus) throws org.springframework.transaction.TransactionException - Specified by:
commit
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
rollback
public void rollback(@Nonnull org.springframework.transaction.TransactionStatus txStatus) throws org.springframework.transaction.TransactionException - Specified by:
rollback
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
getThreadConnectableProxy
-
getCurrentTransaction
- Specified by:
getCurrentTransaction
in interfaceIThreadConnectableTransactionManager<Object,
Object> - Throws:
org.springframework.transaction.TransactionException
-
suspendTransaction
- Specified by:
suspendTransaction
in interfaceIThreadConnectableTransactionManager<Object,
Object>
-
resumeTransaction
- Specified by:
resumeTransaction
in interfaceIThreadConnectableTransactionManager<Object,
Object>
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getRealTxManager
public org.springframework.transaction.PlatformTransactionManager getRealTxManager() -
setRealTxManager
public void setRealTxManager(org.springframework.transaction.PlatformTransactionManager realTxManager)
-