public class BatchingEntityLoader extends Object implements UniqueEntityLoader
EntityLoader| Constructor and Description |
|---|
BatchingEntityLoader(EntityPersister persister,
int[] batchSizes,
Loader[] loaders) |
| Modifier and Type | Method and Description |
|---|---|
static UniqueEntityLoader |
createBatchingEntityLoader(OuterJoinLoadable persister,
int maxBatchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
static UniqueEntityLoader |
createBatchingEntityLoader(OuterJoinLoadable persister,
int maxBatchSize,
LockOptions lockOptions,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
Object |
load(Serializable id,
Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
Object |
load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
public BatchingEntityLoader(EntityPersister persister, int[] batchSizes, Loader[] loaders)
public Object load(Serializable id, Object optionalObject, SessionImplementor session)
load in interface UniqueEntityLoaderpublic Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)
UniqueEntityLoaderload in interface UniqueEntityLoaderid - The id to be loadedoptionalObject - The (optional) entity instance in to which to load the statesession - The session from which the request originatedlockOptions - The lock options.public static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingExceptionpublic static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.