类 BatchingEntityLoader
- java.lang.Object
-
- org.hibernate.loader.entity.BatchingEntityLoader
-
- 所有已实现的接口:
UniqueEntityLoader
- 直接已知子类:
DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader,LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader
public abstract class BatchingEntityLoader extends Object implements UniqueEntityLoader
The base contract for loaders capable of performing batch-fetch loading of entities using multiple primary key values in the SQL WHERE clause.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
BatchingEntityLoaderBuilder,UniqueEntityLoader
-
-
构造器概要
构造器 构造器 说明 BatchingEntityLoader(EntityPersister persister)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected QueryParametersbuildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)protected ObjectdoBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)protected ObjectgetObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session)Load an entity instance.Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)EntityPersisterpersister()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.loader.entity.UniqueEntityLoader
load
-
-
-
-
构造器详细资料
-
BatchingEntityLoader
public BatchingEntityLoader(EntityPersister persister)
-
-
方法详细资料
-
persister
public EntityPersister persister()
-
load
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)
从接口复制的说明:UniqueEntityLoaderLoad an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.- 指定者:
load在接口中UniqueEntityLoader
-
load
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
- 指定者:
load在接口中UniqueEntityLoader
-
load
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
- 指定者:
load在接口中UniqueEntityLoader
-
buildQueryParameters
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)
-
getObjectFromList
protected Object getObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)
-
doBatchLoad
protected Object doBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions, Boolean readOnly)
-
-