Top Description Inners Fields Constructors Methods
org.hibernate.loader.plan.exec.internal

public abstract Class AbstractCollectionLoadQueryDetails

extends AbstractLoadQueryDetails
Class Inheritance
Known Direct Subclasses
org.hibernate.loader.plan.exec.internal.BasicCollectionLoadQueryDetails, org.hibernate.loader.plan.exec.internal.OneToManyLoadQueryDetails
Imports
java.sql.ResultSet, .SQLException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.util.StringHelper, org.hibernate.loader.plan.exec.process.internal.AbstractRowReader, .CollectionReferenceInitializerImpl, .CollectionReturnReader, .EntityReferenceInitializerImpl, .ResultSetProcessingContextImpl, org.hibernate.loader.plan.exec.process.spi.CollectionReferenceInitializer, .ReaderCollector, .RowReader, org.hibernate.loader.plan.exec.query.internal.SelectStatementBuilder, org.hibernate.loader.plan.exec.query.spi.QueryBuildingParameters, org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases, .EntityReferenceAliases, org.hibernate.loader.plan.spi.CollectionQuerySpace, .CollectionReturn, .EntityReference, .LoadPlan, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.OuterJoinLoadable

Handles interpreting a LoadPlan (for loading of a collection) by:
Author
Gail Badner

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final CollectionReferenceAliases
private final ReaderCollector

Constructor Summary

AccessConstructor and Description
protected
AbstractCollectionLoadQueryDetails(LoadPlan loadPlan, AliasResolutionContextImpl aliasResolutionContext, CollectionReturn rootReturn, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected void
protected void
protected CollectionReferenceAliases
protected QueryableCollection
protected ReaderCollector
protected CollectionReturn
protected CollectionQuerySpace
protected boolean
isSubselectLoadingEnabled(FetchStats
the fetch stats; may be null
fetchStats
)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.isSubselectLoadingEnabled.

Is subselect loading enabled?
protected boolean
protected boolean
Inherited from org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails:
applyRootReturnTableFragmentsgenerategenerategetAliasResolutionContextgetKeyColumnNamesgetLoadPlangetQueryBuildingParametersgetQuerySpacegetResultSetProcessorgetRootReturngetRootTableAliasgetSessionFactorygetSqlStatement

Field Detail

collectionReferenceAliasesback to summary
private final CollectionReferenceAliases collectionReferenceAliases
readerCollectorback to summary
private final ReaderCollector readerCollector

Constructor Detail

AbstractCollectionLoadQueryDetailsback to summary
protected AbstractCollectionLoadQueryDetails(LoadPlan loadPlan, AliasResolutionContextImpl aliasResolutionContext, CollectionReturn rootReturn, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)

Deprecated

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

Method Detail

applyRootReturnFilterRestrictionsback to summary
protected void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.applyRootReturnFilterRestrictions.

Annotations
@Override
applyRootReturnOrderByFragmentsback to summary
protected void applyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.applyRootReturnOrderByFragments.

Annotations
@Override
applyRootReturnSelectFragmentsback to summary
protected void applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.applyRootReturnSelectFragments.

Annotations
@Override
applyRootReturnWhereJoinRestrictionsback to summary
protected void applyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.applyRootReturnWhereJoinRestrictions.

Annotations
@Override
getCollectionReferenceAliasesback to summary
protected CollectionReferenceAliases getCollectionReferenceAliases()
getQueryableCollectionback to summary
protected QueryableCollection getQueryableCollection()
getReaderCollectorback to summary
protected ReaderCollector getReaderCollector()

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.getReaderCollector.

Annotations
@Override
getRootCollectionReturnback to summary
protected CollectionReturn getRootCollectionReturn()
getRootQuerySpaceback to summary
protected CollectionQuerySpace getRootQuerySpace()

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.getRootQuerySpace.

Annotations
@Override
isSubselectLoadingEnabledback to summary
protected boolean isSubselectLoadingEnabled(FetchStats fetchStats)

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.isSubselectLoadingEnabled.

Doc from org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.isSubselectLoadingEnabled.

Is subselect loading enabled?

Parameters
fetchStats:FetchStats

the fetch stats; may be null

Returns:boolean

true if subselect loading is enabled; false otherwise.

Annotations
@Override
shouldApplyRootReturnFilterBeforeKeyRestrictionback to summary
protected boolean shouldApplyRootReturnFilterBeforeKeyRestriction()

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.shouldApplyRootReturnFilterBeforeKeyRestriction.

Annotations
@Override
shouldUseOptionalEntityInstanceback to summary
protected boolean shouldUseOptionalEntityInstance()

Implements abstract org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.shouldUseOptionalEntityInstance.

Annotations
@Override
org.hibernate.loader.plan.exec.internal back to summary

private Class AbstractCollectionLoadQueryDetails.CollectionLoaderReaderCollectorImpl

extends ReaderCollectorImpl
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CollectionReturnReader

Constructor Summary

AccessConstructor and Description
public
CollectionLoaderReaderCollectorImpl(CollectionReturnReader collectionReturnReader, CollectionReferenceInitializer collectionReferenceInitializer)

Method Summary

Modifier and TypeMethod and Description
public RowReader
public CollectionReturnReader
Inherited from org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails.ReaderCollectorImpl:
addaddgetArrayReferenceInitializersgetEntityReferenceInitializersgetNonArrayCollectionReferenceInitializers

Field Detail

collectionReturnReaderback to summary
private final CollectionReturnReader collectionReturnReader

Constructor Detail

CollectionLoaderReaderCollectorImplback to summary
public CollectionLoaderReaderCollectorImpl(CollectionReturnReader collectionReturnReader, CollectionReferenceInitializer collectionReferenceInitializer)

Method Detail

buildRowReaderback to summary
public RowReader buildRowReader()

Implements org.hibernate.loader.plan.exec.process.spi.ReaderCollector.buildRowReader.

Annotations
@Override
getReturnReaderback to summary
public CollectionReturnReader getReturnReader()

Implements org.hibernate.loader.plan.exec.process.spi.ReaderCollector.getReturnReader.

Annotations
@Override
org.hibernate.loader.plan.exec.internal back to summary

private Class AbstractCollectionLoadQueryDetails.CollectionLoaderRowReader

extends AbstractRowReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CollectionReturnReader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Object
Inherited from org.hibernate.loader.plan.exec.process.internal.AbstractRowReader:
afterInitializefinishLoadingArraysfinishLoadingCollectionsfinishUppostLoadreadRow

Field Detail

rootReturnReaderback to summary
private final CollectionReturnReader rootReturnReader

Constructor Detail

CollectionLoaderRowReaderback to summary
public CollectionLoaderRowReader(AbstractCollectionLoadQueryDetails.CollectionLoaderReaderCollectorImpl collectionLoaderReaderCollector)

Method Detail

readLogicalRowback to summary
protected Object readLogicalRow(ResultSet resultSet, ResultSetProcessingContextImpl context) throws SQLException

Implements abstract org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.readLogicalRow.

Annotations
@Override