Class TransactionAttributes

java.lang.Object
org.frankframework.core.TransactionAttributes
All Implemented Interfaces:
HasTransactionAttribute
Direct Known Subclasses:
AbstractJobDef, AbstractPipe, PipeLine, Receiver

public class TransactionAttributes extends Object implements HasTransactionAttribute
  • Field Details

    • log

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

    • TransactionAttributes

      public TransactionAttributes()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Throws:
      ConfigurationException
    • configureTransactionAttributes

      public static org.springframework.transaction.TransactionDefinition configureTransactionAttributes(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds)
    • setTransacted

      @Deprecated @ConfigurationWarning("implemented as setting of transacted=true as transactionAttribute=Required and transacted=false as transactionAttribute=Supports") public void setTransacted(boolean transacted)
      Deprecated.
    • isTransacted

      public boolean isTransacted()
    • isTransacted

      public static boolean isTransacted(TransactionAttribute txAtt)
    • setTransactionTimeout

      public void setTransactionTimeout(int transactionTimeoutSeconds)
      Set transactionTimeout in seconds.
      Specified by:
      setTransactionTimeout in interface HasTransactionAttribute
      Parameters:
      transactionTimeoutSeconds - Time in seconds after which a transaction will fail.
    • getTransactionAttribute

      public TransactionAttribute getTransactionAttribute()
      Specified by:
      getTransactionAttribute in interface HasTransactionAttribute
    • setTransactionAttribute

      public void setTransactionAttribute(TransactionAttribute transactionAttribute)
      Description copied from interface: HasTransactionAttribute
      The transactionAttribute declares transactional behavior of execution. It applies both to database transactions and XA transactions. The pipeline uses this to start a new transaction or suspend the current one when required. For developers: it is equal to <a href=\"https://docs.oracle.com/javaee/7/tutorial/transactions003.htm\">EJB transaction attribute. Possible values for transactionAttribute: <table border=\"1\"> transactionAttributecallers TransactionPipeline excecuted in Transaction <td colspan=\"1\" rowspan=\"2\">Required noneT2 T1 T1 <td colspan=\"1\" rowspan=\"2\">RequiresNew noneT2 T1 T2 <td colspan=\"1\" rowspan=\"2\">Mandatory noneerror T1 T1 <td colspan=\"1\" rowspan=\"2\">NotSupportednonenone T1 none <td colspan=\"1\" rowspan=\"2\">Supports nonenone T1 T1 <td colspan=\"1\" rowspan=\"2\">Never nonenone T1 error
      Specified by:
      setTransactionAttribute in interface HasTransactionAttribute
    • getTransactionTimeout

      public int getTransactionTimeout()
      Specified by:
      getTransactionTimeout in interface HasTransactionAttribute
    • getTxDef

      public org.springframework.transaction.TransactionDefinition getTxDef()
      Specified by:
      getTxDef in interface HasTransactionAttribute