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.
Loader.SqlStatementWrapper| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
NO_SUFFIX |
DEBUG_ENABLED, LOG, SELECT, SELECT_DISTINCT| Constructor and Description |
|---|
BasicLoader(SessionFactoryImplementor factory) |
| Modifier and Type | Method and 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 descriptor
|
protected abstract String[] |
getSuffixes() |
protected void |
postInstantiate()
Calculate and cache select-clause suffixes.
|
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, upgradeLocksprotected static final String[] NO_SUFFIX
public BasicLoader(SessionFactoryImplementor factory)
protected final EntityAliases[] getEntityAliases()
LoaderGet the result set descriptor
getEntityAliases in class Loaderprotected final CollectionAliases[] getCollectionAliases()
getCollectionAliases in class Loaderprotected abstract String[] getSuffixes()
protected abstract String[] getCollectionSuffixes()
protected void postInstantiate()
LoaderCalculate and cache select-clause suffixes. Must be called by subclasses after instantiation.
postInstantiate in class Loaderpublic 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 generatepublic static String[] generateSuffixes(int seed, int length)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.