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, prepareQueryStatementpublic 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 AbstractLoadPlanBasedLoaderprotected 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 - HibernateExceptionpublic java.lang.Object load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session)
throws HibernateException
UniqueEntityLoaderload in interface UniqueEntityLoaderHibernateExceptionpublic java.lang.Object load(java.io.Serializable id,
java.lang.Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
UniqueEntityLoaderload 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.@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 AbstractLoadPlanBasedLoaderprotected void autoDiscoverTypes(java.sql.ResultSet rs)
autoDiscoverTypes in class AbstractLoadPlanBasedLoaderCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.