Top Fields Constructors Methods
org.hibernate.loader.entity

public abstract Class AbstractEntityLoader

extends OuterJoinLoader
implements UniqueEntityLoader
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.entity.UniqueEntityLoader
Known Direct Subclasses
org.hibernate.loader.entity.CascadeEntityLoader, org.hibernate.loader.entity.EntityLoader
Imports
java.io.Serializable, java.sql.ResultSet, java.util.List, org.hibernate.HibernateException, .LockOptions, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.loader.OuterJoinLoader, org.hibernate.persister.entity.OuterJoinLoadable, org.hibernate.transform.ResultTransformer, org.hibernate.type.Type

Field Summary

Modifier and TypeField and Description
protected final String
protected final OuterJoinLoadable
protected final Type
Inherited from org.hibernate.loader.OuterJoinLoader:
aliasescollectionOwnerscollectionPersisterscollectionSuffixeslockModeArrayownerAssociationTypesownerspersisterssqlsuffixes

Constructor Summary

AccessConstructor and Description
public
AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected Object
getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session)

Overrides org.hibernate.loader.Loader.getResultColumnOrRow.

Get the actual object that is returned in the user-visible result list.
protected boolean
isSingleRowLoader()

Overrides org.hibernate.loader.Loader.isSingleRowLoader.

Return false is this loader is a batch entity loader
public Object
load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance.
public Object
public Object
load(Serializable
The id to be loaded
id
,
Object
The (optional) entity instance in to which to load the state
optionalObject
,
SharedSessionContractImplementor
The session from which the request originated
session
,
LockOptions
The lock options.
lockOptions
)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.
public Object
public Object
protected Object
load(SharedSessionContractImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions, Boolean readOnly)

Inherited from org.hibernate.loader.OuterJoinLoader:
getAliasesgetCollectionOwnersgetCollectionPersistersgetCollectionSuffixesgetDialectgetEntityPersistersgetLoadQueryInfluencersgetLockModesgetLockOptionsgetOwnerAssociationTypesgetOwnersgetSQLStringgetSuffixesinitFromWalker

Field Detail

entityNameback to summary
protected final String entityName
persisterback to summary
protected final OuterJoinLoadable persister
uniqueKeyTypeback to summary
protected final Type uniqueKeyType

Constructor Detail

AbstractEntityLoaderback to summary
public AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

getResultColumnOrRowback to summary
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session)

Overrides org.hibernate.loader.Loader.getResultColumnOrRow.

Doc from org.hibernate.loader.Loader.getResultColumnOrRow.

Get the actual object that is returned in the user-visible result list. This empty implementation merely returns its first argument. This is overridden by some subclasses.

Annotations
@Override
isSingleRowLoaderback to summary
protected boolean isSingleRowLoader()

Overrides org.hibernate.loader.Loader.isSingleRowLoader.

Doc from org.hibernate.loader.Loader.isSingleRowLoader.

Return false is this loader is a batch entity loader

Annotations
@Override
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Doc from org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.

Annotations
@Override
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)

Overrides default org.hibernate.loader.entity.UniqueEntityLoader.load.

Annotations
@Override
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Doc from org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.

Parameters
id:Serializable

The id to be loaded

optionalObject:Object

The (optional) entity instance in to which to load the state

session:SharedSessionContractImplementor

The session from which the request originated

lockOptions:LockOptions

The lock options.

Returns:Object

The loaded entity

Annotations
@Override
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)

Overrides default org.hibernate.loader.entity.UniqueEntityLoader.load.

Annotations
@Override
loadback to summary
public Object load(Object id, SharedSessionContractImplementor session, LockOptions lockOptions)

Overrides default org.hibernate.loader.entity.UniqueEntityLoader.load.

Annotations
@Override
loadback to summary
protected Object load(SharedSessionContractImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions, Boolean readOnly)