接口 CollectionReference
-
- 所有已知子接口:
CollectionAttributeFetch,CollectionReturn
public interface CollectionReferenceRepresents a reference to a persistent collection either as a Return or as aCollectionAttributeFetch.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
getQuerySpaceUid
String getQuerySpaceUid()
Obtain the UID of the QuerySpace (specifically aCollectionQuerySpace) that this CollectionReference refers to.- 返回:
- The UID
-
getCollectionPersister
CollectionPersister getCollectionPersister()
Retrieves the CollectionPersister describing the collection associated with this CollectionReference.- 返回:
- The CollectionPersister.
-
getIndexGraph
CollectionFetchableIndex getIndexGraph()
Retrieve 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)
- 返回:
- The collection index metadata as a FetchSource, or
null.
-
getElementGraph
CollectionFetchableElement getElementGraph()
Retrieve 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.- 返回:
- The collection element metadata as a FetchSource, or
null.
-
getPropertyPath
PropertyPath getPropertyPath()
Retrieve the PropertyPath to this reference.- 返回:
- The PropertyPath
-
allowElementJoin
boolean allowElementJoin()
Should a collection element join be allowed? Returningtrueindicates that an element join can safely be added.- 返回:
- true, if a collection index join is allowed.
-
allowIndexJoin
boolean allowIndexJoin()
Should a collection index join be allowed? Returningtrueindicates that an index join can safely be added.- 返回:
- true, if a collection index join is allowed.
-
-