Class Update

    • Method Detail

      • table

        public static Update table​(@NonNull
                                   @NonNull Table table)
        Creates a new Update statement which will update the given table
        Parameters:
        table - the table
        Returns:
        the Update statement
      • table

        public static Update table​(@NonNull
                                   @NonNull SQLElement table)
        Creates a new Update statement which will update the given table
        Parameters:
        table - the table
        Returns:
        the Update statement
      • set

        public Update set​(@NonNull
                          @NonNull SQLElement column,
                          @NonNull
                          @NonNull SQLElement value)
        Adds a set parameter to the update defined as a column and value.
        Parameters:
        column - the column to update
        value - the value to update the column to
        Returns:
        this Update statement
      • set

        public Update set​(@NonNull
                          @NonNull String column,
                          @NonNull
                          @NonNull SQLElement value)
        Adds a set parameter to the update defined as a column and value.
        Parameters:
        column - the column to update
        value - the value to update the column to
        Returns:
        this Update statement
      • setIndexedParameter

        public Update setIndexedParameter​(@NonNull
                                          @NonNull SQLElement column)
        Adds a set parameter for the given column and using an indexed parameter value for use in PreparedStatement
        Parameters:
        column - the column to update
        Returns:
        this Update statement
      • setNamedParameter

        public Update setNamedParameter​(@NonNull
                                        @NonNull SQLElement column)
        Adds a set parameter for the given column and using a named parameter value for use in NamedPreparedStatement
        Parameters:
        column - the column to update
        Returns:
        this Update statement
      • type

        public Update type​(@NonNull
                           @NonNull UpdateType type)
        Sets the type of update to perform.
        Parameters:
        type - the type of update to perform
        Returns:
        this Update statement
      • where

        public Update where​(SQLElement whereClause)
        Sets the criteria (i.e. WHERE) for the update.
        Parameters:
        whereClause - the where clause
        Returns:
        this Update statement
      • where

        public Update where​(String whereClause)
        Sets the criteria (i.e. WHERE) for the update.
        Parameters:
        whereClause - the where clause
        Returns:
        this Update statement