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 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_NEW
      timeout - 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 interface org.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 interface org.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 interface org.springframework.transaction.PlatformTransactionManager
      Throws:
      org.springframework.transaction.TransactionException
    • getThreadConnectableProxy

      public IThreadConnectableTransactionManager<Object,Object> getThreadConnectableProxy()
    • getCurrentTransaction

      public Object getCurrentTransaction() throws org.springframework.transaction.TransactionException
      Specified by:
      getCurrentTransaction in interface IThreadConnectableTransactionManager<Object,Object>
      Throws:
      org.springframework.transaction.TransactionException
    • suspendTransaction

      public Object suspendTransaction(Object transaction)
      Specified by:
      suspendTransaction in interface IThreadConnectableTransactionManager<Object,Object>
    • resumeTransaction

      public void resumeTransaction(Object transaction, Object resources)
      Specified by:
      resumeTransaction in interface IThreadConnectableTransactionManager<Object,Object>
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getRealTxManager

      public org.springframework.transaction.PlatformTransactionManager getRealTxManager()
    • setRealTxManager

      public void setRealTxManager(org.springframework.transaction.PlatformTransactionManager realTxManager)