Uses of Class
org.springframework.data.mongodb.core.convert.MongoCustomConversions.MongoConverterConfigurationAdapter
Package
Description
Spring XML namespace configuration for MongoDB specific repositories.
Spring Data MongoDB specific converter infrastructure.
-
Uses of MongoCustomConversions.MongoConverterConfigurationAdapter in org.springframework.data.mongodb.config
Modifier and TypeMethodDescriptionprotected void
MongoConfigurationSupport.configureConverters
(MongoCustomConversions.MongoConverterConfigurationAdapter converterConfigurationAdapter) Configuration hook forMongoCustomConversions
creation. -
Uses of MongoCustomConversions.MongoConverterConfigurationAdapter in org.springframework.data.mongodb.core.convert
Modifier and TypeMethodDescriptionMongoCustomConversions.MongoConverterConfigurationAdapter.configurePropertyConversions
(Consumer<PropertyValueConverterRegistrar<MongoPersistentProperty>> configurationAdapter) Gateway to register property specific converters.Create aMongoCustomConversions.MongoConverterConfigurationAdapter
using the providedconverters
and our own codecs for JSR-310 types.MongoCustomConversions.MongoConverterConfigurationAdapter.registerConverter
(Converter<?, ?> converter) Add a customConverter
implementation.MongoCustomConversions.MongoConverterConfigurationAdapter.registerConverterFactory
(ConverterFactory<?, ?> converterFactory) Add a customConverterFactory
implementation.MongoCustomConversions.MongoConverterConfigurationAdapter.registerConverters
(Collection<?> converters) MongoCustomConversions.MongoConverterConfigurationAdapter.registerPropertyValueConverterFactory
(PropertyValueConverterFactory converterFactory) Add a custom/defaultPropertyValueConverterFactory
implementation used to servePropertyValueConverter
.MongoCustomConversions.MongoConverterConfigurationAdapter.setPropertyValueConversions
(PropertyValueConversions valueConversions) Deprecated.since 4.2.MongoCustomConversions.MongoConverterConfigurationAdapter.useNativeDriverJavaTimeCodecs()
Use the native MongoDB Java Drivercodes
forLocalDate
,LocalTime
andLocalDateTime
using aZoneOffset.UTC
.MongoCustomConversions.MongoConverterConfigurationAdapter.useNativeDriverJavaTimeCodecs
(boolean useNativeDriverJavaTimeCodecs) Set whether to or not to use the native MongoDB Java Drivercodes
forLocalDate
,LocalTime
andLocalDateTime
using aZoneOffset.UTC
.MongoCustomConversions.MongoConverterConfigurationAdapter.useSpringDataJavaTimeCodecs()
Use SpringDataJsr310 converters
forLocalDate
,LocalTime
andLocalDateTime
using theZoneId.systemDefault()
.MongoCustomConversions.MongoConverterConfigurationAdapter.withPropertyValueConversions
(PropertyValueConversions valueConversions) Optionally set thePropertyValueConversions
to be applied during mapping.Modifier and TypeMethodDescriptionstatic MongoCustomConversions
MongoCustomConversions.create
(Consumer<MongoCustomConversions.MongoConverterConfigurationAdapter> configurer) Functional styleCustomConversions
creation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance
.ModifierConstructorDescriptionprotected
MongoCustomConversions
(MongoCustomConversions.MongoConverterConfigurationAdapter conversionConfiguration) Create a newMongoCustomConversions
givenMongoCustomConversions.MongoConverterConfigurationAdapter
.