org.hibernate.loader.entity
Class AbstractEntityLoader

java.lang.Object
  extended by org.hibernate.loader.Loader
      extended by org.hibernate.loader.BasicLoader
          extended by org.hibernate.loader.OuterJoinLoader
              extended by org.hibernate.loader.entity.AbstractEntityLoader
All Implemented Interfaces:
UniqueEntityLoader
Direct Known Subclasses:
CascadeEntityLoader, EntityLoader

public abstract class AbstractEntityLoader
extends OuterJoinLoader
implements UniqueEntityLoader


Field Summary
protected  String entityName
           
protected static org.slf4j.Logger log
           
protected  OuterJoinLoadable persister
           
protected  Type uniqueKeyType
           
 
Fields inherited from class org.hibernate.loader.OuterJoinLoader
aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes
 
Fields inherited from class org.hibernate.loader.BasicLoader
NO_SUFFIX
 
Constructor Summary
AbstractEntityLoader(OuterJoinLoadable persister, Type uniqueKeyType, SessionFactoryImplementor factory, Map enabledFilters)
           
 
Method Summary
protected  Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor 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, SessionImplementor session)
          Load an entity instance.
protected  Object load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId)
           
 
Methods inherited from class org.hibernate.loader.OuterJoinLoader
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker
 
Methods inherited from class org.hibernate.loader.BasicLoader
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
 
Methods inherited from class org.hibernate.loader.Loader
applyLocks, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, doList, getEntityEagerPropertyFetches, getFactory, getNamedParameterLocs, getQueryIdentifier, getResultList, getResultSet, hasSubselectLoadableCollections, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, scroll, toString, upgradeLocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.slf4j.Logger log

persister

protected final OuterJoinLoadable persister

uniqueKeyType

protected final Type uniqueKeyType

entityName

protected final String entityName
Constructor Detail

AbstractEntityLoader

public AbstractEntityLoader(OuterJoinLoadable persister,
                            Type uniqueKeyType,
                            SessionFactoryImplementor factory,
                            Map enabledFilters)
Method Detail

load

public Object load(Serializable id,
                   Object optionalObject,
                   SessionImplementor session)
            throws HibernateException
Description copied from interface: UniqueEntityLoader
Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.

Specified by:
load in interface UniqueEntityLoader
Throws:
HibernateException

load

protected Object load(SessionImplementor session,
                      Object id,
                      Object optionalObject,
                      Serializable optionalId)
               throws HibernateException
Throws:
HibernateException

getResultColumnOrRow

protected Object getResultColumnOrRow(Object[] row,
                                      ResultTransformer transformer,
                                      ResultSet rs,
                                      SessionImplementor session)
                               throws SQLException,
                                      HibernateException
Description copied from class: Loader
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.

Overrides:
getResultColumnOrRow in class Loader
Throws:
SQLException
HibernateException

isSingleRowLoader

protected boolean isSingleRowLoader()
Description copied from class: Loader
Return false is this loader is a batch entity loader

Overrides:
isSingleRowLoader in class Loader


Copyright © 2009 Hibernate.org. All Rights Reserved.