public class BidirectionalEntityReferenceImpl extends Object implements BidirectionalEntityReference
Constructor and Description |
---|
BidirectionalEntityReferenceImpl(ExpandingFetchSource fetchSource,
AssociationAttributeDefinition fetchedAttribute,
EntityReference targetEntityReference) |
Modifier and Type | Method and Description |
---|---|
BidirectionalEntityReference[] |
getBidirectionalEntityReferences()
Retrieve the bidirectional entity references owned by this fetch source.
|
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
Fetch[] |
getFetches()
Retrieve the fetches owned by this fetch source.
|
EntityIdentifierDescription |
getIdentifierDescription()
Get the description of this entity's identifier descriptor.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch source
|
String |
getQuerySpaceUid()
The query space UID returned using
BidirectionalEntityReference.getQuerySpaceUid() must
be the same as returned by #getTargetEntityReference()#getQuerySpaceUid() |
EntityReference |
getTargetEntityReference()
Get the targeted EntityReference
|
EntityReference |
resolveEntityReference()
Resolve the "current"
EntityReference , or null if none. |
public BidirectionalEntityReferenceImpl(ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, EntityReference targetEntityReference)
public EntityReference getTargetEntityReference()
BidirectionalEntityReference
getTargetEntityReference
in interface BidirectionalEntityReference
public PropertyPath getPropertyPath()
FetchSource
getPropertyPath
in interface FetchSource
public String getQuerySpaceUid()
BidirectionalEntityReference
BidirectionalEntityReference.getQuerySpaceUid()
must
be the same as returned by #getTargetEntityReference()#getQuerySpaceUid()
getQuerySpaceUid
in interface BidirectionalEntityReference
getQuerySpaceUid
in interface EntityReference
getQuerySpaceUid
in interface FetchSource
public Fetch[] getFetches()
FetchSource
getFetches
in interface FetchSource
public BidirectionalEntityReference[] getBidirectionalEntityReferences()
FetchSource
getBidirectionalEntityReferences
in interface FetchSource
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
Copyright © 2016 JBoss by Red Hat. All rights reserved.