public class ValueTable extends AbstractFragment
root| Constructor and Description |
|---|
ValueTable(Fragment root)
Create a new
ValueTable. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ValueTableVisitor visitor)
Accept a visitor.
|
void |
add(boolean... values)
Add boolean values to the last row of the value table.
|
void |
add(char... values)
Add character values to the last row of the value table.
|
void |
add(double... values)
Add double values to the last row of the value table.
|
void |
add(float... values)
Add float values to the last row of the value table.
|
void |
add(int... values)
Add integer values to the last row of the value table.
|
void |
add(long... values)
Add long values to the last row of the value table.
|
void |
add(String... values)
Add string values to the last row of the value table.
|
void |
add(ValueExpression... expressions)
Add a list of value expressions to the last row of the value table.
|
void |
addPlaceholder()
Add an unnamed placeholder to the value table.
|
void |
alias(String tableNameAlias,
String... columnNameAliases)
Set alias for the value table.
|
ValueTable |
appendRow(String... literals)
Append a value table row consisting of value literals to the value table.
|
ValueTable |
appendRow(ValueTableRow row)
Append a
ValueTableRow to the ValueTable. |
List<String> |
getColumnNameAliases()
Get column name aliases.
|
List<ValueTableRow> |
getRows()
Get a list of all rows in the value table.
|
String |
getTableNameAlias()
Get a table name alias.
|
boolean |
hasAlias()
CHeck if the value table has an alias.
|
protected boolean |
isEmpty() |
getRootpublic ValueTable(Fragment root)
ValueTable.root - SQL statement this table belongs topublic ValueTable appendRow(String... literals)
literals - literals to be appendedthis for fluent programmingpublic ValueTable appendRow(ValueTableRow row)
ValueTableRow to the ValueTable.row - row to be appendedthis for fluent programmingpublic List<ValueTableRow> getRows()
public void add(String... values)
values - values to be addedpublic void add(char... values)
values - values to be addedpublic void add(int... values)
values - values to be addedpublic void add(long... values)
values - values to be addedpublic void add(double... values)
values - values to be addedpublic void add(float... values)
values - values to be addedpublic void add(boolean... values)
values - values to be addedpublic void addPlaceholder()
Unnamed placeholders are the "?" in a prepared statement which are replaced by the actual variable values.
public void add(ValueExpression... expressions)
expressions - value expressions to be addedprotected boolean isEmpty()
public void accept(ValueTableVisitor visitor)
visitor - to be acceptedpublic void alias(String tableNameAlias, String... columnNameAliases)
tableNameAlias - table name aliascolumnNameAliases - zero or more column names aliasespublic boolean hasAlias()
public String getTableNameAlias()
Copyright © 2018–2021. All rights reserved.