public class EntityElementGraph extends AbstractFetchOwner implements FetchableCollectionElement, EntityReference
FetchOwner
for a collection element that is
an entity association type.NO_FETCHES
Constructor and Description |
---|
EntityElementGraph(EntityElementGraph original,
CopyContext copyContext) |
EntityElementGraph(SessionFactoryImplementor sessionFactory,
CollectionReference collectionReference,
PropertyPath collectionPath)
Constructs an
EntityElementGraph . |
Modifier and Type | Method and Description |
---|---|
CollectionReference |
getCollectionReference()
Returns the collection reference.
|
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityReference |
getEntityReference() |
protected FetchOwnerDelegate |
getFetchOwnerDelegate()
Abstract method returning the delegate for obtaining details about an owned fetch.
|
IdentifierDescription |
getIdentifierDescription() |
LockMode |
getLockMode()
Retrieve the lock mode associated with this return.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch owner
|
void |
injectIdentifierDescription(IdentifierDescription identifierDescription) |
EntityElementGraph |
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.
|
String |
toString() |
void |
validateFetchPlan(FetchStrategy fetchStrategy)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildCollectionFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullable
sessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFetch, buildCollectionFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullable
public EntityElementGraph(SessionFactoryImplementor sessionFactory, CollectionReference collectionReference, PropertyPath collectionPath)
EntityElementGraph
.sessionFactory
- - the session factory.collectionReference
- - the collection reference.collectionPath
- - the PropertyPath
for the collection.public EntityElementGraph(EntityElementGraph original, CopyContext copyContext)
public LockMode getLockMode()
EntityReference
getLockMode
in interface EntityReference
getLockMode
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public EntityReference getEntityReference()
getEntityReference
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public EntityPersister getEntityPersister()
EntityReference
getEntityPersister
in interface EntityReference
getEntityPersister
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public IdentifierDescription getIdentifierDescription()
getIdentifierDescription
in interface EntityReference
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 void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription
in interface IdentifierDescriptionInjectable
public EntityElementGraph makeCopy(CopyContext copyContext)
CopyableReturn
makeCopy
in interface CopyableReturn
makeCopy
in interface FetchableCollectionElement
public CollectionReference getCollectionReference()
FetchableCollectionElement
getCollectionReference
in interface FetchableCollectionElement
protected FetchOwnerDelegate getFetchOwnerDelegate()
AbstractFetchOwner
getFetchOwnerDelegate
in class AbstractFetchOwner
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.