类 BatchingEntityLoader
- java.lang.Object
-
- org.hibernate.loader.entity.plan.BatchingEntityLoader
-
- 所有已实现的接口:
UniqueEntityLoader
public abstract class BatchingEntityLoader extends Object implements UniqueEntityLoader
The base contract for UniqueEntityLoader implementations capable of performing batch-fetch loading of entities using multiple primary key values in the SQL WHERE clause. Typically these are- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
BatchingEntityLoaderBuilder,UniqueEntityLoader
-
-
构造器概要
构造器 构造器 说明 BatchingEntityLoader(EntityPersister persister)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected QueryParametersbuildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)protected ObjectdoBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)protected ObjectgetObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session)Load an entity instance.EntityPersisterpersister()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.loader.entity.UniqueEntityLoader
load, load, 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
-
buildQueryParameters
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
-
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)
-
-