类 BasicLoader
- java.lang.Object
-
- org.hibernate.loader.Loader
-
- org.hibernate.loader.BasicLoader
-
- 直接已知子类:
OuterJoinLoader,QueryLoader,QueryTranslatorImpl
public abstract class BasicLoader extends Loader
Uses the default mapping from property to result set column alias defined by the entities' persisters. Used when Hibernate is generating result set column aliases.- 作者:
- Gavin King
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.loader.Loader
Loader.SqlStatementWrapper
-
-
构造器概要
构造器 构造器 说明 BasicLoader(SessionFactoryImplementor factory)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 static String[]generateSuffixes(int length)Utility method that generates 0_, 1_ suffixes.static String[]generateSuffixes(int seed, int length)protected CollectionAliases[]getCollectionAliases()protected abstract String[]getCollectionSuffixes()protected EntityAliases[]getEntityAliases()Get the result set descriptorprotected abstract String[]getSuffixes()protected voidpostInstantiate()Calculate and cache select-clause suffixes.-
从类继承的方法 org.hibernate.loader.Loader
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getAliases, getCollectionOwners, getCollectionPersisters, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getEntityPersisters, getFactory, getLimitHandler, getLockModes, getNamedParameterLocs, getOwnerAssociationTypes, getOwners, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, getSQLString, 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
-
-
-
-
字段详细资料
-
NO_SUFFIX
protected static final String[] NO_SUFFIX
-
-
构造器详细资料
-
BasicLoader
public BasicLoader(SessionFactoryImplementor factory)
-
-
方法详细资料
-
getEntityAliases
protected final EntityAliases[] getEntityAliases()
从类复制的说明:LoaderGet the result set descriptor- 指定者:
getEntityAliases在类中Loader
-
getCollectionAliases
protected final CollectionAliases[] getCollectionAliases()
- 指定者:
getCollectionAliases在类中Loader
-
getSuffixes
protected abstract String[] getSuffixes()
-
getCollectionSuffixes
protected abstract String[] getCollectionSuffixes()
-
postInstantiate
protected void postInstantiate()
从类复制的说明:LoaderCalculate and cache select-clause suffixes. Must be called by subclasses after instantiation.- 覆盖:
postInstantiate在类中Loader
-
generateSuffixes
public static String[] generateSuffixes(int length)
Utility method that generates 0_, 1_ suffixes. Subclasses don't necessarily need to use this algorithm, but it is intended that they will in most cases.- 参数:
length- The number of suffixes to generate- 返回:
- The array of generated suffixes (with length=length).
-
generateSuffixes
public static String[] generateSuffixes(int seed, int length)
-
-