类 BidirectionalEntityReferenceImpl
- java.lang.Object
-
- org.hibernate.loader.plan.build.internal.returns.BidirectionalEntityReferenceImpl
-
- 所有已实现的接口:
BidirectionalEntityReference,EntityReference,FetchSource
public class BidirectionalEntityReferenceImpl extends Object implements BidirectionalEntityReference
Represents an entity fetch that is bi-directionally join fetched. For example, consider an Order entity whose primary key is partially made up of the Customer entity to which it is associated. When we join fetch Customer -> Order(s) and then Order -> Customer we have a bi-directional fetch. This class would be used to represent the Order -> Customer part of that link.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 BidirectionalEntityReferenceImpl(ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, EntityReference targetEntityReference)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BidirectionalEntityReference[]getBidirectionalEntityReferences()Retrieve the bidirectional entity references owned by this fetch source.EntityPersistergetEntityPersister()Retrieves the EntityPersister describing the entity associated with this Return.Fetch[]getFetches()Retrieve the fetches owned by this fetch source.EntityIdentifierDescriptiongetIdentifierDescription()Get the description of this entity's identifier descriptor.PropertyPathgetPropertyPath()Get the property path to this fetch sourceStringgetQuerySpaceUid()The query space UID returned usingBidirectionalEntityReference.getQuerySpaceUid()must be the same as returned by {@link #getTargetEntityReference()#getQuerySpaceUid()}EntityReferencegetTargetEntityReference()Get the targeted EntityReferenceEntityReferenceresolveEntityReference()Resolve the "current"EntityReference, or null if none.
-
-
-
构造器详细资料
-
BidirectionalEntityReferenceImpl
public BidirectionalEntityReferenceImpl(ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, EntityReference targetEntityReference)
-
-
方法详细资料
-
getTargetEntityReference
public EntityReference getTargetEntityReference()
从接口复制的说明:BidirectionalEntityReferenceGet the targeted EntityReference- 指定者:
getTargetEntityReference在接口中BidirectionalEntityReference- 返回:
- The targeted EntityReference
-
getPropertyPath
public PropertyPath getPropertyPath()
从接口复制的说明:FetchSourceGet the property path to this fetch source- 指定者:
getPropertyPath在接口中FetchSource- 返回:
- The property path
-
getQuerySpaceUid
public String getQuerySpaceUid()
从接口复制的说明:BidirectionalEntityReferenceThe query space UID returned usingBidirectionalEntityReference.getQuerySpaceUid()must be the same as returned by {@link #getTargetEntityReference()#getQuerySpaceUid()}- 指定者:
getQuerySpaceUid在接口中BidirectionalEntityReference- 指定者:
getQuerySpaceUid在接口中EntityReference- 指定者:
getQuerySpaceUid在接口中FetchSource- 返回:
- The query space UID.
-
getFetches
public Fetch[] getFetches()
从接口复制的说明:FetchSourceRetrieve the fetches owned by this fetch source.- 指定者:
getFetches在接口中FetchSource- 返回:
- The owned fetches.
-
getBidirectionalEntityReferences
public BidirectionalEntityReference[] getBidirectionalEntityReferences()
从接口复制的说明:FetchSourceRetrieve the bidirectional entity references owned by this fetch source.- 指定者:
getBidirectionalEntityReferences在接口中FetchSource- 返回:
- The owned bidirectional entity references.
-
resolveEntityReference
public EntityReference resolveEntityReference()
从接口复制的说明:FetchSourceResolve the "current"EntityReference, or null if none. If this object is anEntityReference, then this object is returned; otherwise, if this object is aFetch, then the nearestEntityReferencewill be resolved from its source, if possible. If no EntityReference can be resolved, null is return.- 指定者:
resolveEntityReference在接口中FetchSource- 返回:
- the "current" EntityReference or null if none. .
-
getEntityPersister
public EntityPersister getEntityPersister()
从接口复制的说明:EntityReferenceRetrieves the EntityPersister describing the entity associated with this Return.- 指定者:
getEntityPersister在接口中EntityReference- 返回:
- The EntityPersister.
-
getIdentifierDescription
public EntityIdentifierDescription getIdentifierDescription()
从接口复制的说明:EntityReferenceGet the description of this entity's identifier descriptor.- 指定者:
getIdentifierDescription在接口中EntityReference- 返回:
- The identifier description.
-
-