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,
Boolean readOnly) |
protected Object |
doBatchLoad(Serializable id,
Loader loaderToUse,
SharedSessionContractImplementor session,
Serializable[] ids,
Object optionalObject,
LockOptions lockOptions,
Boolean readOnly) |
protected Object |
getObjectFromList(List results,
Serializable id,
SharedSessionContractImplementor session) |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Load an entity instance.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions,
Boolean readOnly) |
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, SharedSessionContractImplementor session)
UniqueEntityLoader
load
in interface UniqueEntityLoader
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
load
in interface UniqueEntityLoader
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
load
in interface UniqueEntityLoader
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)
protected Object getObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)
protected Object doBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.