public final class ReferenceLookupDelegate extends Object
ReferenceResolver implementations to resolve a reference to one/many target documents
that are converted to entities.| Constructor and Description |
|---|
ReferenceLookupDelegate(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext,
SpELContext spELContext)
Create a new
ReferenceLookupDelegate. |
| Modifier and Type | Method and Description |
|---|---|
Object |
readReference(MongoPersistentProperty property,
Object source,
org.springframework.data.mongodb.core.convert.ReferenceLookupDelegate.LookupFunction lookupFunction,
ReferenceResolver.MongoEntityReader entityReader)
Read the reference expressed by the given property.
|
public ReferenceLookupDelegate(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext, SpELContext spELContext)
ReferenceLookupDelegate.mappingContext - must not be null.spELContext - must not be null.@Nullable public Object readReference(MongoPersistentProperty property, Object source, org.springframework.data.mongodb.core.convert.ReferenceLookupDelegate.LookupFunction lookupFunction, ReferenceResolver.MongoEntityReader entityReader)
property - the reference defining property. Must not be null. THesource - the source value identifying to the referenced entity. Must not be null.lookupFunction - to execute a lookup query. Must not be null.entityReader - the callback to convert raw source values into actual domain types. Must not be
null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.