Class SetClauseList

java.lang.Object
org.h2.command.dml.SetClauseList
All Implemented Interfaces:
HasSQL

public final class SetClauseList extends Object implements HasSQL
Set clause list.
  • Field Details

  • Constructor Details

    • SetClauseList

      public SetClauseList(Table table)
  • Method Details

    • addSingle

      public void addSingle(Column column, Expression expression)
      Add a single column.
      Parameters:
      column - the column
      expression - the expression
    • addMultiple

      public void addMultiple(ArrayList<Column> columns, Expression expression)
      Add multiple columns.
      Parameters:
      columns - the columns
      expression - 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 session
      resolver1 - the first column resolver
      resolver2 - the second column resolver, or null
    • getSQL

      public StringBuilder getSQL(StringBuilder builder, int sqlFlags)
      Description copied from interface: HasSQL
      Appends the SQL statement of this object to the specified builder.
      Specified by:
      getSQL in interface HasSQL
      Parameters:
      builder - string builder
      sqlFlags - formatting flags
      Returns:
      the specified string builder