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
-
-
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 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 void
postInstantiate()
Calculate and cache select-clause suffixes.-
Methods inherited from class org.hibernate.loader.Loader
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, bindPreparedStatement, checkScrollability, createCacheableResultTransformer, createSubselects, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, endCollectionLoad, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, generateQueryKey, getAliases, getCollectionOwners, getCollectionPersisters, getCompositeKeyManyToOneTargetIndices, getEntityEagerPerPropertyFetches, getEntityEagerPropertyFetches, getEntityPersister, getEntityPersisters, getFactory, getLimitHandler, getLockModes, getNamedParameterLocs, getOptionalObjectKey, getOwnerAssociationTypes, getOwners, getQueryIdentifier, getResultColumnOrRow, getResultFromQueryCache, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, getRowsFromResultSet, getSQLString, handleEmptyCollections, hasSubselectLoadableCollections, includeInResultRow, instanceAlreadyLoaded, instanceNotYetLoaded, isSingleRowLoader, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessResultSet, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, registerNonExists, resolveResultTransformer, scroll, shouldUseFollowOnLocking, toString, upgradeLocks
-
-
-
-
Field Detail
-
NO_SUFFIX
protected static final String[] NO_SUFFIX
-
-
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 String[] getSuffixes()
-
getCollectionSuffixes
protected abstract 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 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 String[] generateSuffixes(int seed, int length)
-
-