Package com.atlassian.bamboo.jpa
Class JpaUtils.PartitionedCriteriaDelete<T,I>
java.lang.Object
com.atlassian.bamboo.jpa.JpaUtils.PartitionedCriteriaDelete<T,I>
- Enclosing class:
- JpaUtils
Creates a
CriteriaDelete
wrapper that initialises commonly used JPA variables.
It will automatically partition the supplied collection and execute apply(List)
if need be.
You can customise the queries through apply(List)
and run them with
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PartitionedCriteriaDelete
(DbmsBean dbmsBean, org.hibernate.SessionFactory sessionFactory, Class<T> entity) -
Method Summary
-
Field Details
-
cb
protected final javax.persistence.criteria.CriteriaBuilder cb -
delete
-
entity
-
-
Constructor Details
-
PartitionedCriteriaDelete
-
-
Method Details
-
apply
-
executeUpdates
-