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 class
SetClauseList.RowExpression
private static class
SetClauseList.SetMultiple
private static class
SetClauseList.SetSimple
private static class
SetClauseList.UpdateAction
-
Field Summary
Fields Modifier and Type Field Description private SetClauseList.UpdateAction[]
actions
private boolean
onUpdate
private Table
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 Constructor Description SetClauseList(Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMultiple(java.util.ArrayList<Column> columns, Expression expression)
Add multiple columns.void
addSingle(Column column, Expression expression)
Add a single column.java.lang.StringBuilder
getSQL(java.lang.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 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:HasSQL
Appends the SQL statement of this object to the specified builder.
-
-