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