Class Values
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Values
-
- All Implemented Interfaces:
Serializable
public class Values extends Expression
The Values clause.- Since:
- 2.4.0
- Author:
- Francisco Santos (francisco.santos@feedzai.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValues.RowA Row belonging to a Values clause.
-
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 Values(String... aliases)Creates a new Values.Values(Collection<String> aliases)Creates a new Values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAliases()Gets the columns' aliases.List<Values.Row>getRows()Gets the rows.Valuesrow(Expression... expressions)Add a row to values.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
-
Values
public Values(String... aliases)
Creates a new Values.- Parameters:
aliases- the columns' aliases.
-
Values
public Values(Collection<String> aliases)
Creates a new Values.- Parameters:
aliases- the columns' aliases.
-
-
Method Detail
-
getAliases
public String[] getAliases()
Gets the columns' aliases.- Returns:
- the columns' aliases.
-
getRows
public List<Values.Row> getRows()
Gets the rows.- Returns:
- the rows.
-
row
public Values row(Expression... expressions)
Add a row to values.- Parameters:
expressions- row expressions.- Returns:
- this values.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-