public abstract class AbstractCollectionReference extends Object implements CollectionReference
Modifier | Constructor and Description |
---|---|
protected |
AbstractCollectionReference(ExpandingCollectionQuerySpace collectionQuerySpace,
PropertyPath propertyPath,
boolean shouldIncludeJoins) |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
getCollectionPersister()
Retrieves the CollectionPersister describing the collection associated with this CollectionReference.
|
CollectionFetchableElement |
getElementGraph()
Retrieve the metadata about the elements of this collection *as a FetchSource*.
|
CollectionFetchableIndex |
getIndexGraph()
Retrieve the metadata about the index of this collection *as a FetchSource*.
|
PropertyPath |
getPropertyPath()
Retrieve the PropertyPath to this reference.
|
String |
getQuerySpaceUid()
Obtain the UID of the QuerySpace (specifically a
CollectionQuerySpace ) that this CollectionReference
refers to. |
protected AbstractCollectionReference(ExpandingCollectionQuerySpace collectionQuerySpace, PropertyPath propertyPath, boolean shouldIncludeJoins)
public String getQuerySpaceUid()
CollectionReference
CollectionQuerySpace
) that this CollectionReference
refers to.getQuerySpaceUid
in interface CollectionReference
public CollectionPersister getCollectionPersister()
CollectionReference
getCollectionPersister
in interface CollectionReference
public CollectionFetchableIndex getIndexGraph()
CollectionReference
null
when:getIndexGraph
in interface CollectionReference
null
.public CollectionFetchableElement getElementGraph()
CollectionReference
null
when 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
in interface CollectionReference
null
.public PropertyPath getPropertyPath()
CollectionReference
getPropertyPath
in interface CollectionReference
Copyright © 2016. All rights reserved.