Class LimitTransactionSizeInfo

java.lang.Object
net.sf.jailer.configuration.LimitTransactionSizeInfo

public class LimitTransactionSizeInfo extends Object
Holds information about how to do incremental inserts.
Author:
Ralf Wisser
  • Constructor Details

    • LimitTransactionSizeInfo

      public LimitTransactionSizeInfo()
  • Method Details

    • isApplicable

      public boolean isApplicable(ExecutionContext executionContext)
      Is this applicable?
      Parameters:
      executionContext - the execution context
      Returns:
      true if applicable
    • getSize

      public long getSize(ExecutionContext executionContext)
      Gets increment size or null, if incremental inserts are not applicable.
      Parameters:
      executionContext - the execution context
      Returns:
      increment size or null, if incremental inserts are not applicable
    • afterSelectFragment

      public String afterSelectFragment(ExecutionContext executionContext)
      Gets fragment to be inserted into a select statement after the "SELECT".
      Parameters:
      executionContext - the execution context
      Returns:
      fragment (may be the empty string)
    • additionalWhereConditionFragment

      public String additionalWhereConditionFragment(ExecutionContext executionContext)
      Gets fragment to be inserted as condition into the "WHERE".
      Parameters:
      executionContext - the execution context
      Returns:
      fragment (may be the empty string)
    • statementSuffixFragment

      public String statementSuffixFragment(ExecutionContext executionContext)
      Gets fragment to be appended.
      Parameters:
      executionContext - the execution context
      Returns:
      fragment (may be the empty string)
    • getLimit

      public long getLimit()
      Gets the limit.
      Returns:
      limit or 0 if limiting is not possible
    • setLimit

      public void setLimit(long size)
      Sets the limit.
      Parameters:
      size - the limit to set
    • getAfterSelect

      public String getAfterSelect()
      Gets the pattern to be inserted after "SELECT" in a select query.
      Returns:
      the pattern to be inserted after "SELECT"
    • setAfterSelect

      public void setAfterSelect(String afterSelect)
      Sets the pattern to be inserted after "SELECT" in a select query.
      Parameters:
      afterSelect - the pattern to set
    • getAdditionalWhereCondition

      public String getAdditionalWhereCondition()
      Gets the pattern to be inserted as condition into the "WHERE".
      Returns:
      the additional WHERE condition pattern
    • setAdditionalWhereCondition

      public void setAdditionalWhereCondition(String additionalWhereCondition)
      Sets the pattern to be inserted as condition into the "WHERE".
      Parameters:
      additionalWhereCondition - the additional WHERE condition pattern to set
    • getStatementSuffix

      public String getStatementSuffix()
      Gets the pattern to be appended to the statement.
      Returns:
      the statement suffix pattern
    • setStatementSuffix

      public void setStatementSuffix(String statementSuffix)
      Sets the pattern to be appended to the statement.
      Parameters:
      statementSuffix - the statement suffix pattern to set