类 OuterJoinLoader
- java.lang.Object
-
- org.hibernate.loader.Loader
-
- org.hibernate.loader.BasicLoader
-
- org.hibernate.loader.OuterJoinLoader
-
public abstract class OuterJoinLoader extends BasicLoader
Implements logic for walking a tree of associated classes. Generates an SQL select string containing all properties of those classes. Tables are joined using an ANSI-style left outer join.- 作者:
- Gavin King
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.loader.Loader
Loader.SqlStatementWrapper
-
-
字段概要
字段 修饰符和类型 字段 说明 protected String[]aliasesprotected int[]collectionOwnersprotected CollectionPersister[]collectionPersistersprotected String[]collectionSuffixesprotected LockMode[]lockModeArrayprotected EntityType[]ownerAssociationTypesprotected int[]ownersprotected Loadable[]persistersprotected Stringsqlprotected String[]suffixes-
从类继承的字段 org.hibernate.loader.BasicLoader
NO_SUFFIX
-
从类继承的字段 org.hibernate.loader.Loader
LOG, SELECT, SELECT_DISTINCT
-
-
构造器概要
构造器 构造器 说明 OuterJoinLoader(SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String[]getAliases()Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loadingprotected int[]getCollectionOwners()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.protected CollectionPersister[]getCollectionPersisters()An (optional) persister for a collection to be initialized; only collection loaders return a non-null valueprotected String[]getCollectionSuffixes()protected DialectgetDialect()protected Loadable[]getEntityPersisters()An array of persisters of entity classes contained in each row of results; implemented by all subclassesLoadQueryInfluencersgetLoadQueryInfluencers()protected LockMode[]getLockModes(LockOptions lockOptions)What lock options does this load entities with?protected LockOptionsgetLockOptions()protected EntityType[]getOwnerAssociationTypes()An array of the owner types corresponding to theLoader.getOwners()returns.protected int[]getOwners()An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner").StringgetSQLString()The SQL query string to be called; implemented by all subclassesprotected String[]getSuffixes()protected voidinitFromWalker(JoinWalker walker)-
从类继承的方法 org.hibernate.loader.BasicLoader
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
-
从类继承的方法 org.hibernate.loader.Loader
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getLimitHandler, getNamedParameterLocs, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, hasSubselectLoadableCollections, includeInResultRow, isSingleRowLoader, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, resolveResultTransformer, scroll, shouldUseFollowOnLocking, toString, upgradeLocks
-
-
-
-
字段详细资料
-
persisters
protected Loadable[] persisters
-
collectionPersisters
protected CollectionPersister[] collectionPersisters
-
collectionOwners
protected int[] collectionOwners
-
aliases
protected String[] aliases
-
lockModeArray
protected LockMode[] lockModeArray
-
owners
protected int[] owners
-
ownerAssociationTypes
protected EntityType[] ownerAssociationTypes
-
sql
protected String sql
-
suffixes
protected String[] suffixes
-
collectionSuffixes
protected String[] collectionSuffixes
-
-
构造器详细资料
-
OuterJoinLoader
public OuterJoinLoader(SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
-
方法详细资料
-
getDialect
protected final Dialect getDialect()
-
getSuffixes
protected String[] getSuffixes()
- 指定者:
getSuffixes在类中BasicLoader
-
getCollectionSuffixes
protected String[] getCollectionSuffixes()
- 指定者:
getCollectionSuffixes在类中BasicLoader
-
getSQLString
public final String getSQLString()
从类复制的说明:LoaderThe SQL query string to be called; implemented by all subclasses- 指定者:
getSQLString在类中Loader- 返回:
- The sql command this loader should use to get its
ResultSet.
-
getEntityPersisters
protected final Loadable[] getEntityPersisters()
从类复制的说明:LoaderAn array of persisters of entity classes contained in each row of results; implemented by all subclasses- 指定者:
getEntityPersisters在类中Loader- 返回:
- The entity persisters.
-
getOwners
protected int[] getOwners()
从类复制的说明:LoaderAn array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner"). The indexes contained here are relative to the result ofLoader.getEntityPersisters().
-
getOwnerAssociationTypes
protected EntityType[] getOwnerAssociationTypes()
从类复制的说明:LoaderAn array of the owner types corresponding to theLoader.getOwners()returns. Indices indicating no owner would be null here.- 覆盖:
getOwnerAssociationTypes在类中Loader- 返回:
- The types for the owners.
-
getLockModes
protected LockMode[] getLockModes(LockOptions lockOptions)
从类复制的说明:LoaderWhat lock options does this load entities with?- 指定者:
getLockModes在类中Loader- 参数:
lockOptions- a collection of lock options specified dynamically via the Query interface
-
getLockOptions
protected LockOptions getLockOptions()
-
getLoadQueryInfluencers
public LoadQueryInfluencers getLoadQueryInfluencers()
-
getAliases
protected final String[] getAliases()
从类复制的说明:LoaderGet the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading- 覆盖:
getAliases在类中Loader
-
getCollectionPersisters
protected final CollectionPersister[] getCollectionPersisters()
从类复制的说明:LoaderAn (optional) persister for a collection to be initialized; only collection loaders return a non-null value- 覆盖:
getCollectionPersisters在类中Loader
-
getCollectionOwners
protected final int[] getCollectionOwners()
从类复制的说明:LoaderGet 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.- 覆盖:
getCollectionOwners在类中Loader
-
initFromWalker
protected void initFromWalker(JoinWalker walker)
-
-