Class Between
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Between
-
- All Implemented Interfaces:
Serializable
public class Between extends Expression
Represents the BETWEEN operator.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
-
-
Constructor Summary
Constructors Constructor Description Between(Expression column, Expression exp)Creates a new instance ofBetween.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetAnd()Gets the AND expression.ExpressiongetColumn()Gets the column in the expression.booleanisNot()Checks if the expression is to be negated.Betweennot()Negates the expression.Stringtranslate()Translates the expression.-
Methods inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, asc, desc, enclose, fullOuterJoin, getAlias, getJoins, getOrdering, innerJoin, isAliased, isEnclosed, isQuote, isQuotes, isWithNoLock, leftOuterJoin, rightOuterJoin, unquote, withNoLock
-
-
-
-
Constructor Detail
-
Between
public Between(Expression column, Expression exp)
Creates a new instance ofBetween.- Parameters:
column- The column.exp- The AND expression.
-
-
Method Detail
-
not
public Between not()
Negates the expression.- Returns:
- This expression.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
getColumn
public Expression getColumn()
Gets the column in the expression.- Returns:
- The column in the expression.
-
getAnd
public Expression getAnd()
Gets the AND expression.- Returns:
- The AND expression.
-
isNot
public boolean isNot()
Checks if the expression is to be negated.- Returns:
trueif the expression is to be negated,falseotherwise.
-
-