public class FetchStyleLoadPlanBuildingAssociationVisitationStrategy extends AbstractLoadPlanBuildingAssociationVisitationStrategy
LoadPlanBuildingAssociationVisitationStrategy implementation used for building LoadPlans based on metamodel-defined fetching.  Built
 LoadPlans contain a single root return object, either an EntityReturn or a CollectionReturn.AbstractLoadPlanBuildingAssociationVisitationStrategy.PropertyPathStackcurrentPropertyPath| Constructor and Description | 
|---|
FetchStyleLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor sessionFactory,
                                                       LoadQueryInfluencers loadQueryInfluencers,
                                                       LockMode lockMode)
Constructs a FetchStyleLoadPlanBuildingAssociationVisitationStrategy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addRootReturn(Return rootReturn)  | 
protected FetchStrategy | 
adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition,
                       FetchStrategy fetchStrategy)
If required by this strategy, returns a different  
FetchStrategy from what is specified
 for the given association attribute. | 
LoadPlan | 
buildLoadPlan()
After visitation is done, build the load plan. 
 | 
protected FetchStrategy | 
determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)  | 
protected boolean | 
isTooManyCollections()  | 
protected boolean | 
supportsRootCollectionReturns()  | 
protected boolean | 
supportsRootEntityReturns()  | 
associationKeyRegistered, currentDepth, currentSource, finish, finishingAttribute, finishingCollection, finishingCollectionElements, finishingCollectionIndex, finishingComposite, finishingEntity, finishingEntityIdentifier, foundAny, foundCircularAssociation, getQuerySpaces, getSessionFactory, handleAssociationAttribute, handleCompositeAttribute, isDuplicateAssociationKey, registeredFetchSource, sessionFactory, start, startingAttribute, startingCollection, startingCollectionElements, startingCollectionIndex, startingComposite, startingEntity, startingEntityIdentifierpublic FetchStyleLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor sessionFactory, LoadQueryInfluencers loadQueryInfluencers, LockMode lockMode)
sessionFactory - The session factoryloadQueryInfluencers - The options which can influence the SQL query needed to perform the load.lockMode - The lock mode.protected boolean supportsRootEntityReturns()
supportsRootEntityReturns in class AbstractLoadPlanBuildingAssociationVisitationStrategyprotected boolean supportsRootCollectionReturns()
supportsRootCollectionReturns in class AbstractLoadPlanBuildingAssociationVisitationStrategyprotected void addRootReturn(Return rootReturn)
addRootReturn in class AbstractLoadPlanBuildingAssociationVisitationStrategypublic LoadPlan buildLoadPlan()
LoadPlanBuildingAssociationVisitationStrategyprotected FetchStrategy determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)
determineFetchStrategy in class AbstractLoadPlanBuildingAssociationVisitationStrategyprotected FetchStrategy adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
FetchStrategy from what is specified
 for the given association attribute.attributeDefinition - The association attribute definition.fetchStrategy - The fetch strategy for attributeDefinition.FetchStrategy, possibly adjusted by this strategy.protected boolean isTooManyCollections()
isTooManyCollections in class AbstractLoadPlanBuildingAssociationVisitationStrategyCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.