当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
EntityLoader (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.loader.entity
Class EntityLoader
java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
org.hibernate.loader.OuterJoinLoader
org.hibernate.loader.entity.AbstractEntityLoader
org.hibernate.loader.entity.EntityLoader
- All Implemented Interfaces:
- UniqueEntityLoader
- public class EntityLoader
- extends AbstractEntityLoader
Loads an entity instance using outerjoin fetching to fetch associated entities.
The EntityPersister must implement Loadable. For other entities,
create a customized subclass of Loader.
- Author:
- Gavin King
Constructor Summary |
EntityLoader(OuterJoinLoadable persister,
int batchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
|
EntityLoader(OuterJoinLoadable persister,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
|
EntityLoader(OuterJoinLoadable persister,
String[] uniqueKey,
Type uniqueKeyType,
int batchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
|
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.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, processFilters, scroll, toString, upgradeLocks |
EntityLoader
public EntityLoader(OuterJoinLoadable persister,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
EntityLoader
public EntityLoader(OuterJoinLoadable persister,
int batchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
EntityLoader
public EntityLoader(OuterJoinLoadable persister,
String[] uniqueKey,
Type uniqueKeyType,
int batchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
loadByUniqueKey
public Object loadByUniqueKey(SessionImplementor session,
Object key)
throws HibernateException
- Throws:
HibernateException
isSingleRowLoader
protected boolean isSingleRowLoader()
- Description copied from class:
Loader
- Return false is this loader is a batch entity loader
- Overrides:
isSingleRowLoader
in class AbstractEntityLoader