org.hibernate.loader.entity
Class BatchingEntityLoader
java.lang.Object
org.hibernate.loader.entity.BatchingEntityLoader
- All Implemented Interfaces:
- UniqueEntityLoader
public class BatchingEntityLoader
- extends Object
- implements UniqueEntityLoader
"Batch" loads entities, using multiple primary key values in the
SQL where clause.
- Author:
- Gavin King
- See Also:
EntityLoader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchingEntityLoader
public BatchingEntityLoader(EntityPersister persister,
int[] batchSizes,
Loader[] loaders)
load
public Object load(Serializable id,
Object optionalObject,
SessionImplementor session)
throws HibernateException
- Description copied from interface:
UniqueEntityLoader
- Load an entity instance. If optionalObject is supplied,
load the entity state into the given (uninitialized) object.
- Specified by:
load
in interface UniqueEntityLoader
- Throws:
HibernateException
createBatchingEntityLoader
public static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister,
int maxBatchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
- Throws:
MappingException