Interface BaseUpdateCriteriaBuilder<T,​X extends BaseUpdateCriteriaBuilder<T,​X>>

Type Parameters:
T - The entity type for which this update query is
X - The concrete builder type
All Superinterfaces:
BaseModificationCriteriaBuilder<X>, BaseWhereBuilder<X>, FromBaseBuilder<X>, FromBuilder<X>, FromProvider, WhereBuilder<X>
All Known Subinterfaces:
ReturningUpdateCriteriaBuilder<T,​X>, UpdateCriteriaBuilder<T>

public interface BaseUpdateCriteriaBuilder<T,​X extends BaseUpdateCriteriaBuilder<T,​X>>
extends BaseModificationCriteriaBuilder<X>
A builder for update queries.
Since:
1.1.0
Author:
Christian Beikov
  • Method Details

    • set

      X set​(String attribute, Object value)
      Binds the given value as parameter to the attribute.
      Parameters:
      attribute - The attribute for which the value should be bound
      value - The value that should be bound
      Returns:
      The query builder for chaining calls
    • setNull

      X setNull​(String attribute)
      Binds NULL to the attribute.
      Parameters:
      attribute - The attribute for which NULL should be bound
      Returns:
      The query builder for chaining calls
      Since:
      1.5.0
    • setExpression

      X setExpression​(String attribute, String expression)
      Binds the given expression to the attribute.
      Parameters:
      attribute - The attribute for which the expression should be bound
      expression - The expression that should be bound
      Returns:
      The query builder for chaining calls
    • set

      SubqueryInitiator<X> set​(String attribute)
      Starts a subquery builder for creating an expression that should be bound to the attribute.
      Parameters:
      attribute - The attribute for which the subquery expression should be bound
      Returns:
      The query builder for chaining calls
    • set

      SubqueryBuilder<X> set​(String attribute, FullQueryBuilder<?,​?> criteriaBuilder)
      Starts a subquery builder for creating an expression that should be bound to the attribute based on the given criteria builder.
      Parameters:
      attribute - The attribute for which the subquery expression should be bound
      criteriaBuilder - The criteria builder to base the subquery on
      Returns:
      The subquery builder for building a subquery
      Since:
      1.2.0
    • setSubqueries

      MultipleSubqueryInitiator<X> setSubqueries​(String attribute, String expression)
      Starts a MultipleSubqueryInitiator with the given expression that should bound to the attribute.

      All occurrences of subsequently defined subqueryAliases in expression will be replaced by the respective subquery. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.

      Parameters:
      attribute - The attribute for which the expression should be bound
      expression - The expression for the lower bound of the between predicate.
      Returns:
      The subquery initiator for building multiple subqueries for their respective subqueryAliases