public abstract class

AbstractEntityLoader

extends OuterJoinLoader
implements UniqueEntityLoader
java.lang.Object
   ↳ org.hibernate.loader.Loader
     ↳ org.hibernate.loader.BasicLoader
       ↳ org.hibernate.loader.OuterJoinLoader
         ↳ org.hibernate.loader.entity.AbstractEntityLoader
Known Direct Subclasses

Summary

Fields
protected final String entityName
protected static final Logger log
protected final OuterJoinLoadable persister
protected final Type uniqueKeyType
[Expand]
Inherited Fields
From class org.hibernate.loader.OuterJoinLoader
From class org.hibernate.loader.BasicLoader
Public Constructors
AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
Public Methods
Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)
Load an entity instance by id.
Object load(Serializable id, Object optionalObject, SessionImplementor session)
Load an entity instance.
Protected Methods
Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
boolean isSingleRowLoader()
Return false is this loader is a batch entity loader
Object load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions)
[Expand]
Inherited Methods
From class org.hibernate.loader.OuterJoinLoader
From class org.hibernate.loader.BasicLoader
From class org.hibernate.loader.Loader
From class java.lang.Object
From interface org.hibernate.loader.entity.UniqueEntityLoader

Fields

protected final String entityName

protected static final Logger log

protected final OuterJoinLoadable persister

protected final Type uniqueKeyType

Public Constructors

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

Public Methods

public Object load (Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)

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 The id to be loaded
optionalObject The (optional) entity instance in to which to load the state
session The session from which the request originated
lockOptions The lock options.
Returns
  • The loaded entity

public Object load (Serializable id, Object optionalObject, SessionImplementor session)

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

Protected Methods

protected Object getResultColumnOrRow (Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session)

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.

protected boolean isSingleRowLoader ()

Return false is this loader is a batch entity loader

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