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
LOG, 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(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, initFromWalker
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, endCollectionLoad, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getLimitHandler, getNamedParameterLocs, getOptionalObjectKey, getQueryIdentifier, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, handleEmptyCollections, hasSubselectLoadableCollections, includeInResultRow, instanceAlreadyLoaded, instanceNotYetLoaded, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processDistinctKeyword, 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, SharedSessionContractImplementor session)
UniqueEntityLoader
load
in interface UniqueEntityLoader
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
load
in interface UniqueEntityLoader
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor 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.public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
load
in interface UniqueEntityLoader
protected 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)
Loader
getResultColumnOrRow
in class Loader
protected boolean isSingleRowLoader()
Loader
isSingleRowLoader
in class Loader
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.