Package org.h2.command.dml
Class SetClauseList
java.lang.Object
org.h2.command.dml.SetClauseList
- All Implemented Interfaces:
HasSQL
Set clause list.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SetClauseList.UpdateAction[]
private boolean
private final Table
Fields inherited from interface org.h2.util.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 TypeMethodDescriptionvoid
addMultiple
(ArrayList<Column> columns, Expression expression) Add multiple columns.void
addSingle
(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) boolean
isEverything
(ExpressionVisitor visitor) Check if this expression and all sub-expressions can fulfill a criteria.(package private) void
mapAndOptimize
(SessionLocal session, ColumnResolver resolver1, ColumnResolver resolver2) Map the columns and optimize expressions.(package private) boolean
prepareUpdate
(Table table, SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode, LocalResult rows, Row oldRow, boolean updateToCurrentValuesReturnsZero) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.h2.util.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:HasSQL
Appends the SQL statement of this object to the specified builder.
-