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 UniqueEntityLoader
public Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)
UniqueEntityLoader
load
in interface UniqueEntityLoader
id
- 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
MappingException
public static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingException
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.