Class IbisTransaction

java.lang.Object
org.frankframework.core.IbisTransaction

public class IbisTransaction extends Object
Class which generates extra logging when starting and committing transactions.
Author:
Peter Leeuwenburgh
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.logging.log4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IbisTransaction(org.springframework.transaction.PlatformTransactionManager txManager, org.springframework.transaction.TransactionDefinition txDef, String descriptionOfOwner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Complete this transaction by either committing it or rolling it back, depending on the transaction status.
    boolean
     
    static boolean
    isDistributedTransactionsSupported(org.springframework.transaction.PlatformTransactionManager txManager)
     
    boolean
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected final org.apache.logging.log4j.Logger log
  • Constructor Details

    • IbisTransaction

      public IbisTransaction(@Nonnull org.springframework.transaction.PlatformTransactionManager txManager, @Nonnull org.springframework.transaction.TransactionDefinition txDef, @Nonnull String descriptionOfOwner)
  • Method Details

    • isDistributedTransactionsSupported

      public static boolean isDistributedTransactionsSupported(org.springframework.transaction.PlatformTransactionManager txManager)
    • setRollbackOnly

      public void setRollbackOnly()
    • isRollbackOnly

      public boolean isRollbackOnly()
    • isCompleted

      public boolean isCompleted()
    • complete

      public void complete()
      Complete this transaction by either committing it or rolling it back, depending on the transaction status.

      In case a rollback is performed, a successful rollback will not raise an exception.