public abstract class AbstractLoadPlanBasedEntityLoader extends org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader implements UniqueEntityLoader
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,
java.lang.String[] uniqueKeyColumnNames,
Type uniqueKeyType,
QueryBuildingParameters buildingParameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
autoDiscoverTypes(java.sql.ResultSet rs) |
protected java.lang.Object |
extractEntityResult(java.util.List results)
Deprecated.
extractEntityResult(List, Serializable) should be used instead. |
protected java.lang.Object |
extractEntityResult(java.util.List results,
java.io.Serializable id) |
protected java.lang.String |
getEntityName() |
protected int[] |
getNamedParameterLocs(java.lang.String name) |
protected LoadQueryDetails |
getStaticLoadQuery() |
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session)
Load an entity instance.
|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session,
java.lang.Boolean readOnly) |
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions,
java.lang.Boolean readOnly) |
java.util.List |
loadEntityBatch(SharedSessionContractImplementor session,
java.io.Serializable[] ids,
Type idType,
java.lang.Object optionalObject,
java.lang.String optionalEntityName,
java.io.Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
java.util.List |
loadEntityBatch(SharedSessionContractImplementor session,
java.io.Serializable[] ids,
Type idType,
java.lang.Object optionalObject,
java.lang.String optionalEntityName,
java.io.Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions,
java.lang.Boolean readOnly) |
public AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, java.lang.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.AbstractLoadPlanBasedLoader
protected java.lang.String getEntityName()
public final java.util.List loadEntityBatch(SharedSessionContractImplementor session, java.io.Serializable[] ids, Type idType, java.lang.Object optionalObject, java.lang.String optionalEntityName, java.io.Serializable optionalId, EntityPersister persister, LockOptions lockOptions) throws HibernateException
persister
- only needed for logginglockOptions
- HibernateException
public final java.util.List loadEntityBatch(SharedSessionContractImplementor session, java.io.Serializable[] ids, Type idType, java.lang.Object optionalObject, java.lang.String optionalEntityName, java.io.Serializable optionalId, EntityPersister persister, LockOptions lockOptions, java.lang.Boolean readOnly) throws HibernateException
HibernateException
public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
UniqueEntityLoader
load
in interface UniqueEntityLoader
HibernateException
public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session, java.lang.Boolean readOnly) throws HibernateException
load
in interface UniqueEntityLoader
HibernateException
public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
UniqueEntityLoader
load
in interface UniqueEntityLoader
id
- 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.public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, java.lang.Boolean readOnly)
load
in interface UniqueEntityLoader
@Deprecated protected java.lang.Object extractEntityResult(java.util.List results)
extractEntityResult(List, Serializable)
should be used instead.protected java.lang.Object extractEntityResult(java.util.List results, java.io.Serializable id)
protected int[] getNamedParameterLocs(java.lang.String name)
getNamedParameterLocs
in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader
protected void autoDiscoverTypes(java.sql.ResultSet rs)
autoDiscoverTypes
in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.