Package com.atlassian.bamboo.jpa
Class JpaUtils.PartitionedCriteriaDelete<T,I>
- java.lang.Object
-
- com.atlassian.bamboo.jpa.JpaUtils.PartitionedCriteriaDelete<T,I>
-
- Enclosing class:
- JpaUtils
public abstract static class JpaUtils.PartitionedCriteriaDelete<T,I> extends Object
Creates aCriteriaDelete
wrapper that initialises commonly used JPA variables. It will automatically partition the supplied collection and executeapply(List)
if need be. You can customise the queries throughapply(List)
and run them with
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PartitionedCriteriaDelete(DbmsBean dbmsBean, org.hibernate.SessionFactory sessionFactory, Class<T> entity)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
apply(List<I> partition)
void
executeUpdates(Collection<I> values)
-