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 |
---|---|
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.
|
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()
CollectionReference
true
indicates that an element join can safely be added.allowElementJoin
in interface CollectionReference
public boolean allowIndexJoin()
CollectionReference
true
indicates that an index join can safely be added.allowIndexJoin
in interface CollectionReference
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 © 2001-2017 Red Hat, Inc. All Rights Reserved.