public abstract class AbstractLoadPlanBuildingAssociationVisitationStrategy extends Object implements LoadPlanBuildingAssociationVisitationStrategy, LoadPlanBuildingContext
determineFetchStrategy(org.hibernate.persister.walking.spi.AssociationAttributeDefinition) Is the
main decision point| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractLoadPlanBuildingAssociationVisitationStrategy.FetchStackAware |
static class |
AbstractLoadPlanBuildingAssociationVisitationStrategy.MDCStack
Used as the MDC object for logging purposes.
|
| Modifier and Type | Field and Description |
|---|---|
protected PropertyPath |
currentPropertyPath |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addRootReturn(Return rootReturn) |
void |
associationKeyRegistered(AssociationKey associationKey) |
protected int |
currentDepth() |
protected abstract FetchStrategy |
determineFetchStrategy(AssociationAttributeDefinition attributeDefinition) |
void |
finish()
Notification we are finished visitation.
|
void |
finishingAttribute(AttributeDefinition attributeDefinition)
Notification that we are finishing walking an attribute.
|
void |
finishingCollection(CollectionDefinition collectionDefinition)
Notification that we are finishing walking a collection
|
void |
finishingCollectionElements(CollectionElementDefinition elementDefinition)
Notification that we are finishing walking the elements of a collection (List/Map).
|
void |
finishingCollectionIndex(CollectionIndexDefinition indexDefinition)
Notification that we are finishing walking the index of a collection (List/Map).
|
void |
finishingComposite(CompositionDefinition compositionDefinition)
Notification that we are done walking a composite.
|
void |
finishingEntity(EntityDefinition entityDefinition)
Notification we are finishing walking an entity.
|
void |
finishingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition)
Notification we are finishing walking an entity.
|
void |
foundAny(AssociationAttributeDefinition attributeDefinition,
AnyMappingDefinition anyDefinition) |
void |
foundCircularAssociation(AssociationAttributeDefinition attributeDefinition) |
ExpandingQuerySpaces |
getQuerySpaces() |
SessionFactoryImplementor |
getSessionFactory()
Access to the SessionFactory
|
protected boolean |
handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition) |
protected boolean |
handleCompositeAttribute(CompositionDefinition attributeDefinition) |
boolean |
isDuplicateAssociationKey(AssociationKey associationKey) |
protected boolean |
isTooManyCollections() |
FetchSource |
registeredFetchSource(AssociationKey associationKey) |
SessionFactoryImplementor |
sessionFactory() |
void |
start()
Notification we are preparing to start visitation.
|
boolean |
startingAttribute(AttributeDefinition attributeDefinition)
Notification that we are preparing to walk an attribute.
|
void |
startingCollection(CollectionDefinition collectionDefinition)
Notification that we are starting to walk a collection
|
void |
startingCollectionElements(CollectionElementDefinition elementDefinition)
Notification that we are starting to look at the element definition for the collection.
|
void |
startingCollectionIndex(CollectionIndexDefinition indexDefinition)
Notification that we are starting to walk the index of a collection (List/Map).
|
void |
startingComposite(CompositionDefinition compositionDefinition)
Notification that we are preparing to walk a composite.
|
void |
startingEntity(EntityDefinition entityDefinition)
Notification we are starting to walk an entity.
|
void |
startingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition)
Notification we are starting to walk the identifier of an entity.
|
protected boolean |
supportsRootCollectionReturns() |
protected boolean |
supportsRootEntityReturns() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildLoadPlanprotected PropertyPath currentPropertyPath
protected AbstractLoadPlanBuildingAssociationVisitationStrategy(SessionFactoryImplementor sessionFactory)
public SessionFactoryImplementor sessionFactory()
public ExpandingQuerySpaces getQuerySpaces()
getQuerySpaces in interface LoadPlanBuildingContextpublic void start()
AssociationVisitationStrategystart in interface AssociationVisitationStrategypublic void finish()
AssociationVisitationStrategyfinish in interface AssociationVisitationStrategyprotected abstract void addRootReturn(Return rootReturn)
protected boolean supportsRootEntityReturns()
public void startingEntity(EntityDefinition entityDefinition)
AssociationVisitationStrategystartingEntity in interface AssociationVisitationStrategyentityDefinition - The entity we are preparing to walkpublic void finishingEntity(EntityDefinition entityDefinition)
AssociationVisitationStrategyfinishingEntity in interface AssociationVisitationStrategyentityDefinition - The entity we are finishing walking.public void startingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition)
AssociationVisitationStrategystartingEntityIdentifier in interface AssociationVisitationStrategyentityIdentifierDefinition - The identifier we are preparing to walkpublic void finishingEntityIdentifier(EntityIdentifierDefinition entityIdentifierDefinition)
AssociationVisitationStrategyfinishingEntityIdentifier in interface AssociationVisitationStrategyentityIdentifierDefinition - The identifier we are finishing walking.public void startingCollection(CollectionDefinition collectionDefinition)
AssociationVisitationStrategystartingCollection in interface AssociationVisitationStrategycollectionDefinition - The collection we are preparing to walkprotected boolean supportsRootCollectionReturns()
public void finishingCollection(CollectionDefinition collectionDefinition)
AssociationVisitationStrategyfinishingCollection in interface AssociationVisitationStrategycollectionDefinition - The collection we are finishingpublic void startingCollectionIndex(CollectionIndexDefinition indexDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingEntity(org.hibernate.persister.walking.spi.EntityDefinition)startingCollectionIndex in interface AssociationVisitationStrategyindexDefinition - The collection index we are preparing to walk.public void finishingCollectionIndex(CollectionIndexDefinition indexDefinition)
AssociationVisitationStrategyfinishingCollectionIndex in interface AssociationVisitationStrategyindexDefinition - The collection index we are finishingpublic void startingCollectionElements(CollectionElementDefinition elementDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingEntity(org.hibernate.persister.walking.spi.EntityDefinition)startingCollectionElements in interface AssociationVisitationStrategyelementDefinition - The collection element we are preparing to walk..public void finishingCollectionElements(CollectionElementDefinition elementDefinition)
AssociationVisitationStrategyfinishingCollectionElements in interface AssociationVisitationStrategyelementDefinition - The collection element we are finishingpublic void startingComposite(CompositionDefinition compositionDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingEntityIdentifier(org.hibernate.persister.walking.spi.EntityIdentifierDefinition) if you need to hook into walking the top-level cid composite.
startingComposite in interface AssociationVisitationStrategycompositionDefinition - The composite we are preparing to walk.public void finishingComposite(CompositionDefinition compositionDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingComposite(org.hibernate.persister.walking.spi.CompositionDefinition)finishingComposite in interface AssociationVisitationStrategycompositionDefinition - The composite we are finishingpublic boolean startingAttribute(AttributeDefinition attributeDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingEntity(org.hibernate.persister.walking.spi.EntityDefinition)
(one-to-one, many-to-one), AssociationVisitationStrategy.startingComposite(org.hibernate.persister.walking.spi.CompositionDefinition), or AssociationVisitationStrategy.startingCollection(org.hibernate.persister.walking.spi.CollectionDefinition).startingAttribute in interface AssociationVisitationStrategyattributeDefinition - The attribute we are preparing to walk.true if the walking should continue; false if walking should stop.public void finishingAttribute(AttributeDefinition attributeDefinition)
AssociationVisitationStrategyfinishingAttribute in interface AssociationVisitationStrategyattributeDefinition - The attribute we are done walkingpublic boolean isDuplicateAssociationKey(AssociationKey associationKey)
isDuplicateAssociationKey in interface AssociationVisitationStrategypublic void associationKeyRegistered(AssociationKey associationKey)
associationKeyRegistered in interface AssociationVisitationStrategypublic FetchSource registeredFetchSource(AssociationKey associationKey)
registeredFetchSource in interface LoadPlanBuildingContextregisteredFetchSource in interface AssociationVisitationStrategypublic void foundCircularAssociation(AssociationAttributeDefinition attributeDefinition)
foundCircularAssociation in interface AssociationVisitationStrategypublic void foundAny(AssociationAttributeDefinition attributeDefinition, AnyMappingDefinition anyDefinition)
foundAny in interface AssociationVisitationStrategyprotected boolean handleCompositeAttribute(CompositionDefinition attributeDefinition)
protected boolean handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition)
protected abstract FetchStrategy determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)
protected int currentDepth()
protected boolean isTooManyCollections()
public SessionFactoryImplementor getSessionFactory()
LoadPlanBuildingContextgetSessionFactory in interface LoadPlanBuildingContextCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.