protected abstract static class AbstractStatementsWriter.AbstractTableStatement extends Object implements TableStatement
Modifier and Type | Field and Description |
---|---|
private GeneratorDialect |
dialect
The current database dialect
|
private boolean |
plainExpressionAvailable
Indicates that at least one of the
column expressions is not a
primitive SQL value . |
private GeneratorTable |
table
The main table of this update / insert statement.
|
private Map<GeneratorColumn,ColumnExpression> |
values
The columns and their values.
|
Constructor and Description |
---|
AbstractTableStatement(GeneratorDialect dialect,
GeneratorTable table) |
Modifier and Type | Method and Description |
---|---|
GeneratorDialect |
getDialect()
The current database dialect
|
GeneratorTable |
getTable()
The main table of this update / insert statement.
|
Map<GeneratorColumn,ColumnExpression> |
getValues()
The columns and their values.
|
boolean |
isPlainExpressionAvailable()
Indicates that at least one of the
column expressions is not a
primitive SQL value . |
void |
reset()
Resets the content of this statement to reuse it.
|
void |
setColumnValue(GeneratorColumn column,
ColumnExpression value)
Sets the value for a specific column.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toSql
private final GeneratorDialect dialect
private final GeneratorTable table
private final Map<GeneratorColumn,ColumnExpression> values
private boolean plainExpressionAvailable
column expressions
is not a
primitive SQL value
.@ConstructorProperties(value={"dialect","table"}) @Generated(value="lombok") public AbstractTableStatement(GeneratorDialect dialect, GeneratorTable table)
public void reset()
public void setColumnValue(GeneratorColumn column, ColumnExpression value)
setColumnValue
in interface TableStatement
column
- the column namevalue
- the value expression@Generated(value="lombok") public GeneratorDialect getDialect()
@Generated(value="lombok") public GeneratorTable getTable()
getTable
in interface TableStatement
@Generated(value="lombok") public Map<GeneratorColumn,ColumnExpression> getValues()
@Generated(value="lombok") public boolean isPlainExpressionAvailable()
column expressions
is not a
primitive SQL value
.Copyright © 2022 fastnate.org. All rights reserved.