public abstract class AbstractLoadPlanBasedEntityLoader extends org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader implements UniqueEntityLoader
A UniqueEntityLoader implementation based on using LoadPlans
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister,
SessionFactoryImplementor factory,
org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails entityLoaderQueryDetailsTemplate,
Type uniqueKeyType,
QueryBuildingParameters buildingParameters) |
|
AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister,
SessionFactoryImplementor factory,
String[] uniqueKeyColumnNames,
Type uniqueKeyType,
QueryBuildingParameters buildingParameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoDiscoverTypes(ResultSet rs) |
protected Object |
extractEntityResult(List results) |
protected String |
getEntityName() |
protected int[] |
getNamedParameterLocs(String name) |
protected LoadQueryDetails |
getStaticLoadQuery() |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Load an entity instance.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
List |
loadEntityBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
advance, bindNamedParameters, bindParameterValues, bindPositionalParameters, executeLoad, executeLoad, executeQueryStatement, executeQueryStatement, getFactory, getLimitHandler, getResultSet, getScrollMode, prepareQueryStatementpublic AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, String[] uniqueKeyColumnNames, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails entityLoaderQueryDetailsTemplate, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected LoadQueryDetails getStaticLoadQuery()
getStaticLoadQuery in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoaderprotected String getEntityName()
public final List loadEntityBatch(SharedSessionContractImplementor session, Serializable[] ids, Type idType, Object optionalObject, String optionalEntityName, Serializable optionalId, EntityPersister persister, LockOptions lockOptions) throws HibernateException
Called by wrappers that batch load entities
persister - only needed for logginglockOptions - HibernateExceptionpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
UniqueEntityLoaderLoad an entity instance. If <tt>optionalObject</tt> is supplied, load the entity state into the given (uninitialized) object.
load in interface UniqueEntityLoaderHibernateExceptionpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
UniqueEntityLoaderLoad an entity instance by id. If <tt>optionalObject</tt> is supplied (non-<tt>null</tt>, the entity state is loaded into that object instance instead of instantiating a new one.
load in interface UniqueEntityLoaderid - 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.protected int[] getNamedParameterLocs(String name)
getNamedParameterLocs in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoaderprotected void autoDiscoverTypes(ResultSet rs)
autoDiscoverTypes in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoaderCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.