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 |
|---|---|
EntityFetch |
buildEntityFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
CollectionReference |
getCollectionReference()
Returns the collection reference.
|
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityReference |
getEntityReference() |
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.
|
SqlSelectFragmentResolver |
toSqlSelectFragmentResolver() |
String |
toString() |
void |
validateFetchPlan(FetchStrategy fetchStrategy,
AttributeDefinition attributeDefinition)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildAnyFetch, buildCollectionFetch, buildCompositeFetch, getFetches, getType, isNullable, toSqlSelectFragmentssessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFetch, buildAnyFetch, buildCollectionFetch, buildCompositeFetch, getFetches, getType, isNullable, toSqlSelectFragmentspublic 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()
EntityReferencegetLockMode in interface ResultSetProcessingContext.EntityKeyResolutionContextgetLockMode in interface EntityReferencepublic EntityReference getEntityReference()
getEntityReference in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityPersister getEntityPersister()
EntityReferencegetEntityPersister in interface ResultSetProcessingContext.EntityKeyResolutionContextgetEntityPersister in interface EntityReferencepublic IdentifierDescription getIdentifierDescription()
getIdentifierDescription in interface EntityReferencepublic void validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)
FetchOwnervalidateFetchPlan in interface FetchOwnerfetchStrategy - The type of fetch to validateattributeDefinition - The attribute to be fetchedpublic EntityPersister retrieveFetchSourcePersister()
FetchOwnerretrieveFetchSourcePersister in interface FetchOwnerpublic PropertyPath getPropertyPath()
FetchOwnergetPropertyPath in interface FetchOwnerpublic void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription in interface IdentifierDescriptionInjectablepublic EntityElementGraph makeCopy(CopyContext copyContext)
CopyableReturnmakeCopy in interface CopyableReturnmakeCopy in interface FetchableCollectionElementpublic CollectionReference getCollectionReference()
FetchableCollectionElementgetCollectionReference in interface FetchableCollectionElementpublic SqlSelectFragmentResolver toSqlSelectFragmentResolver()
toSqlSelectFragmentResolver in interface FetchOwnerpublic EntityFetch buildEntityFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildEntityFetch in interface FetchOwnerbuildEntityFetch in class AbstractFetchOwnerCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.