public abstract class AbstractEntityLoader extends OuterJoinLoader implements UniqueEntityLoader
Loader.SqlStatementWrapper| Modifier and Type | Field and Description |
|---|---|
protected java.lang.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 java.lang.Object |
getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.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
|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
protected java.lang.Object |
load(SessionImplementor session,
java.lang.Object id,
java.lang.Object optionalObject,
java.io.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 java.lang.String entityName
public AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
public java.lang.Object load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session)
UniqueEntityLoaderload in interface UniqueEntityLoaderpublic java.lang.Object load(java.io.Serializable id,
java.lang.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 java.lang.Object load(SessionImplementor session, java.lang.Object id, java.lang.Object optionalObject, java.io.Serializable optionalId, LockOptions lockOptions)
protected java.lang.Object getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session)
throws java.sql.SQLException,
HibernateException
LoadergetResultColumnOrRow in class Loaderjava.sql.SQLExceptionHibernateExceptionprotected boolean isSingleRowLoader()
LoaderisSingleRowLoader in class LoaderCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.