public class FetchStyleLoadPlanBuildingAssociationVisitationStrategy extends AbstractLoadPlanBuildingAssociationVisitationStrategy
EntityReturn
or a CollectionReturn
.AbstractLoadPlanBuildingAssociationVisitationStrategy.PropertyPathStack
currentPropertyPath
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) |
void |
finishingEntityIdentifier(EntityIdentifierDefinition identifierDefinition)
Notification we are finishing walking an entity.
|
protected boolean |
handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition) |
protected boolean |
isTooManyCollections() |
void |
startingEntityIdentifier(EntityIdentifierDefinition identifierDefinition)
Notification we are starting to walk the identifier of an entity.
|
protected boolean |
supportsRootCollectionReturns() |
protected boolean |
supportsRootEntityReturns() |
associationKeyRegistered, currentDepth, currentSource, finish, finishingAttribute, finishingCollection, finishingCollectionElements, finishingCollectionIndex, finishingComposite, finishingEntity, foundAny, foundCircularAssociation, getQuerySpaces, getSessionFactory, handleCompositeAttribute, isDuplicateAssociationKey, registeredFetchSource, sessionFactory, start, startingAttribute, startingCollection, startingCollectionElements, startingCollectionIndex, startingComposite, startingEntity
public 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 AbstractLoadPlanBuildingAssociationVisitationStrategy
protected boolean supportsRootCollectionReturns()
supportsRootCollectionReturns
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
protected void addRootReturn(Return rootReturn)
addRootReturn
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
public void startingEntityIdentifier(EntityIdentifierDefinition identifierDefinition)
AssociationVisitationStrategy
startingEntityIdentifier
in interface AssociationVisitationStrategy
startingEntityIdentifier
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
identifierDefinition
- The identifier we are preparing to walkpublic void finishingEntityIdentifier(EntityIdentifierDefinition identifierDefinition)
AssociationVisitationStrategy
finishingEntityIdentifier
in interface AssociationVisitationStrategy
finishingEntityIdentifier
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
identifierDefinition
- The identifier we are finishing walking.protected boolean handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition)
handleAssociationAttribute
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
public LoadPlan buildLoadPlan()
LoadPlanBuildingAssociationVisitationStrategy
protected FetchStrategy determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)
determineFetchStrategy
in class AbstractLoadPlanBuildingAssociationVisitationStrategy
protected 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 AbstractLoadPlanBuildingAssociationVisitationStrategy
Copyright © 2021 JBoss by Red Hat. All rights reserved.