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

public Class LoadQueryJoinAndFetchProcessor

extends Object
Class Inheritance
Imports
java.util.Collections, .HashSet, .Set, org.hibernate.AssertionFailure, org.hibernate.engine.FetchStyle, .FetchTiming, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.CoreLogging, org.hibernate.internal.util.StringHelper, org.hibernate.loader.plan.exec.process.internal.CollectionReferenceInitializerImpl, .EntityReferenceInitializerImpl, org.hibernate.loader.plan.exec.process.spi.ReaderCollector, org.hibernate.loader.plan.exec.query.internal.SelectStatementBuilder, org.hibernate.loader.plan.exec.query.spi.QueryBuildingParameters, org.hibernate.loader.plan.exec.spi.AliasResolutionContext, .CollectionReferenceAliases, .EntityReferenceAliases, org.hibernate.loader.plan.spi.CollectionAttributeFetch, .CollectionQuerySpace, .CompositeQuerySpace, .EntityFetch, .EntityQuerySpace, .EntityReference, .Fetch, .FetchSource, .Join, .JoinDefinedByMetadata, .QuerySpace, org.hibernate.persister.collection.CollectionPersister, .CollectionPropertyNames, .QueryableCollection, org.hibernate.persister.entity.AbstractEntityPersister, .EntityPersister, .Joinable, .OuterJoinLoadable, org.hibernate.persister.walking.internal.FetchStrategyHelper, org.hibernate.sql.JoinFragment, .JoinType, org.hibernate.type.AssociationType, .BagType, .Type, org.jboss.logging.Logger

Helper for implementors of entity and collection based query building based on LoadPlans providing common functionality, especially in regards to handling QuerySpace Joins and Fetches.

Exposes 2 main methods:

  1. processQuerySpaceJoins(QuerySpace, SelectStatementBuilder)
  2. processFetches(FetchSource, SelectStatementBuilder, org.hibernate.loader.plan.exec.process.spi.ReaderCollector)li>
Authors
Steve Ebersole, Chris Cranford

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final AliasResolutionContextImpl
private final QueryBuildingParameters
private final SessionFactoryImplementor
factory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private static final Logger

Constructor Summary

AccessConstructor and Description
public
LoadQueryJoinAndFetchProcessor(AliasResolutionContextImpl aliasResolutionContext, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Instantiates a LoadQueryJoinAndFetchProcessor with the given information

Method Summary

Modifier and TypeMethod and Description
private void
addJoins(Join join, JoinFragment joinFragment, Joinable joinable, String joinConditions)

public AliasResolutionContext
private AssociationType
public QueryBuildingParameters
public SessionFactoryImplementor
getSessionFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private void
private void
private void
private void
processFetch(SelectStatementBuilder selectStatementBuilder, FetchSource fetchSource, Fetch fetch, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)

public FetchStats
processFetches(FetchSource fetchSource, SelectStatementBuilder selectStatementBuilder, ReaderCollector readerCollector)

private void
processFetches(FetchSource fetchSource, SelectStatementBuilder selectStatementBuilder, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)

private void
public void
processQuerySpaceJoins(QuerySpace querySpace, SelectStatementBuilder selectStatementBuilder)

private void
private void
private void
renderEntityJoin(Join join, JoinFragment joinFragment)

private void
renderJoin(Join join, JoinFragment joinFragment)

private void
private String
resolveAdditionalJoinCondition(String rhsTableAlias, String withClause, Joinable joinable, AssociationType associationType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aliasResolutionContextback to summary
private final AliasResolutionContextImpl aliasResolutionContext
buildingParametersback to summary
private final QueryBuildingParameters buildingParameters
factoryback to summary
private final SessionFactoryImplementor factory

Deprecated

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

LOGback to summary
private static final Logger LOG

Constructor Detail

LoadQueryJoinAndFetchProcessorback to summary
public LoadQueryJoinAndFetchProcessor(AliasResolutionContextImpl aliasResolutionContext, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)

Deprecated

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

Instantiates a LoadQueryJoinAndFetchProcessor with the given information

Method Detail

addJoinsback to summary
private void addJoins(Join join, JoinFragment joinFragment, Joinable joinable, String joinConditions)
getAliasResolutionContextback to summary
public AliasResolutionContext getAliasResolutionContext()
getJoinedAssociationTypeOrNullback to summary
private AssociationType getJoinedAssociationTypeOrNull(Join join)
getQueryBuildingParametersback to summary
public QueryBuildingParameters getQueryBuildingParameters()
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

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

handleCompositeJoinback to summary
private void handleCompositeJoin(Join join, JoinFragment joinFragment)
processCollectionFetchback to summary
private void processCollectionFetch(SelectStatementBuilder selectStatementBuilder, FetchSource fetchSource, CollectionAttributeFetch fetch, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)
processEntityFetchback to summary
private void processEntityFetch(SelectStatementBuilder selectStatementBuilder, FetchSource fetchSource, EntityFetch fetch, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)
processFetchback to summary
private void processFetch(SelectStatementBuilder selectStatementBuilder, FetchSource fetchSource, Fetch fetch, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)
processFetchesback to summary
public FetchStats processFetches(FetchSource fetchSource, SelectStatementBuilder selectStatementBuilder, ReaderCollector readerCollector)
processFetchesback to summary
private void processFetches(FetchSource fetchSource, SelectStatementBuilder selectStatementBuilder, ReaderCollector readerCollector, LoadQueryJoinAndFetchProcessor.FetchStatsImpl fetchStats)
processQuerySpaceJoinback to summary
private void processQuerySpaceJoin(Join join, JoinFragment joinFragment)
processQuerySpaceJoinsback to summary
public void processQuerySpaceJoins(QuerySpace querySpace, SelectStatementBuilder selectStatementBuilder)
processQuerySpaceJoinsback to summary
private void processQuerySpaceJoins(QuerySpace querySpace, JoinFragment joinFragment)
renderCollectionJoinback to summary
private void renderCollectionJoin(Join join, JoinFragment joinFragment)
renderEntityJoinback to summary
private void renderEntityJoin(Join join, JoinFragment joinFragment)
renderJoinback to summary
private void renderJoin(Join join, JoinFragment joinFragment)
renderManyToManyJoinback to summary
private void renderManyToManyJoin(Join join, JoinFragment joinFragment)
resolveAdditionalJoinConditionback to summary
private String resolveAdditionalJoinCondition(String rhsTableAlias, String withClause, Joinable joinable, AssociationType associationType)
org.hibernate.loader.plan.exec.internal back to summary

private Class LoadQueryJoinAndFetchProcessor.FetchStatsImpl

extends Object
implements FetchStats
Class Inheritance
  • java.lang.Object
  • org.hibernate.loader.plan.exec.internal.LoadQueryJoinAndFetchProcessor.FetchStatsImpl
All Implemented Interfaces
org.hibernate.loader.plan.exec.internal.FetchStats

Implementation of FetchStats

Field Summary

Modifier and TypeField and Description
private boolean
private Set<CollectionAttributeFetch>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Set<CollectionAttributeFetch>
public boolean
private boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hasSubselectFetchback to summary
private boolean hasSubselectFetch
joinedBagAttributeFetchesback to summary
private Set<CollectionAttributeFetch> joinedBagAttributeFetches

Constructor Detail

FetchStatsImplback to summary
private FetchStatsImpl()

Method Detail

getJoinedBagAttributeFetchesback to summary
public Set<CollectionAttributeFetch> getJoinedBagAttributeFetches()

Implements org.hibernate.loader.plan.exec.internal.FetchStats.getJoinedBagAttributeFetches.

Doc from org.hibernate.loader.plan.exec.internal.FetchStats.getJoinedBagAttributeFetches.

Returns a set of bag attributes that are join-fetched.

Returns:Set<CollectionAttributeFetch>

a set of bag attributes that are join-fetched.

Annotations
@Override
hasSubselectFetchesback to summary
public boolean hasSubselectFetches()

Implements org.hibernate.loader.plan.exec.internal.FetchStats.hasSubselectFetches.

Doc from org.hibernate.loader.plan.exec.internal.FetchStats.hasSubselectFetches.

Were any subselect fetches encountered?

Returns:boolean

true if subselect fetches were encountered; false otherwise.

Annotations
@Override
isJoinFetchedBagback to summary
private boolean isJoinFetchedBag(Fetch fetch)
processingFetchback to summary
public void processingFetch(Fetch fetch)