public abstract class AbstractLoadPlanBasedEntityLoader extends AbstractLoadPlanBasedLoader implements UniqueEntityLoader
AbstractLoadPlanBasedLoader.SqlStatementWrapper
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister,
SessionFactoryImplementor factory,
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,
LockOptions lockOptions)
Load an entity instance by id.
|
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
|
advance, bindNamedParameters, bindParameterValues, bindPositionalParameters, executeLoad, executeLoad, executeQueryStatement, executeQueryStatement, getFactory, getLimitHandler, getResultSet, getScrollMode, prepareQueryStatement
public AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, java.lang.String[] uniqueKeyColumnNames, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, EntityLoadQueryDetails entityLoaderQueryDetailsTemplate, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected LoadQueryDetails getStaticLoadQuery()
getStaticLoadQuery
in class 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 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, 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.@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 AbstractLoadPlanBasedLoader
protected void autoDiscoverTypes(java.sql.ResultSet rs)
autoDiscoverTypes
in class AbstractLoadPlanBasedLoader
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.