public abstract class AbstractLoadPlanBuilderStrategy extends Object implements LoadPlanBuilderStrategy, LoadPlanBuildingContext
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractLoadPlanBuilderStrategy.AbstractIdentifierAttributeCollector |
static class |
AbstractLoadPlanBuilderStrategy.CircularFetch |
protected static class |
AbstractLoadPlanBuilderStrategy.EncapsulatedIdentifierAttributeCollector |
static interface |
AbstractLoadPlanBuilderStrategy.FetchStackAware |
static class |
AbstractLoadPlanBuilderStrategy.MDCStack |
protected static class |
AbstractLoadPlanBuilderStrategy.NonEncapsulatedIdentifierAttributeCollector |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoadPlanBuilderStrategy(SessionFactoryImplementor sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addRootReturn(Return rootReturn) |
void |
associationKeyRegistered(AssociationKey associationKey) |
protected abstract CollectionReturn |
buildRootCollectionReturn(CollectionDefinition collectionDefinition) |
protected abstract EntityReturn |
buildRootEntityReturn(EntityDefinition entityDefinition) |
protected int |
currentDepth() |
protected FetchOwner |
currentFetchOwner() |
protected abstract FetchStrategy |
determineFetchPlan(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 collectionIndexDefinition)
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) |
SessionFactoryImplementor |
getSessionFactory()
Access to the SessionFactory
|
protected boolean |
handleAssociationAttribute(AssociationAttributeDefinition attributeDefinition) |
protected boolean |
handleCompositeAttribute(CompositionDefinition attributeDefinition) |
boolean |
isDuplicateAssociationKey(AssociationKey associationKey) |
protected boolean |
isTooManyCollections() |
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 collectionIndexDefinition)
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, waitbuildLoadPlanregisteredFetchSourceprotected AbstractLoadPlanBuilderStrategy(SessionFactoryImplementor sessionFactory)
public SessionFactoryImplementor sessionFactory()
protected FetchOwner currentFetchOwner()
public void start()
AssociationVisitationStrategystart in interface AssociationVisitationStrategypublic void finish()
AssociationVisitationStrategyfinish in interface AssociationVisitationStrategypublic void startingEntity(EntityDefinition entityDefinition)
AssociationVisitationStrategystartingEntity in interface AssociationVisitationStrategyentityDefinition - The entity we are preparing to walkprotected boolean supportsRootEntityReturns()
protected abstract void addRootReturn(Return rootReturn)
public 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 startingCollectionIndex(CollectionIndexDefinition collectionIndexDefinition)
AssociationVisitationStrategyAssociationVisitationStrategy.startingEntity(org.hibernate.persister.walking.spi.EntityDefinition)startingCollectionIndex in interface AssociationVisitationStrategycollectionIndexDefinition - The collection index we are preparing to walk.public void finishingCollectionIndex(CollectionIndexDefinition collectionIndexDefinition)
AssociationVisitationStrategyfinishingCollectionIndex in interface AssociationVisitationStrategycollectionIndexDefinition - 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 finishingCollection(CollectionDefinition collectionDefinition)
AssociationVisitationStrategyfinishingCollection in interface AssociationVisitationStrategycollectionDefinition - The collection 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 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 determineFetchPlan(AssociationAttributeDefinition attributeDefinition)
protected int currentDepth()
protected boolean isTooManyCollections()
protected abstract EntityReturn buildRootEntityReturn(EntityDefinition entityDefinition)
protected abstract CollectionReturn buildRootCollectionReturn(CollectionDefinition collectionDefinition)
public SessionFactoryImplementor getSessionFactory()
LoadPlanBuildingContextgetSessionFactory in interface LoadPlanBuildingContextCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.