public class SpringTxManagerProxy extends Object implements IThreadConnectableTransactionManager<Object,Object>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SpringTxManagerProxy() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
commit(org.springframework.transaction.TransactionStatus txStatus) |
Object |
getCurrentTransaction() |
IThreadConnectableTransactionManager<Object,Object> |
getThreadConnectableProxy() |
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) |
Object |
suspendTransaction(Object transaction) |
public static org.springframework.transaction.TransactionDefinition getTransactionDefinition(int txOption, int timeout)
txOption
- e.q. TransactionDefinition.PROPAGATION_REQUIRES_NEWtimeout
- Set the timeout to apply in seconds. Default timeout is TIMEOUT_DEFAULT
(-1).public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition txDef) throws org.springframework.transaction.TransactionException
getTransaction
in interface org.springframework.transaction.PlatformTransactionManager
org.springframework.transaction.TransactionException
public void commit(org.springframework.transaction.TransactionStatus txStatus) throws org.springframework.transaction.TransactionException
commit
in interface org.springframework.transaction.PlatformTransactionManager
org.springframework.transaction.TransactionException
public void rollback(org.springframework.transaction.TransactionStatus txStatus) throws org.springframework.transaction.TransactionException
rollback
in interface org.springframework.transaction.PlatformTransactionManager
org.springframework.transaction.TransactionException
public IThreadConnectableTransactionManager<Object,Object> getThreadConnectableProxy()
public Object getCurrentTransaction() throws org.springframework.transaction.TransactionException
getCurrentTransaction
in interface IThreadConnectableTransactionManager<Object,Object>
org.springframework.transaction.TransactionException
public Object suspendTransaction(Object transaction)
suspendTransaction
in interface IThreadConnectableTransactionManager<Object,Object>
public void resumeTransaction(Object transaction, Object resources)
resumeTransaction
in interface IThreadConnectableTransactionManager<Object,Object>
Copyright © 2023 Frank!Framework. All rights reserved.