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_SUFFIXLOG, SELECT, SELECT_DISTINCT| 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,
SharedSessionContractImplementor 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(Object id,
SharedSessionContractImplementor session,
LockOptions lockOptions) |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Load an entity instance.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions,
Boolean readOnly) |
protected Object |
load(SharedSessionContractImplementor session,
Object id,
Object optionalObject,
Serializable optionalId,
LockOptions lockOptions,
Boolean readOnly) |
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockModes, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalkergenerateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiateapplyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, bindPreparedStatement, checkScrollability, createCacheableResultTransformer, createSubselects, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, endCollectionLoad, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, generateQueryKey, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getEntityPersister, getFactory, getLimitHandler, getNamedParameterLocs, getOptionalObjectKey, getQueryIdentifier, getResultFromQueryCache, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, getRowsFromResultSet, handleEmptyCollections, hasSubselectLoadableCollections, includeInResultRow, instanceAlreadyLoaded, instanceNotYetLoaded, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessResultSet, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, registerNonExists, 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, SharedSessionContractImplementor session)
UniqueEntityLoaderload in interface UniqueEntityLoaderpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
load in interface UniqueEntityLoaderpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor 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.public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
load in interface UniqueEntityLoaderpublic Object load(Object id, SharedSessionContractImplementor session, LockOptions lockOptions)
load in interface UniqueEntityLoaderprotected Object load(SharedSessionContractImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions, Boolean readOnly)
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session)
LoadergetResultColumnOrRow in class Loaderprotected boolean isSingleRowLoader()
LoaderisSingleRowLoader in class LoaderCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.