com.atlassian.crowd.util.persistence.hibernate.batch
Interface BatchFinder
- All Known Implementing Classes:
- AbstractBatchFinder
public interface BatchFinder
Performs a named query against crowd data with the ability to split up the related IN clause.
|
Method Summary |
|
find(long directoryID,
Collection<String> names,
Class<E> persistentClass)
Find a set of entities by batching SQL disjunction queries. |
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.
Copyright © 2016 Atlassian. All Rights Reserved.