public interface ReferenceLoader
ReferenceLoader obtains raw documents for linked entities via a
ReferenceLoader.DocumentReferenceQuery.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReferenceLoader.DocumentReferenceQuery
The
ReferenceLoader.DocumentReferenceQuery defines the criteria by which documents should be matched
applying potentially given order criteria. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<org.bson.Document> |
fetchMany(ReferenceLoader.DocumentReferenceQuery referenceQuery,
ReferenceResolver.ReferenceCollection context)
Obtain multiple
Document matching the given referenceQuery in the context. |
default org.bson.Document |
fetchOne(ReferenceLoader.DocumentReferenceQuery referenceQuery,
ReferenceResolver.ReferenceCollection context)
Obtain a single
Document matching the given referenceQuery in the context. |
@Nullable default org.bson.Document fetchOne(ReferenceLoader.DocumentReferenceQuery referenceQuery, ReferenceResolver.ReferenceCollection context)
Document matching the given referenceQuery in the context.referenceQuery - must not be null.context - must not be null.Document or null if none found.Iterable<org.bson.Document> fetchMany(ReferenceLoader.DocumentReferenceQuery referenceQuery, ReferenceResolver.ReferenceCollection context)
Document matching the given referenceQuery in the context.referenceQuery - must not be null.context - must not be null.Document or null if none found.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.