Class Update


  • public class Update
    extends BuiltStatement
    A built UPDATE statement.
    • Method Detail

      • with

        public Update.Assignments with​(Assignment assignment)
        Adds an assignment to this UPDATE statement.

        This is a shorter/more readable version for with().and(assignment).

        Parameters:
        assignment - the assignment to add.
        Returns:
        the Assignments of this UPDATE statement.
      • with

        public Update.Assignments with()
        Returns the assignments of this UPDATE statement.
        Returns:
        the assignments of this UPDATE statement.
      • where

        public Update.Where where​(Clause clause)
        Adds a WHERE clause to this statement.

        This is a shorter/more readable version for where().and(clause).

        Parameters:
        clause - the clause to add.
        Returns:
        the where clause of this query to which more clause can be added.
      • where

        public Update.Where where()
        Returns a Where statement for this query without adding clause.
        Returns:
        the where clause of this query to which more clause can be added.
      • onlyIf

        public Update.Conditions onlyIf​(Clause condition)
        Adds a conditions clause (IF) to this statement.

        This is a shorter/more readable version for onlyIf().and(condition).

        This will configure the statement as non-idempotent, see Statement.isIdempotent() for more information.

        Parameters:
        condition - the condition to add.
        Returns:
        the conditions of this query to which more conditions can be added.
      • onlyIf

        public Update.Conditions onlyIf()
        Adds a conditions clause (IF) to this statement.
        Returns:
        the conditions of this query to which more conditions can be added.
      • using

        public Update.Options using​(Using using)
        Adds a new options for this UPDATE statement.
        Parameters:
        using - the option to add.
        Returns:
        the options of this UPDATE statement.