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)
Deprecated.  
 | 
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, prepareQueryStatementpublic AbstractLoadPlanBasedEntityLoader(OuterJoinLoadable entityPersister, SessionFactoryImplementor factory, String[] uniqueKeyColumnNames, Type uniqueKeyType, QueryBuildingParameters buildingParameters)
protected LoadQueryDetails getStaticLoadQuery()
getStaticLoadQuery in class AbstractLoadPlanBasedLoaderprotected 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@Deprecated public Object load(Serializable id, Object optionalObject, SessionImplementor session) throws HibernateException
UniqueEntityLoaderload in interface UniqueEntityLoaderHibernateExceptionpublic Object load(Serializable id, Object optionalObject, SessionImplementor 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.protected int[] getNamedParameterLocs(String name)
getNamedParameterLocs in class AbstractLoadPlanBasedLoaderprotected void autoDiscoverTypes(ResultSet rs)
autoDiscoverTypes in class AbstractLoadPlanBasedLoaderCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.