Class LimitTransactionSizeInfo
java.lang.Object
net.sf.jailer.configuration.LimitTransactionSizeInfo
Holds information about how to do incremental inserts.
- Author:
- Ralf Wisser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalWhereConditionFragment(ExecutionContext executionContext) Gets fragment to be inserted as condition into the "WHERE".afterSelectFragment(ExecutionContext executionContext) Gets fragment to be inserted into a select statement after the "SELECT".Gets the pattern to be inserted as condition into the "WHERE".Gets the pattern to be inserted after "SELECT" in a select query.longgetLimit()Gets the limit.longgetSize(ExecutionContext executionContext) Gets increment size ornull, if incremental inserts are not applicable.Gets the pattern to be appended to the statement.booleanisApplicable(ExecutionContext executionContext) Is this applicable?voidsetAdditionalWhereCondition(String additionalWhereCondition) Sets the pattern to be inserted as condition into the "WHERE".voidsetAfterSelect(String afterSelect) Sets the pattern to be inserted after "SELECT" in a select query.voidsetLimit(long size) Sets the limit.voidsetStatementSuffix(String statementSuffix) Sets the pattern to be appended to the statement.statementSuffixFragment(ExecutionContext executionContext) Gets fragment to be appended.
-
Constructor Details
-
LimitTransactionSizeInfo
public LimitTransactionSizeInfo()
-
-
Method Details
-
isApplicable
Is this applicable?- Parameters:
executionContext- the execution context- Returns:
trueif applicable
-
getSize
Gets increment size ornull, if incremental inserts are not applicable.- Parameters:
executionContext- the execution context- Returns:
- increment size or
null, if incremental inserts are not applicable
-
afterSelectFragment
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
Gets fragment to be inserted as condition into the "WHERE".- Parameters:
executionContext- the execution context- Returns:
- fragment (may be the empty string)
-
statementSuffixFragment
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
Gets the pattern to be inserted after "SELECT" in a select query.- Returns:
- the pattern to be inserted after "SELECT"
-
setAfterSelect
Sets the pattern to be inserted after "SELECT" in a select query.- Parameters:
afterSelect- the pattern to set
-
getAdditionalWhereCondition
Gets the pattern to be inserted as condition into the "WHERE".- Returns:
- the additional WHERE condition pattern
-
setAdditionalWhereCondition
Sets the pattern to be inserted as condition into the "WHERE".- Parameters:
additionalWhereCondition- the additional WHERE condition pattern to set
-
getStatementSuffix
Gets the pattern to be appended to the statement.- Returns:
- the statement suffix pattern
-
setStatementSuffix
Sets the pattern to be appended to the statement.- Parameters:
statementSuffix- the statement suffix pattern to set
-