Class SetClauseList

  • All Implemented Interfaces:
    HasSQL

    public final class SetClauseList
    extends java.lang.Object
    implements HasSQL
    Set clause list.
    • Constructor Detail

      • SetClauseList

        public SetClauseList​(Table table)
    • Method Detail

      • addSingle

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

        public void addMultiple​(java.util.ArrayList<Column> columns,
                                Expression expression)
        Add multiple columns.
        Parameters:
        columns - the columns
        expression - the expression (e.g. an expression list)
      • 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 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.
        Specified by:
        getSQL in interface HasSQL
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder