@FunctionalInterface public interface ReferenceResolver
ReferenceResolver allows to load and convert linked entities.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReferenceResolver.MongoEntityReader
Domain type conversion callback interface that allows to read the
source object into a mapped object. |
static class |
ReferenceResolver.ReferenceCollection
ReferenceResolver.ReferenceCollection is a value object that contains information about the target database and collection
name of an association. |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveReference(MongoPersistentProperty property,
Object source,
ReferenceLookupDelegate referenceLookupDelegate,
ReferenceResolver.MongoEntityReader entityReader)
Resolve the association defined via the given property from a given source value.
|
@Nullable Object resolveReference(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader)
proxy instance in case of a lazy loading association. The resolved value is assignable to
PersistentProperty.getType().property - the association defining property.source - the association source value.referenceLookupDelegate - the lookup executing component.entityReader - conversion function capable of constructing entities from raw source.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.