org.hibernate.loader
Class BasicLoader
java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
- Direct Known Subclasses:
- 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.
- Author:
- Gavin King
Methods inherited from class org.hibernate.loader.Loader |
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, doList, getAliases, getCollectionOwners, getCollectionPersisters, 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 |
NO_SUFFIX
protected static final String[] NO_SUFFIX
BasicLoader
public BasicLoader(SessionFactoryImplementor factory)
getEntityAliases
protected final EntityAliases[] getEntityAliases()
- Description copied from class:
Loader
- Get the result set descriptor
- Specified by:
getEntityAliases
in class Loader
getCollectionAliases
protected final CollectionAliases[] getCollectionAliases()
- Specified by:
getCollectionAliases
in class Loader
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 class 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.
- 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)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.