Package org.h2.command.dml
Class SetClauseList
- java.lang.Object
-
- org.h2.command.dml.SetClauseList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSetClauseList.RowExpressionprivate static classSetClauseList.SetMultipleprivate static classSetClauseList.SetSimpleprivate static classSetClauseList.UpdateAction
-
Field Summary
Fields Modifier and Type Field Description private SetClauseList.UpdateAction[]actionsprivate booleanonUpdateprivate Tabletable-
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 Constructor Description SetClauseList(Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMultiple(java.util.ArrayList<Column> columns, Expression expression)Add multiple columns.voidaddSingle(Column column, Expression expression)Add a single column.java.lang.StringBuildergetSQL(java.lang.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 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 Detail
-
table
private final Table table
-
actions
private final SetClauseList.UpdateAction[] actions
-
onUpdate
private boolean onUpdate
-
-
Constructor Detail
-
SetClauseList
public SetClauseList(Table table)
-
-
Method Detail
-
addSingle
public void addSingle(Column column, Expression expression)
Add a single column.- Parameters:
column- the columnexpression- the expression
-
addMultiple
public void addMultiple(java.util.ArrayList<Column> columns, Expression expression)
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
boolean isEverything(ExpressionVisitor visitor)
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
void mapAndOptimize(SessionLocal session, ColumnResolver resolver1, ColumnResolver resolver2)
Map the columns and optimize expressions.- Parameters:
session- the sessionresolver1- the first column resolverresolver2- the second column resolver, ornull
-
getSQL
public java.lang.StringBuilder getSQL(java.lang.StringBuilder builder, int sqlFlags)Description copied from interface:HasSQLAppends the SQL statement of this object to the specified builder.
-
-