Class SetClauseList
java.lang.Object
org.h2.command.dml.SetClauseList
- All Implemented Interfaces:
HasSQL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classprivate static final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SetClauseList.UpdateAction[]private booleanprivate final TableFields inherited from interface HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultiple(ArrayList<Column> columns, Expression expression) Add multiple columns.voidaddSingle(Column column, Expression expression) Add a single column.getSQL(StringBuilder builder, int sqlFlags) Appends the SQL statement of this object to the specified builder.(package private) booleanisEverything(ExpressionVisitor visitor) Check if this expression and all sub-expressions can fulfill a criteria.(package private) voidmapAndOptimize(SessionLocal session, ColumnResolver resolver1, ColumnResolver resolver2) Map the columns and optimize expressions.(package private) booleanprepareUpdate(Table table, SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode, LocalResult rows, Row oldRow, boolean updateToCurrentValuesReturnsZero) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasSQL
getSQL, getTraceSQL
-
Field Details
-
table
-
actions
-
onUpdate
private boolean onUpdate
-
-
Constructor Details
-
SetClauseList
-
-
Method Details
-
addSingle
Add a single column.- Parameters:
column- the columnexpression- the expression
-
addMultiple
Add multiple columns.- Parameters:
columns- the columnsexpression- the expression (e.g. an expression list)
-
prepareUpdate
boolean prepareUpdate(Table table, SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode, LocalResult rows, Row oldRow, boolean updateToCurrentValuesReturnsZero) -
isEverything
Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.- Parameters:
visitor- the visitor- Returns:
- if the criteria can be fulfilled
-
mapAndOptimize
Map the columns and optimize expressions.- Parameters:
session- the sessionresolver1- the first column resolverresolver2- the second column resolver, ornull
-
getSQL
Description copied from interface:HasSQLAppends the SQL statement of this object to the specified builder.
-