protected static interface MappingMongoConverter.ConversionContext
Document and other types.| Modifier and Type | Method and Description |
|---|---|
default <S> S |
convert(Object source,
org.springframework.data.util.TypeInformation<? extends S> typeHint)
Converts a source object into
target. |
<S> S |
convert(Object source,
org.springframework.data.util.TypeInformation<? extends S> typeHint,
MappingMongoConverter.ConversionContext context)
Converts a source object into
target. |
default <S> S |
findContextualEntity(MongoPersistentEntity<S> entity,
org.bson.Document document)
Lookup a potentially existing entity instance of the given
MongoPersistentEntity and Document |
default MappingMongoConverter.ConversionContext |
forProperty(MongoPersistentProperty property)
Obtain a
MappingMongoConverter.ConversionContext for the given MongoPersistentProperty. |
default MappingMongoConverter.ConversionContext |
forProperty(String name)
Obtain a
MappingMongoConverter.ConversionContext for the given property name. |
org.springframework.data.convert.CustomConversions |
getCustomConversions() |
org.springframework.data.mongodb.core.convert.ObjectPath |
getPath() |
MongoConverter |
getSourceConverter() |
MappingMongoConverter.ConversionContext |
withPath(org.springframework.data.mongodb.core.convert.ObjectPath currentPath)
Create a new
MappingMongoConverter.ConversionContext with currentPath applied. |
default <S> S convert(Object source, org.springframework.data.util.TypeInformation<? extends S> typeHint)
target.source - must not be null.typeHint - must not be null.<S> S convert(Object source, org.springframework.data.util.TypeInformation<? extends S> typeHint, MappingMongoConverter.ConversionContext context)
target.source - must not be null.typeHint - must not be null.context - must not be null.MappingMongoConverter.ConversionContext withPath(org.springframework.data.mongodb.core.convert.ObjectPath currentPath)
MappingMongoConverter.ConversionContext with currentPath applied.currentPath - must not be null.MappingMongoConverter.ConversionContext with currentPath applied.default MappingMongoConverter.ConversionContext forProperty(String name)
MappingMongoConverter.ConversionContext for the given property name.name - must not be null.MappingMongoConverter.ConversionContext to be used for conversion of the given property.default MappingMongoConverter.ConversionContext forProperty(MongoPersistentProperty property)
MappingMongoConverter.ConversionContext for the given MongoPersistentProperty.property - must not be null.MappingMongoConverter.ConversionContext to be used for conversion of the given property.@Nullable default <S> S findContextualEntity(MongoPersistentEntity<S> entity, org.bson.Document document)
MongoPersistentEntity and DocumentS - entity - document - org.springframework.data.mongodb.core.convert.ObjectPath getPath()
org.springframework.data.convert.CustomConversions getCustomConversions()
MongoConverter getSourceConverter()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.