Class RepeatDelimiter
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.RepeatDelimiter
-
- All Implemented Interfaces:
Serializable
public class RepeatDelimiter extends Expression
Represents expressions that ca be repeated.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringANDThe AND delimited.static StringCOMMAThe COMMA (,) delimiter.static StringDIVThe / delimited.static StringEQThe EQ delimited.static StringGTThe > delimited.static StringGTEQThe ≥ delimited.static StringINThe IN delimited.static StringLIKEThe LIKE delimited.static StringLTThe < delimited.static StringLTEQThe ≤ delimited.static StringMINUSThe - delimited.static StringMULTThe * delimited.static StringNEQThe NEQ delimiter.static StringNOTINThe NOT IN delimited.static StringORThe OR delimited.static StringPLUSThe + delimited.-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
-
-
Constructor Summary
Constructors Constructor Description RepeatDelimiter(String delimiter, Expression... dbe)Creates a new instance ofRepeatDelimiter.RepeatDelimiter(String delimiter, Collection<? extends Expression> dbe)Creates a new instance ofRepeatDelimiter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDelimiter()Gets the delimiter for repetitions.List<Expression>getExpressions()Gets the expressions.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
-
-
-
-
Field Detail
-
AND
public static final String AND
The AND delimited.- See Also:
- Constant Field Values
-
OR
public static final String OR
The OR delimited.- See Also:
- Constant Field Values
-
PLUS
public static final String PLUS
The + delimited.- See Also:
- Constant Field Values
-
MINUS
public static final String MINUS
The - delimited.- See Also:
- Constant Field Values
-
MULT
public static final String MULT
The * delimited.- See Also:
- Constant Field Values
-
DIV
public static final String DIV
The / delimited.- See Also:
- Constant Field Values
-
GT
public static final String GT
The > delimited.- See Also:
- Constant Field Values
-
LT
public static final String LT
The < delimited.- See Also:
- Constant Field Values
-
GTEQ
public static final String GTEQ
The ≥ delimited.- See Also:
- Constant Field Values
-
LTEQ
public static final String LTEQ
The ≤ delimited.- See Also:
- Constant Field Values
-
LIKE
public static final String LIKE
The LIKE delimited.- See Also:
- Constant Field Values
-
EQ
public static final String EQ
The EQ delimited.- See Also:
- Constant Field Values
-
NEQ
public static final String NEQ
The NEQ delimiter.- See Also:
- Constant Field Values
-
COMMA
public static final String COMMA
The COMMA (,) delimiter.- See Also:
- Constant Field Values
-
IN
public static final String IN
The IN delimited.- See Also:
- Constant Field Values
-
NOTIN
public static final String NOTIN
The NOT IN delimited.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RepeatDelimiter
public RepeatDelimiter(String delimiter, Expression... dbe)
Creates a new instance ofRepeatDelimiter.- Parameters:
delimiter- The delimiter to use.dbe- The list of expressions.
-
RepeatDelimiter
public RepeatDelimiter(String delimiter, Collection<? extends Expression> dbe)
Creates a new instance ofRepeatDelimiter.- Parameters:
delimiter- The delimiter to use.dbe- The collection of expressions.
-
-
Method Detail
-
getExpressions
public List<Expression> getExpressions()
Gets the expressions.- Returns:
- The expressions.
-
getDelimiter
public String getDelimiter()
Gets the delimiter for repetitions.- Returns:
- The delimiter.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-