public abstract class AbstractCollectionReference extends java.lang.Object implements CollectionReference
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCollectionReference(ExpandingCollectionQuerySpace collectionQuerySpace,
PropertyPath propertyPath,
boolean shouldIncludeJoins) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowElementJoin()
Should a collection element join be allowed? Returning
true
indicates that an element join can safely be added. |
boolean |
allowIndexJoin()
Should a collection index join be allowed? Returning
true
indicates that an index join can safely be added. |
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.
|
java.lang.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 boolean allowElementJoin()
CollectionReferencetrue
indicates that an element join can safely be added.allowElementJoin in interface CollectionReferencepublic boolean allowIndexJoin()
CollectionReferencetrue
indicates that an index join can safely be added.allowIndexJoin in interface CollectionReferencepublic java.lang.String getQuerySpaceUid()
CollectionReferenceCollectionQuerySpace) that this CollectionReference
refers to.getQuerySpaceUid in interface CollectionReferencepublic CollectionPersister getCollectionPersister()
CollectionReferencegetCollectionPersister in interface CollectionReferencepublic CollectionFetchableIndex getIndexGraph()
CollectionReferencenull when:getIndexGraph in interface CollectionReferencenull.public CollectionFetchableElement getElementGraph()
CollectionReferencenull 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 CollectionReferencenull.public PropertyPath getPropertyPath()
CollectionReferencegetPropertyPath in interface CollectionReferenceCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.