Class Concat
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Concat
-
- All Implemented Interfaces:
Serializable
public class Concat extends Expression
PDB Concat Operator.- Since:
- 2.8.1
- Author:
- Francisco Santos (francisco.santos@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 Concat(Expression delimiter, Collection<Expression> expressions)Creates a newConcatobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetDelimiter()Gets the concatenation delimiter.Collection<Expression>getExpressions()Gets the expressions to concatenate.Stringtranslate()Translates the expression.Concatwith(Expression expression)Adds an expression to concatenate.-
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
-
Concat
public Concat(Expression delimiter, Collection<Expression> expressions)
Creates a newConcatobject.- Parameters:
delimiter- The concatenation delimiter.expressions- The expressions to concatenate.
-
-
Method Detail
-
with
public Concat with(Expression expression)
Adds an expression to concatenate.- Parameters:
expression- The expression to concatenate.
-
getDelimiter
public Expression getDelimiter()
Gets the concatenation delimiter.- Returns:
- the concatenation delimiter.
-
getExpressions
public Collection<Expression> getExpressions()
Gets the expressions to concatenate.- Returns:
- the expressions to concatenate.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-