Package org.springframework.data.convert
@NonNullApi
package org.springframework.data.convert
General purpose conversion framework to read objects from a data store abstraction and write it back.
- See Also:
-
ClassDescription
TypeInformationMapper
implementation that can be either set up using aMappingContext
or manually set upMap
ofString
aliases to types.API to easily set upGenericConverter
instances using Java 8 lambdas, mostly in bidirectional fashion for easy registration as custom type converters of the Spring Data mapping subsystem.AConverterBuilder
aware of both a reading and writing converter.Exposes a reading converter.Interface to represent an intermediate setup step ofConverterBuilder.ConverterAware
defining a reading converter first.Exposes a writing converter.Interface to represent an intermediate setup step ofConverterBuilder.ConverterAware
defining a writing converter first.Value object to capture custom conversion.Value object holding the actualCustomConversions.StoreConversions
and customconverters
configured for registration.Value class tying together aCustomConversions.ConverterRegistration
and itsorigin
to allow fine grained registration based on store supported types.Value type to capture store-specific extensions to theCustomConversions
.Default implementation ofTypeMapper
.SpringConverter
to create instances of the given DTO type from the source value handed into the conversion.CombinedEntityReader
andEntityWriter
and add the ability to access aMappingContext
andConversionService
.EntityReader<T,S> Interface to read object from store specific sources.EntityWriter<T,S> Interface to write objects into store specific sinks.Registers jMolecules converter implementations withCustomConversions
if the former is on the classpath.Helper class to register JSR-310 specificConverter
implementations.TypeInformationMapper
implementation that can be either set up using aMappingContext
or manually set upMap
ofString
aliases to types.PropertyValueConversions
provides access toconverters
that may only be applied to a specificproperty
.Conversion service based onCustomConversions
used to convert domain and store values usingproperty-specific converters
.PropertyValueConverter<DV,SV, C extends ValueConversionContext<? extends PersistentProperty<?>>> PropertyValueConverter
provides a symmetric way of converting certain properties from domain to store-specific values.PropertyValueConverter.FunctionPropertyValueConverter<DV,SV, P extends PersistentProperty<P>> APropertyValueConverter
that delegates conversion to the givenBiFunction
s.No-opPropertyValueConverter
implementation.A factory providingvalue converters
.PropertyValueConverterRegistrar<P extends PersistentProperty<P>>Configuration class used to register aPropertyValueConverter
with aSimplePropertyValueConverterRegistry
that can be used inPropertyValueConversions
.PropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder<T,S, R, P extends PersistentProperty<P>> Helper class used to build a fluent API to register how to read a database value into a domain object property.PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S, P extends PersistentProperty<P>> Helper class used to build up a fluent registration API starting with writing.Annotation to clarify intended usage of aConverter
as reading converter in case the conversion types leave room for disambiguation.PropertyValueConversions
implementation allowing aPropertyValueConverterFactory
creatingconverters
to be chosen.SimplePropertyValueConverterRegistry<P extends PersistentProperty<P>>A registry of property specificvalue convertes
that may be used to convert only specific properties/values of an object.BasicTypeInformationMapper
implementation that interprets the alias handles as fully qualified class name and tries to load a class with the given name to buildTypeInformation
.Interface to abstract implementations of how to access a type alias from a given source or sink.Interface to abstract the mapping from a type alias to the actual type.TypeMapper<S>Interface to define strategies how to store type information in a store specific sink or source.ValueConversionContext<P extends PersistentProperty<P>>TheValueConversionContext
provides access to the store-specificPersistentProperty
and allows to call the store-default conversion through the read/write methods.Annotation to define usage of aPropertyValueConverter
to read/write the property.ValueConverterRegistry<P extends PersistentProperty<P>>A registry ofproperty-specific
value converters
to convert only specific properties/values of an object.Annotation to clarify intended usage of aConverter
as writing converter in case the conversion types leave room for disambiguation.