类 AbstractCollectionReference
- java.lang.Object
-
- org.hibernate.loader.plan.build.internal.returns.AbstractCollectionReference
-
- 所有已实现的接口:
CollectionReference
public abstract class AbstractCollectionReference extends Object implements CollectionReference
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractCollectionReference(ExpandingCollectionQuerySpace collectionQuerySpace, PropertyPath propertyPath, boolean shouldIncludeJoins)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanallowElementJoin()Should a collection element join be allowed?booleanallowIndexJoin()Should a collection index join be allowed?CollectionPersistergetCollectionPersister()Retrieves the CollectionPersister describing the collection associated with this CollectionReference.CollectionFetchableElementgetElementGraph()Retrieve the metadata about the elements of this collection *as a FetchSource*.CollectionFetchableIndexgetIndexGraph()Retrieve the metadata about the index of this collection *as a FetchSource*.PropertyPathgetPropertyPath()Retrieve the PropertyPath to this reference.StringgetQuerySpaceUid()Obtain the UID of the QuerySpace (specifically aCollectionQuerySpace) that this CollectionReference refers to.
-
-
-
构造器详细资料
-
AbstractCollectionReference
protected AbstractCollectionReference(ExpandingCollectionQuerySpace collectionQuerySpace, PropertyPath propertyPath, boolean shouldIncludeJoins)
-
-
方法详细资料
-
allowElementJoin
public boolean allowElementJoin()
从接口复制的说明:CollectionReferenceShould a collection element join be allowed? Returningtrueindicates that an element join can safely be added.- 指定者:
allowElementJoin在接口中CollectionReference- 返回:
- true, if a collection index join is allowed.
-
allowIndexJoin
public boolean allowIndexJoin()
从接口复制的说明:CollectionReferenceShould a collection index join be allowed? Returningtrueindicates that an index join can safely be added.- 指定者:
allowIndexJoin在接口中CollectionReference- 返回:
- true, if a collection index join is allowed.
-
getQuerySpaceUid
public String getQuerySpaceUid()
从接口复制的说明:CollectionReferenceObtain the UID of the QuerySpace (specifically aCollectionQuerySpace) that this CollectionReference refers to.- 指定者:
getQuerySpaceUid在接口中CollectionReference- 返回:
- The UID
-
getCollectionPersister
public CollectionPersister getCollectionPersister()
从接口复制的说明:CollectionReferenceRetrieves the CollectionPersister describing the collection associated with this CollectionReference.- 指定者:
getCollectionPersister在接口中CollectionReference- 返回:
- The CollectionPersister.
-
getIndexGraph
public CollectionFetchableIndex getIndexGraph()
从接口复制的说明:CollectionReferenceRetrieve the metadata about the index of this collection *as a FetchSource*. Will returnnullwhen:- the collection is not indexed
- the index is not a composite, entity, or "any" (cannot act as a FetchSource)
- 指定者:
getIndexGraph在接口中CollectionReference- 返回:
- The collection index metadata as a FetchSource, or
null.
-
getElementGraph
public CollectionFetchableElement getElementGraph()
从接口复制的说明:CollectionReferenceRetrieve the metadata about the elements of this collection *as a FetchSource*. Will returnnullwhen the element is not a composite, entity, or "any" (cannot act as a FetchSource). Works only for map keys, since a List index cannot be anything other than an int which cannot be a FetchSource.- 指定者:
getElementGraph在接口中CollectionReference- 返回:
- The collection element metadata as a FetchSource, or
null.
-
getPropertyPath
public PropertyPath getPropertyPath()
从接口复制的说明:CollectionReferenceRetrieve the PropertyPath to this reference.- 指定者:
getPropertyPath在接口中CollectionReference- 返回:
- The PropertyPath
-
-