public abstract class BatchingEntityLoader extends Object implements UniqueEntityLoader
BatchingEntityLoaderBuilder
,
UniqueEntityLoader
Constructor and Description |
---|
BatchingEntityLoader(EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
protected QueryParameters |
buildQueryParameters(Serializable id,
Serializable[] ids,
Object optionalObject,
LockOptions lockOptions) |
protected Object |
doBatchLoad(Serializable id,
Loader loaderToUse,
SessionImplementor session,
Serializable[] ids,
Object optionalObject,
LockOptions lockOptions) |
protected Object |
getObjectFromList(List results,
Serializable id,
SessionImplementor session) |
Object |
load(Serializable id,
Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
EntityPersister |
persister() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
public BatchingEntityLoader(EntityPersister persister)
public EntityPersister persister()
public Object load(Serializable id, Object optionalObject, SessionImplementor session)
UniqueEntityLoader
load
in interface UniqueEntityLoader
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
protected Object getObjectFromList(List results, Serializable id, SessionImplementor session)
protected Object doBatchLoad(Serializable id, Loader loaderToUse, SessionImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
Copyright © 2017 JBoss by Red Hat. All rights reserved.