当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
AbstractEntityLoader (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.loader
Class AbstractEntityLoader
java.lang.Object
net.sf.hibernate.loader.Loader
net.sf.hibernate.loader.OuterJoinLoader
net.sf.hibernate.loader.AbstractEntityLoader
- Direct Known Subclasses:
- CriteriaLoader, EntityLoader
- public abstract class AbstractEntityLoader
- extends OuterJoinLoader
Abstract superclass for entity loaders that use outer joins
- Author:
- Gavin King
- See Also:
CriteriaLoader
,
EntityLoader
Method Summary |
protected void |
addAllToPropertySpaces(Serializable[] spaces)
|
protected void |
addToPropertySpaces(Serializable space)
|
protected String |
getAlias()
|
protected int |
getCollectionOwner()
Get the index of the entity that owns the collection, or -1
if there is no owner in the query results (ie. |
protected CollectionPersister |
getCollectionPersister()
An (optional) persister for a collection to be initialized; only collection loaders
return a non-null value |
protected String[] |
getEntityAliases()
|
protected Loadable |
getPersister()
|
protected String |
getWhereFragment()
Don't bother with the discriminator, unless overridded by subclass |
protected void |
initClassPersisters(List associations)
|
protected void |
initStatementString(List associations,
String condition,
String orderBy,
SessionFactoryImplementor factory)
|
protected boolean |
isJoinedFetchEnabled(Type type,
boolean mappingDefault,
String path,
String table,
String[] foreignKeyColumns)
Override on subclasses to enable or suppress joining of some associations,
especially in the case of dynamic fetch settings |
protected void |
renderStatement(List associations,
String condition,
SessionFactoryImplementor factory)
|
protected void |
setAlias(String alias)
|
String |
toString()
|
Methods inherited from class net.sf.hibernate.loader.OuterJoinLoader |
containsCollectionPersister, countClassPersisters, createLockModeArray, generateRootAlias, generateTableAlias, getJoinType, getLockModes, getOwners, getPersisters, getSQLString, getSuffixes, isJoinedFetchEnabledByDefault, mergeOuterJoins, selectString, toOwner, walkCollectionTree, walkTree, whereString |
Methods inherited from class net.sf.hibernate.loader.Loader |
applyLocks, bindNamedParameters, bindPositionalParameters, doList, generateAlias, generateSuffixes, getResultColumnOrRow, getResultList, getResultSet, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadEntity, loadEntityBatch, loadSingleRow, postInstantiate, prepareQueryStatement, upgradeLocks |
AbstractEntityLoader
public AbstractEntityLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory)
renderStatement
protected final void renderStatement(List associations,
String condition,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
addAllToPropertySpaces
protected final void addAllToPropertySpaces(Serializable[] spaces)
addToPropertySpaces
protected void addToPropertySpaces(Serializable space)
initClassPersisters
protected final void initClassPersisters(List associations)
initStatementString
protected final void initStatementString(List associations,
String condition,
String orderBy,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
getWhereFragment
protected String getWhereFragment()
throws MappingException
- Don't bother with the discriminator, unless overridded by subclass
- Throws:
MappingException
getPersister
protected final Loadable getPersister()
setAlias
protected final void setAlias(String alias)
getAlias
protected final String getAlias()
getCollectionPersister
protected final CollectionPersister getCollectionPersister()
- Description copied from class:
Loader
- An (optional) persister for a collection to be initialized; only collection loaders
return a non-null value
- Overrides:
getCollectionPersister
in class OuterJoinLoader
getCollectionOwner
protected final int getCollectionOwner()
- Description copied from class:
Loader
- Get the index of the entity that owns the collection, or -1
if there is no owner in the query results (ie. in the case of a
collection initializer) or no collection.
- Overrides:
getCollectionOwner
in class Loader
getEntityAliases
protected String[] getEntityAliases()
isJoinedFetchEnabled
protected boolean isJoinedFetchEnabled(Type type,
boolean mappingDefault,
String path,
String table,
String[] foreignKeyColumns)
- Description copied from class:
OuterJoinLoader
- Override on subclasses to enable or suppress joining of some associations,
especially in the case of dynamic fetch settings
- Overrides:
isJoinedFetchEnabled
in class OuterJoinLoader
toString
public String toString()