## Uses of Interface
javax.persistence.criteria.CriteriaUpdate

- Packages that use CriteriaUpdate
  Package | Description
  --- | ---
  javax.persistence | Java Persistence is the API for the management for persistence and object/relational mapping.
  javax.persistence.criteria | Java Persistence Criteria API

- - ### Uses of CriteriaUpdate in javax.persistence

    Methods in javax.persistence with parameters of type CriteriaUpdate
    Modifier and Type | Method and Description
    --- | ---
    `Query` | EntityManager.`createQuery(CriteriaUpdate updateQuery)` Create an instance of `Query` for executing a criteria update query.

  - ### Uses of CriteriaUpdate in javax.persistence.criteria

    Methods in javax.persistence.criteria that return CriteriaUpdate
    Modifier and Type | Method and Description
    --- | ---
    `<T> CriteriaUpdate<T>` | CriteriaBuilder.`createCriteriaUpdate(Class<T> targetEntity)` Create a `CriteriaUpdate` query object to perform a bulk update operation.
    `<Y> CriteriaUpdate<T>` | CriteriaUpdate.`set(Path<Y> attribute, Expression<? extends Y> value)` Update the value of the specified attribute.
    `<Y,X extends Y> CriteriaUpdate<T>` | CriteriaUpdate.`set(Path<Y> attribute, X value)` Update the value of the specified attribute.
    `<Y> CriteriaUpdate<T>` | CriteriaUpdate.`set(SingularAttribute<? super T,Y> attribute, Expression<? extends Y> value)` Update the value of the specified attribute.
    `<Y,X extends Y> CriteriaUpdate<T>` | CriteriaUpdate.`set(SingularAttribute<? super T,Y> attribute, X value)` Update the value of the specified attribute.
    `CriteriaUpdate<T>` | CriteriaUpdate.`set(String attributeName, Object value)` Update the value of the specified attribute.
    `CriteriaUpdate<T>` | CriteriaUpdate.`where(Expression<Boolean> restriction)` Modify the update query to restrict the target of the update according to the specified boolean expression.
    `CriteriaUpdate<T>` | CriteriaUpdate.`where(Predicate... restrictions)` Modify the update query to restrict the target of the update according to the conjunction of the specified restriction predicates.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.