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, suffixesNO_SUFFIXDEBUG_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, initFromWalkergenerateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiateapplyLocks, 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, upgradeLocksprotected 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)
UniqueEntityLoaderload in interface UniqueEntityLoaderpublic 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 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
LoadergetResultColumnOrRow in class LoaderSQLExceptionHibernateExceptionprotected boolean isSingleRowLoader()
LoaderisSingleRowLoader in class LoaderCopyright © 2017 JBoss by Red Hat. All rights reserved.