So this strategy defines a AssociationVisitationStrategy that walks the metamodel-defined associations after
which is can then build a LoadPlan based on the visited associations. determineFetchStrategy is the
main decision point that determines if an association is walked.
org.hibernate.loader.plan.build.spi.LoadPlanBuildingAssociationVisitationStrategy , org.hibernate.persister.walking.spi.AssociationVisitationStrategy
| Modifier and Type | Class and Description |
|---|---|
| public static class | AbstractLoadPlanBuildingAssociationVisitationStrategy.PropertyPathStack
Maintains stack information for the property paths we are processing for logging purposes. |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayDeque | |
| protected PropertyPath | |
| private Map | |
| private final ArrayDeque | |
| private static final Logger | |
| private static final String | |
| private final AbstractLoadPlanBuildingAssociationVisitationStrategy. | |
| private final QuerySpacesImpl | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Access | Constructor and Description |
|---|---|
| protected | AbstractLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor
The session factory. sessionFactory)
Deprecated
as a consequence of
Constructs an AbstractLoadPlanBuildingAssociationVisitationStrategy.
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public void | |
| private void | checkedPoppedCollection(CollectionReference poppedCollectionReference, CollectionDefinition collectionDefinition)
|
| private void | |
| private CollectionReference | |
| protected int | |
| protected ExpandingFetchSource | |
| protected abstract FetchStrategy | |
| public void | finish()
Implements org. |
| public void | finishingAttribute(AttributeDefinition
The attribute we are done walking attributeDefinition)Implements org. |
| public void | finishingCollection(CollectionDefinition
The collection we are finishing collectionDefinition)Implements org. |
| public void | finishingCollectionElements(CollectionElementDefinition
The collection element we are finishing elementDefinition)Implements org. |
| public void | finishingCollectionIndex(CollectionIndexDefinition
The collection index we are finishing indexDefinition)Implements org. |
| public void | finishingComposite(CompositionDefinition
The composite we are finishing compositionDefinition)Implements org. |
| public void | finishingEntity(EntityDefinition
The entity we are finishing walking. entityDefinition)Implements org. |
| public void | finishingEntityIdentifier(EntityIdentifierDefinition
The identifier we are finishing walking. entityIdentifierDefinition)Implements org. |
| public void | foundAny(AnyMappingDefinition anyDefinition)
Implements org. |
| public void | |
| public ExpandingQuerySpaces | |
| public SessionFactoryImplementor | getSessionFactory()
Implements org.
Deprecated
as a consequence of
Access to the SessionFactory
SessionFactoryImplementor being deprecated.
|
| protected boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| private CollectionReference | |
| private ExpandingFetchSource | |
| private void | |
| private void | |
| public FetchSource | |
| protected SessionFactoryImplementor | Returns: The session factory.
Deprecated
as a consequence of
Gets the session factory.
SessionFactoryImplementor being deprecated.
|
| public void | start()
Implements org. |
| public boolean | startingAttribute(AttributeDefinition
The attribute we are preparing to walk. attributeDefinition)Implements org. |
| public void | startingCollection(CollectionDefinition
The collection we are preparing to walk collectionDefinition)Implements org. |
| public void | startingCollectionElements(CollectionElementDefinition
The collection element we are preparing to walk.. elementDefinition)Implements org. |
| public void | startingCollectionIndex(CollectionIndexDefinition
The collection index we are preparing to walk. indexDefinition)Implements org. |
| public void | startingComposite(CompositionDefinition
The composite we are preparing to walk. compositionDefinition)Implements org. |
| public void | startingEntity(EntityDefinition
The entity we are preparing to walk entityDefinition)Implements org. |
| public void | startingEntityIdentifier(EntityIdentifierDefinition
The identifier we are preparing to walk entityIdentifierDefinition)Implements org. |
| protected boolean | |
| protected boolean |
| collectionReferenceStack | back to summary |
|---|---|
| private ArrayDeque<CollectionReference> collectionReferenceStack | |
| currentPropertyPath | back to summary |
|---|---|
| protected PropertyPath currentPropertyPath | |
| fetchedAssociationKeySourceMap | back to summary |
|---|---|
| private Map<AssociationKey, FetchSource> fetchedAssociationKeySourceMap | |
| fetchSourceStack | back to summary |
|---|---|
| private final ArrayDeque<ExpandingFetchSource> fetchSourceStack | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| MDC_KEY | back to summary |
|---|---|
| private static final String MDC_KEY | |
| propertyPathStack | back to summary |
|---|---|
| private final AbstractLoadPlanBuildingAssociationVisitationStrategy. | |
| querySpaces | back to summary |
|---|---|
| private final QuerySpacesImpl querySpaces | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of | |
| AbstractLoadPlanBuildingAssociationVisitationStrategy | back to summary |
|---|---|
| protected AbstractLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Constructs an AbstractLoadPlanBuildingAssociationVisitationStrategy.
| |
| addRootReturn | back to summary |
|---|---|
| protected abstract void addRootReturn(Return rootReturn) | |
| associationKeyRegistered | back to summary |
|---|---|
| public void associationKeyRegistered(AssociationKey associationKey) Implements org.
| |
| checkedPoppedCollection | back to summary |
|---|---|
| private void checkedPoppedCollection(CollectionReference poppedCollectionReference, CollectionDefinition collectionDefinition) | |
| checkPoppedEntity | back to summary |
|---|---|
| private void checkPoppedEntity(ExpandingFetchSource fetchSource, EntityDefinition entityDefinition) | |
| currentCollection | back to summary |
|---|---|
| private CollectionReference currentCollection() | |
| currentDepth | back to summary |
|---|---|
| protected int currentDepth() | |
| currentSource | back to summary |
|---|---|
| protected ExpandingFetchSource currentSource() | |
| determineFetchStrategy | back to summary |
|---|---|
| protected abstract FetchStrategy determineFetchStrategy(AssociationAttributeDefinition attributeDefinition) | |
| finish | back to summary |
|---|---|
| public void finish() Implements org. Doc from org. Notification we are finished visitation.
| |
| finishingAttribute | back to summary |
|---|---|
| public void finishingAttribute(AttributeDefinition attributeDefinition) Implements org. Doc from org. Notification that we are finishing walking an attribute.
| |
| finishingCollection | back to summary |
|---|---|
| public void finishingCollection(CollectionDefinition collectionDefinition) Implements org. Doc from org. Notification that we are finishing walking a collection
| |
| finishingCollectionElements | back to summary |
|---|---|
| public void finishingCollectionElements(CollectionElementDefinition elementDefinition) Implements org. Doc from org. Notification that we are finishing walking the elements of a collection (List/Map).
| |
| finishingCollectionIndex | back to summary |
|---|---|
| public void finishingCollectionIndex(CollectionIndexDefinition indexDefinition) Implements org. Doc from org. Notification that we are finishing walking the index of a collection (List/Map).
| |
| finishingComposite | back to summary |
|---|---|
| public void finishingComposite(CompositionDefinition compositionDefinition) Implements org. Doc from org. Notification that we are done walking a composite. Called on the back-end of the situations listed
on
| |
| finishingEntity | back to summary |
|---|---|
| public void finishingEntity(EntityDefinition entityDefinition) Implements org. Doc from org. Notification we are finishing walking an entity.
| |
| finishingEntityIdentifier | back to summary |
|---|---|
| public void finishingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition) Implements org. Doc from org. Notification we are finishing walking an entity.
| |
| foundAny | back to summary |
|---|---|
| public void foundAny(AnyMappingDefinition anyDefinition) Implements org.
| |
| foundCircularAssociation | back to summary |
|---|---|
| public void foundCircularAssociation(AssociationAttributeDefinition attributeDefinition) Implements org.
| |
| getQuerySpaces | back to summary |
|---|---|
| public ExpandingQuerySpaces getQuerySpaces() Implements org.
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Implements org. Doc from org. Deprecated as a consequence of Access to the SessionFactory
| |
| handleAssociationAttribute | back to summary |
|---|---|
| protected boolean handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition) | |
| handleCompositeAttribute | back to summary |
|---|---|
| protected boolean handleCompositeAttribute(AttributeDefinition attributeDefinition) | |
| isDuplicateAssociationKey | back to summary |
|---|---|
| public boolean isDuplicateAssociationKey(AssociationKey associationKey) Implements org.
| |
| isTooManyCollections | back to summary |
|---|---|
| protected boolean isTooManyCollections() | |
| popFromCollectionStack | back to summary |
|---|---|
| private CollectionReference popFromCollectionStack() | |
| popFromStack | back to summary |
|---|---|
| private ExpandingFetchSource popFromStack() | |
| pushToCollectionStack | back to summary |
|---|---|
| private void pushToCollectionStack(CollectionReference collectionReference) | |
| pushToStack | back to summary |
|---|---|
| private void pushToStack(ExpandingFetchSource fetchSource) | |
| registeredFetchSource | back to summary |
|---|---|
| public FetchSource registeredFetchSource(AssociationKey associationKey) Implements org.
| |
| sessionFactory | back to summary |
|---|---|
| protected SessionFactoryImplementor sessionFactory()
Deprecated as a consequence of Gets the session factory.
| |
| start | back to summary |
|---|---|
| public void start() Implements org. Doc from org. Notification we are preparing to start visitation.
| |
| startingAttribute | back to summary |
|---|---|
| public boolean startingAttribute(AttributeDefinition attributeDefinition) Implements org. Doc from org. Notification that we are preparing to walk an attribute. May be followed by calls to
| |
| startingCollection | back to summary |
|---|---|
| public void startingCollection(CollectionDefinition collectionDefinition) Implements org. Doc from org. Notification that we are starting to walk a collection
| |
| startingCollectionElements | back to summary |
|---|---|
| public void startingCollectionElements(CollectionElementDefinition elementDefinition) Implements org. Doc from org. Notification that we are starting to look at the element definition for the collection. If the collection
elements are entities this will be followed up by a call to
| |
| startingCollectionIndex | back to summary |
|---|---|
| public void startingCollectionIndex(CollectionIndexDefinition indexDefinition) Implements org. Doc from org. Notification that we are starting to walk the index of a collection (List/Map). In the case of a Map,
if the indices (the keys) are entities this will be followed up by a call to
| |
| startingComposite | back to summary |
|---|---|
| public void startingComposite(CompositionDefinition compositionDefinition) Implements org. Doc from org. Notification that we are preparing to walk a composite. This is called only for:
| |
| startingEntity | back to summary |
|---|---|
| public void startingEntity(EntityDefinition entityDefinition) Implements org. Doc from org. Notification we are starting to walk an entity.
| |
| startingEntityIdentifier | back to summary |
|---|---|
| public void startingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition) Implements org. Doc from org. Notification we are starting to walk the identifier of an entity.
| |
| supportsRootCollectionReturns | back to summary |
|---|---|
| protected boolean supportsRootCollectionReturns() | |
| supportsRootEntityReturns | back to summary |
|---|---|
| protected boolean supportsRootEntityReturns() | |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayDeque |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public void | |
| public void |
| pathStack | back to summary |
|---|---|
| private ArrayDeque<PropertyPath> pathStack | |
| PropertyPathStack | back to summary |
|---|---|
| public PropertyPathStack() | |
| extractFullPath | back to summary |
|---|---|
| private String extractFullPath(PropertyPath path) | |
| pop | back to summary |
|---|---|
| public void pop() | |
| push | back to summary |
|---|---|
| public void push(PropertyPath path) | |