Package com.atlassian.bamboo.jpa
Class JpaUtils.CriteriaUpdate<T>
java.lang.Object
com.atlassian.bamboo.jpa.JpaUtils.CriteriaUpdate<T>
- Enclosing class:
- JpaUtils
Creates a
CriteriaUpdate
wrapper that initialises commonly used JPA variables.
You can customise the query through apply()
and run it with
executeUpdate()
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CriteriaUpdate
(org.hibernate.SessionFactory sessionFactory, Class<T> entity) -
Method Summary
-
Field Details
-
cb
protected final javax.persistence.criteria.CriteriaBuilder cb -
update
-
entity
-
-
Constructor Details
-
CriteriaUpdate
-
-
Method Details
-
apply
public abstract void apply() -
executeUpdate
public void executeUpdate()- See Also:
-
Query.executeUpdate()
-