Package org.hibernate.loader
Class BasicLoader
- java.lang.Object
-
- org.hibernate.loader.Loader
-
- org.hibernate.loader.BasicLoader
-
- Direct Known Subclasses:
OuterJoinLoader
,QueryLoader
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.loader.Loader
Loader.SqlStatementWrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]
NO_SUFFIX
-
Fields inherited from class org.hibernate.loader.Loader
DEBUG_ENABLED, LOG, SELECT, SELECT_DISTINCT
-
-
Constructor Summary
Constructors Constructor Description BasicLoader(SessionFactoryImplementor factory)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
generateSuffixes(int length)
Utility method that generates 0_, 1_ suffixes.static java.lang.String[]
generateSuffixes(int seed, int length)
protected CollectionAliases[]
getCollectionAliases()
protected abstract java.lang.String[]
getCollectionSuffixes()
protected EntityAliases[]
getEntityAliases()
Get the result set descriptorprotected abstract java.lang.String[]
getSuffixes()
protected void
postInstantiate()
Calculate and cache select-clause suffixes.-
Methods inherited from class 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, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, resolveResultTransformer, scroll, shouldUseFollowOnLocking, toString, upgradeLocks
-
-
-
-
Constructor Detail
-
BasicLoader
public BasicLoader(SessionFactoryImplementor factory)
-
-
Method Detail
-
getEntityAliases
protected final EntityAliases[] getEntityAliases()
Description copied from class:Loader
Get the result set descriptor- Specified by:
getEntityAliases
in classLoader
-
getCollectionAliases
protected final CollectionAliases[] getCollectionAliases()
- Specified by:
getCollectionAliases
in classLoader
-
getSuffixes
protected abstract java.lang.String[] getSuffixes()
-
getCollectionSuffixes
protected abstract java.lang.String[] getCollectionSuffixes()
-
postInstantiate
protected void postInstantiate()
Description copied from class:Loader
Calculate and cache select-clause suffixes. Must be called by subclasses after instantiation.- Overrides:
postInstantiate
in classLoader
-
generateSuffixes
public static java.lang.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.- Parameters:
length
- The number of suffixes to generate- Returns:
- The array of generated suffixes (with length=length).
-
generateSuffixes
public static java.lang.String[] generateSuffixes(int seed, int length)
-
-