public abstract class AbstractEntityLoader extends OuterJoinLoader implements UniqueEntityLoader
Loader.SqlStatementWrapper
Modifier and Type | Field and Description |
---|---|
protected String |
entityName |
protected OuterJoinLoadable |
persister |
protected Type |
uniqueKeyType |
aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes
NO_SUFFIX
DEBUG_ENABLED, LOG
Constructor and Description |
---|
AbstractEntityLoader(OuterJoinLoadable persister,
Type uniqueKeyType,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected boolean |
isSingleRowLoader()
Return false is this loader is a batch entity loader
|
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.
|
protected Object |
load(SessionImplementor session,
Object id,
Object optionalObject,
Serializable optionalId,
LockOptions lockOptions) |
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockModes, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getLimitHandler, getNamedParameterLocs, getQueryIdentifier, getResultList, getResultRow, getResultRowAliases, getResultSet, hasSubselectLoadableCollections, includeInResultRow, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processResultSet, putResultInQueryCache, resolveResultTransformer, scroll, shouldUseFollowOnLocking, toString, upgradeLocks
protected final OuterJoinLoadable persister
protected final Type uniqueKeyType
protected final String entityName
public AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
public Object load(Serializable id, Object optionalObject, SessionImplementor session)
UniqueEntityLoader
load
in interface UniqueEntityLoader
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 Object load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions)
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session) throws SQLException, HibernateException
Loader
getResultColumnOrRow
in class Loader
SQLException
HibernateException
protected boolean isSingleRowLoader()
Loader
isSingleRowLoader
in class Loader
Copyright © 2017 JBoss by Red Hat. All rights reserved.