public abstract class AbstractLoadPlanBasedEntityLoader extends AbstractLoadPlanBasedLoader implements UniqueEntityLoader
AbstractLoadPlanBasedLoader.SqlStatementWrapper
Constructor and Description |
---|
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,
SessionImplementor session)
Load an entity instance.
|
Object |
load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
List |
loadEntityBatch(SessionImplementor 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, prepareQueryStatement
public AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, String[] uniqueKeyColumnNames, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected LoadQueryDetails getStaticLoadQuery()
getStaticLoadQuery
in class AbstractLoadPlanBasedLoader
protected String getEntityName()
public final List loadEntityBatch(SessionImplementor 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, SessionImplementor session) throws HibernateException
UniqueEntityLoader
load
in interface UniqueEntityLoader
HibernateException
public Object load(Serializable id, Object optionalObject, SessionImplementor 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.protected int[] getNamedParameterLocs(String name)
getNamedParameterLocs
in class AbstractLoadPlanBasedLoader
protected void autoDiscoverTypes(ResultSet rs)
autoDiscoverTypes
in class AbstractLoadPlanBasedLoader
Copyright © 2017 JBoss by Red Hat. All rights reserved.