public abstract class AbstractEntityReference extends AbstractExpandingFetchSource implements EntityReference
Constructor and Description |
---|
AbstractEntityReference(ExpandingEntityQuerySpace entityQuerySpace,
PropertyPath propertyPath) |
Modifier and Type | Method and Description |
---|---|
protected CompositeAttributeFetch |
createCompositeAttributeFetch(AttributeDefinition attributeDefinition,
ExpandingCompositeQuerySpace compositeQuerySpace) |
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityIdentifierDescription |
getIdentifierDescription()
Get the description of this entity's identifier descriptor.
|
EntityReference |
resolveEntityReference()
Resolve the "current"
EntityReference , or null if none. |
buildAnyAttributeFetch, buildBidirectionalEntityReference, buildCollectionAttributeFetch, buildCompositeAttributeFetch, buildEntityAttributeFetch, expandingQuerySpace, getBidirectionalEntityReferences, getFetches, getPropertyPath, getQuerySpaces, getQuerySpaceUid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQuerySpaceUid
getBidirectionalEntityReferences, getFetches, getPropertyPath
validateFetchPlan
public AbstractEntityReference(ExpandingEntityQuerySpace entityQuerySpace, PropertyPath propertyPath)
public EntityReference resolveEntityReference()
FetchSource
EntityReference
, or null if none.
If this object is an EntityReference
, then this object is returned;
otherwise, if this object is a Fetch
, then the nearest
EntityReference
will be resolved from its source, if possible.
If no EntityReference can be resolved, null is return.resolveEntityReference
in interface FetchSource
Fetch.getSource().
public EntityPersister getEntityPersister()
EntityReference
getEntityPersister
in interface EntityReference
public EntityIdentifierDescription getIdentifierDescription()
EntityReference
getIdentifierDescription
in interface EntityReference
protected CompositeAttributeFetch createCompositeAttributeFetch(AttributeDefinition attributeDefinition, ExpandingCompositeQuerySpace compositeQuerySpace)
createCompositeAttributeFetch
in class AbstractExpandingFetchSource
Copyright © 2019 JBoss by Red Hat. All rights reserved.