Class JpaUtils.PartitionedCriteriaDelete<T,​I>

  • Enclosing class:
    JpaUtils

    public abstract static class JpaUtils.PartitionedCriteriaDelete<T,​I>
    extends Object
    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

    executeUpdates(Collection)

    • Constructor Detail

      • PartitionedCriteriaDelete

        protected PartitionedCriteriaDelete​(DbmsBean dbmsBean,
                                            org.hibernate.SessionFactory sessionFactory,
                                            Class<T> entity)
    • Method Detail

      • apply

        public abstract void apply​(List<I> partition)
      • executeUpdates

        public void executeUpdates​(Collection<I> values)