Top Description Fields Constructors Methods
org.hibernate.loader

public abstract Class BasicLoader

extends Loader
Class Inheritance
Known Direct Subclasses
org.hibernate.loader.OuterJoinLoader, org.hibernate.loader.hql.QueryLoader, org.hibernate.hql.internal.classic.QueryTranslatorImpl
Imports
java.util.ArrayList, .List, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.loader.internal.AliasConstantsHelper, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.Loadable, org.hibernate.type.BagType

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

Field Summary

Modifier and TypeField and Description
private CollectionAliases[]
private EntityAliases[]
protected static final String[]
Inherited from org.hibernate.loader.Loader:
LOGSELECTSELECT_DISTINCT

Constructor Summary

AccessConstructor and Description
public
BasicLoader(SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public static String[]

Returns:

The array of generated suffixes (with length=length).
generateSuffixes
(int
The number of suffixes to generate
length
)

Utility method that generates 0_, 1_ suffixes.

public static String[]
generateSuffixes(int seed, int length)

protected final CollectionAliases[]
protected abstract String[]
protected final EntityAliases[]
getEntityAliases()

Implements abstract org.hibernate.loader.Loader.getEntityAliases.

Get the result set descriptor
protected abstract String[]
private boolean
isBag(CollectionPersister collectionPersister)

protected void
postInstantiate()

Overrides org.hibernate.loader.Loader.postInstantiate.

Calculate and cache select-clause suffixes.
Inherited from org.hibernate.loader.Loader:
applyLocksapplyPostLoadLocksareResultSetRowsTransformedImmediatelyautoDiscoverTypesbindNamedParametersbindParameterValuesbindPositionalParametersbindPreparedStatementcheckScrollabilitycreateCacheableResultTransformercreateSubselectsdetermineFollowOnLockModedoListdoQueryAndInitializeNonLazyCollectionsdoQueryAndInitializeNonLazyCollectionsendCollectionLoadexecuteQueryStatementexecuteQueryStatementextractKeysFromResultSetgenerateQueryKeygetAliasesgetCollectionOwnersgetCollectionPersistersgetCompositeKeyManyToOneTargetIndicesgetEntityEagerPerPropertyFetchesgetEntityEagerPropertyFetchesgetEntityPersistergetEntityPersistersgetFactorygetLimitHandlergetLockModesgetNamedParameterLocsgetOptionalObjectKeygetOwnerAssociationTypesgetOwnersgetQueryIdentifiergetResultColumnOrRowgetResultFromQueryCachegetResultListgetResultRowgetResultRowAliasesgetResultSetgetResultSetgetRowsFromResultSetgetSQLStringhandleEmptyCollectionshasSubselectLoadableCollectionsincludeInResultRowinstanceAlreadyLoadedinstanceNotYetLoadedisSingleRowLoaderisSubselectLoadingEnabledlistloadCollectionloadCollectionBatchloadCollectionSubselectloadEntityloadEntityloadEntityBatchloadEntityBatchloadSequentialRowsForwardloadSequentialRowsReverseloadSingleRowneedsFetchingScrollprepareQueryStatementpreprocessResultSetpreprocessSQLprocessDistinctKeywordprocessResultSetputResultInQueryCacheregisterNonExistsresolveResultTransformerscrollshouldUseFollowOnLockingtoStringupgradeLocks

Field Detail

collectionDescriptorsback to summary
private CollectionAliases[] collectionDescriptors
descriptorsback to summary
private EntityAliases[] descriptors
NO_SUFFIXback to summary
protected static final String[] NO_SUFFIX

Constructor Detail

BasicLoaderback to summary
public BasicLoader(SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

generateSuffixesback to summary
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:int

The number of suffixes to generate

Returns:String[]

The array of generated suffixes (with length=length).

generateSuffixesback to summary
public static String[] generateSuffixes(int seed, int length)
getCollectionAliasesback to summary
protected final CollectionAliases[] getCollectionAliases()

Implements abstract org.hibernate.loader.Loader.getCollectionAliases.

getCollectionSuffixesback to summary
protected abstract String[] getCollectionSuffixes()
getEntityAliasesback to summary
protected final EntityAliases[] getEntityAliases()

Implements abstract org.hibernate.loader.Loader.getEntityAliases.

Doc from org.hibernate.loader.Loader.getEntityAliases.

Get the result set descriptor

getSuffixesback to summary
protected abstract String[] getSuffixes()
isBagback to summary
private boolean isBag(CollectionPersister collectionPersister)
postInstantiateback to summary
protected void postInstantiate()

Overrides org.hibernate.loader.Loader.postInstantiate.

Doc from org.hibernate.loader.Loader.postInstantiate.

Calculate and cache select-clause suffixes. Must be called by subclasses after instantiation.