Interface BatchFinder
- All Known Implementing Classes:
AbstractBatchFinder
,Hibernate5BatchFinder
,Hibernate6BatchFinder
public interface BatchFinder
Performs a named query against crowd data with the ability to split up the related IN clause.
-
Method Summary
Modifier and TypeMethodDescription<E extends Serializable>
Collection<E>find
(long directoryID, Collection<String> names, Class<E> persistentClass) Find a set of entities by batching SQL disjunction queries.
-
Method Details
-
find
<E extends Serializable> Collection<E> find(long directoryID, Collection<String> names, Class<E> persistentClass) Find a set of entities by batching SQL disjunction queries. If some entities are not found in the database, they are not present in the returned collection.- Parameters:
directoryID
- directory ID of the entities to return.names
- collection of entity names. This, along with the directoryID should form the primary key of the entity.persistentClass
- the persistent class to lookup. This must be a Hibernate-mapped DirectoryEntity.- Returns:
- a collection of the DirectoryEntities that exist matching any of the supplied names.
-