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, .SQLException, java.util.List, org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, .LockOptions, org.hibernate.engine.SessionFactoryImplementor, .SessionImplementor, .LoadQueryInfluencers, 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 static final Logger
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)

Method Summary

Modifier and TypeMethod and Description
protected Object
getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor 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, SessionImplementor session)

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

Load an entity instance.
public Object
load(Serializable
The id to be loaded
id
,
Object
The (optional) entity instance in to which to load the state
optionalObject
,
SessionImplementor
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.
protected Object
load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions)

Inherited from org.hibernate.loader.OuterJoinLoader:
getAliasesgetCollectionOwnersgetCollectionPersistersgetCollectionSuffixesgetDialectgetEntityPersistersgetLoadQueryInfluencersgetLockModesgetLockOptionsgetOwnerAssociationTypesgetOwnersgetSQLStringgetSuffixesinitFromWalker

Field Detail

entityNameback to summary
protected final String entityName
logback to summary
protected static final Logger log

Hides org.hibernate.loader.Loader.log.

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)

Method Detail

getResultColumnOrRowback to summary
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session) throws SQLException, HibernateException

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.

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

loadback to summary
public Object load(Serializable id, Object optionalObject, SessionImplementor 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.

loadback to summary
public Object load(Serializable id, Object optionalObject, SessionImplementor 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:SessionImplementor

The session from which the request originated

lockOptions:LockOptions

The lock options.

Returns:Object

The loaded entity

loadback to summary
protected Object load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions)