Class TransactionAttributes

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

public class TransactionAttributes extends Object implements HasTransactionAttribute, IConfigurable
  • Field Details

    • log

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

    • TransactionAttributes

      public TransactionAttributes()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • 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.