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,
String[] uniqueKeyColumnNames,
Type uniqueKeyType,
QueryBuildingParameters buildingParameters) |
advance, bindNamedParameters, bindParameterValues, bindPositionalParameters, executeLoad, executeQueryStatement, executeQueryStatement, getFactory, getLimitHandler, getResultSet, getScrollMode, prepareQueryStatement
public AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, 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 String getEntityName()
public final List loadEntityBatch(SharedSessionContractImplementor session, Serializable[] ids, Type idType, Object optionalObject, String optionalEntityName, Serializable optionalId, EntityPersister persister, LockOptions lockOptions) throws HibernateException
persister
- only needed for logginglockOptions
- HibernateException
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
UniqueEntityLoader
load
in interface UniqueEntityLoader
HibernateException
public Object load(Serializable id, 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 Object extractEntityResult(List results)
extractEntityResult(List, Serializable)
should be used instead.protected Object extractEntityResult(List results, Serializable id)
protected int[] getNamedParameterLocs(String name)
getNamedParameterLocs
in class AbstractLoadPlanBasedLoader
protected void autoDiscoverTypes(ResultSet rs)
autoDiscoverTypes
in class AbstractLoadPlanBasedLoader
Copyright © 2019 JBoss by Red Hat. All rights reserved.