public class CompositeElementGraph extends AbstractFetchOwner implements FetchableCollectionElement
FetchOwner
for a composite collection element.NO_FETCHES
Constructor and Description |
---|
CompositeElementGraph(CompositeElementGraph original,
CopyContext copyContext) |
CompositeElementGraph(SessionFactoryImplementor sessionFactory,
CollectionReference collectionReference,
PropertyPath collectionPath)
Constructs a
CompositeElementGraph . |
Modifier and Type | Method and Description |
---|---|
CollectionFetch |
buildCollectionFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
CollectionReference |
getCollectionReference()
Returns the collection reference.
|
protected FetchOwnerDelegate |
getFetchOwnerDelegate()
Abstract method returning the delegate for obtaining details about an owned fetch.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch owner
|
CompositeElementGraph |
makeCopy(CopyContext copyContext)
Makes a deep copy.
|
EntityPersister |
retrieveFetchSourcePersister()
Retrieve the EntityPersister that is the base for any property references in the fetches it owns.
|
void |
validateFetchPlan(FetchStrategy fetchStrategy)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullable
sessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullable
public CompositeElementGraph(SessionFactoryImplementor sessionFactory, CollectionReference collectionReference, PropertyPath collectionPath)
CompositeElementGraph
.sessionFactory
- - the session factory.collectionReference
- - the collection reference.collectionPath
- - the PropertyPath
for the collection.public CompositeElementGraph(CompositeElementGraph original, CopyContext copyContext)
public CollectionReference getCollectionReference()
FetchableCollectionElement
getCollectionReference
in interface FetchableCollectionElement
public void validateFetchPlan(FetchStrategy fetchStrategy)
FetchOwner
validateFetchPlan
in interface FetchOwner
fetchStrategy
- The pla to validatepublic EntityPersister retrieveFetchSourcePersister()
FetchOwner
retrieveFetchSourcePersister
in interface FetchOwner
public PropertyPath getPropertyPath()
FetchOwner
getPropertyPath
in interface FetchOwner
public CompositeElementGraph makeCopy(CopyContext copyContext)
CopyableReturn
makeCopy
in interface CopyableReturn
makeCopy
in interface FetchableCollectionElement
protected FetchOwnerDelegate getFetchOwnerDelegate()
AbstractFetchOwner
getFetchOwnerDelegate
in class AbstractFetchOwner
public CollectionFetch buildCollectionFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildCollectionFetch
in interface FetchOwner
buildCollectionFetch
in class AbstractFetchOwner
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.