Interface JpaCriteriaUpdate<T>

All Superinterfaces:
CommonAbstractCriteria, CriteriaUpdate<T>, JpaCriteriaBase, JpaCriteriaNode, JpaCteContainer, JpaManipulationCriteria<T>, JpaQueryableCriteria<T>, Serializable
All Known Implementing Classes:
SqmUpdateStatement

public interface JpaCriteriaUpdate<T> extends JpaManipulationCriteria<T>, CriteriaUpdate<T>
Author:
Steve Ebersole
  • Method Details

    • isVersioned

      boolean isVersioned()
    • versioned

      JpaCriteriaUpdate<T> versioned()
    • versioned

      JpaCriteriaUpdate<T> versioned(boolean versioned)
    • from

      JpaRoot<T> from(Class<T> entityClass)
      Description copied from interface: CriteriaUpdate
      Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root, the entity that is being updated.
      Specified by:
      from in interface CriteriaUpdate<T>
      Parameters:
      entityClass - the entity class
      Returns:
      query root corresponding to the given entity
    • from

      JpaRoot<T> from(EntityType<T> entity)
      Description copied from interface: CriteriaUpdate
      Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root, the entity that is being updated.
      Specified by:
      from in interface CriteriaUpdate<T>
      Parameters:
      entity - metamodel entity representing the entity of type X
      Returns:
      query root corresponding to the given entity
    • set

      <Y, X extends Y> JpaCriteriaUpdate<T> set(SingularAttribute<? super T,Y> attribute, X value)
      Description copied from interface: CriteriaUpdate
      Update the value of the specified attribute.
      Specified by:
      set in interface CriteriaUpdate<T>
      Parameters:
      attribute - attribute to be updated
      value - new value
      Returns:
      the modified update query
    • set

      <Y> JpaCriteriaUpdate<T> set(SingularAttribute<? super T,Y> attribute, Expression<? extends Y> value)
      Description copied from interface: CriteriaUpdate
      Update the value of the specified attribute.
      Specified by:
      set in interface CriteriaUpdate<T>
      Parameters:
      attribute - attribute to be updated
      value - new value
      Returns:
      the modified update query
    • set

      <Y, X extends Y> JpaCriteriaUpdate<T> set(Path<Y> attribute, X value)
      Description copied from interface: CriteriaUpdate
      Update the value of the specified attribute.
      Specified by:
      set in interface CriteriaUpdate<T>
      Parameters:
      attribute - attribute to be updated
      value - new value
      Returns:
      the modified update query
    • set

      <Y> JpaCriteriaUpdate<T> set(Path<Y> attribute, Expression<? extends Y> value)
      Description copied from interface: CriteriaUpdate
      Update the value of the specified attribute.
      Specified by:
      set in interface CriteriaUpdate<T>
      Parameters:
      attribute - attribute to be updated
      value - new value
      Returns:
      the modified update query
    • set

      JpaCriteriaUpdate<T> set(String attributeName, Object value)
      Description copied from interface: CriteriaUpdate
      Update the value of the specified attribute.
      Specified by:
      set in interface CriteriaUpdate<T>
      Parameters:
      attributeName - name of the attribute to be updated
      value - new value
      Returns:
      the modified update query
    • getRoot

      JpaRoot<T> getRoot()
      Description copied from interface: CriteriaUpdate
      Return the query root.
      Specified by:
      getRoot in interface CriteriaUpdate<T>
      Returns:
      the query root
    • where

      JpaCriteriaUpdate<T> where(Expression<Boolean> restriction)
      Description copied from interface: CriteriaUpdate
      Modify the update query to restrict the target of the update according to the specified boolean expression. Replaces the previously added restriction(s), if any.
      Specified by:
      where in interface CriteriaUpdate<T>
      Parameters:
      restriction - a simple or compound boolean expression
      Returns:
      the modified update query
    • where

      JpaCriteriaUpdate<T> where(Predicate... restrictions)
      Description copied from interface: CriteriaUpdate
      Modify the update query to restrict the target of the update according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.
      Specified by:
      where in interface CriteriaUpdate<T>
      Parameters:
      restrictions - zero or more restriction predicates
      Returns:
      the modified update query