Package org.hibernate.loader
Class BasicLoader
java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
- Direct Known Subclasses:
OuterJoinLoader,QueryLoader,QueryTranslatorImpl
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]generateSuffixes(int length) Utility method that generates 0_, 1_ suffixes.static String[]generateSuffixes(int seed, int length) protected final CollectionAliases[]protected abstract String[]protected final EntityAliases[]Get the result set descriptorprotected abstract String[]protected voidCalculate and cache select-clause suffixes.Methods inherited from class org.hibernate.loader.Loader
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, doList, extractKeysFromResultSet, getAliases, getCollectionOwners, getCollectionPersisters, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getEntityPersisters, getFactory, getLockModes, getNamedParameterLocs, getOwnerAssociationTypes, getOwners, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultSet, getSQLString, hasSubselectLoadableCollections, isSingleRowLoader, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, resolveResultTransformer, scroll, toString, upgradeLocks
-
Field Details
-
NO_SUFFIX
-
-
Constructor Details
-
BasicLoader
-
-
Method Details
-
getEntityAliases
Description copied from class:LoaderGet the result set descriptor- Specified by:
getEntityAliasesin classLoader
-
getCollectionAliases
- Specified by:
getCollectionAliasesin classLoader
-
getSuffixes
-
getCollectionSuffixes
-
postInstantiate
protected void postInstantiate()Description copied from class:LoaderCalculate and cache select-clause suffixes. Must be called by subclasses after instantiation.- Overrides:
postInstantiatein classLoader
-
generateSuffixes
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
-