@Test public void buildIdRangePackages_5() { System.out.println(); System.out.println("*** buildIdRangePackages_5 ***"); final int idRangePackageSize = 3; SortedSet<Long> entityIds = getEntityIds( 666 ); List<List<Dao.IdRange>> idRangePackages = Dao.buildIdRangePackages(entityIds, idRangePackageSize); showIdRangePackages(idRangePackages); assertThat(idRangePackages).hasSize(1); for (List<Dao.IdRange> idRangePackage : idRangePackages) { assertIdRangePackageValid(idRangePackage); assertThat(idRangePackage).hasSize(idRangePackageSize); } assertIdRangePackagesEqualEntityIds(idRangePackages, entityIds); }
protected static List<List<IdRange>> buildIdRangePackages(SortedSet<Long> entityIds) { return buildIdRangePackages(entityIds, LOAD_ID_RANGE_PACKAGE_SIZE); }
Dao implements ContextWithPersistenceManager { protected static List<List<IdRange>> buildIdRangePackages(SortedSet<Long> entityIds) { return buildIdRangePackages(entityIds, LOAD_ID_RANGE_PACKAGE_SIZE); } }
Dao implements ContextWithPersistenceManager { protected static List<List<IdRange>> buildIdRangePackages(SortedSet<Long> entityIds) { return buildIdRangePackages(entityIds, LOAD_ID_RANGE_PACKAGE_SIZE); } Dao(); }
Dao implements ContextWithPersistenceManager { protected static List<List<IdRange>> buildIdRangePackages(SortedSet<Long> entityIds) { return buildIdRangePackages(entityIds, LOAD_ID_RANGE_PACKAGE_SIZE); } Dao(); @Override PersistenceManager getPersistenceManager(); void setPersistenceManager(final PersistenceManager persistenceManager); DaoProvider getDaoProvider(); void setDaoProvider(DaoProvider daoProvider); D persistenceManager(final PersistenceManager persistenceManager); Class<E> getEntityClass(); E getObjectByIdOrFail(final long id); E getObjectByIdOrNull(final long id); Collection<E> getObjects(); long getObjectsCount(); P makePersistent(final P entity); void deletePersistent(final E entity); void deletePersistentAll(final Collection<? extends E> entities); }
Dao implements ContextWithPersistenceManager { protected static List<List<IdRange>> buildIdRangePackages(SortedSet<Long> entityIds) { return buildIdRangePackages(entityIds, LOAD_ID_RANGE_PACKAGE_SIZE); } Dao(); @Override PersistenceManager getPersistenceManager(); void setPersistenceManager(final PersistenceManager persistenceManager); DaoProvider getDaoProvider(); void setDaoProvider(DaoProvider daoProvider); D persistenceManager(final PersistenceManager persistenceManager); Class<E> getEntityClass(); E getObjectByIdOrFail(final long id); E getObjectByIdOrNull(final long id); Collection<E> getObjects(); long getObjectsCount(); P makePersistent(final P entity); void deletePersistent(final E entity); void deletePersistentAll(final Collection<? extends E> entities);  }