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
TypeInformationMapperimplementation that can be either set up using aMappingContextor manually set upMapofStringaliases to types.API to easily set upGenericConverterinstances using Java 8 lambdas, mostly in bidirectional fashion for easy registration as custom type converters of the Spring Data mapping subsystem.AConverterBuilderaware of both a reading and writing converter.Exposes a reading converter.Interface to represent an intermediate setup step ofConverterBuilder.ConverterAwaredefining a reading converter first.Exposes a writing converter.Interface to represent an intermediate setup step ofConverterBuilder.ConverterAwaredefining a writing converter first.Value object to capture custom conversion.Value object holding the actualCustomConversions.StoreConversionsand customconvertersconfigured for registration.Value class tying together aCustomConversions.ConverterRegistrationand itsoriginto allow fine grained registration based on store supported types.Value type to capture store-specific extensions to theCustomConversions.Default implementation ofTypeMapper.SpringConverterto create instances of the given DTO type from the source value handed into the conversion.CombinedEntityReaderandEntityWriterand add the ability to access aMappingContextandConversionService.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 withCustomConversionsif the former is on the classpath.Helper class to register JSR-310 specificConverterimplementations.TypeInformationMapperimplementation that can be either set up using aMappingContextor manually set upMapofStringaliases to types.PropertyValueConversionsprovides access toconvertersthat may only be applied to a specificproperty.Conversion service based onCustomConversionsused to convert domain and store values usingproperty-specific converters.PropertyValueConverter<DV,SV, C extends ValueConversionContext<? extends PersistentProperty<?>>> PropertyValueConverterprovides a symmetric way of converting certain properties from domain to store-specific values.PropertyValueConverter.FunctionPropertyValueConverter<DV,SV, P extends PersistentProperty<P>> APropertyValueConverterthat delegates conversion to the givenBiFunctions.No-opPropertyValueConverterimplementation.A factory providingvalue converters.PropertyValueConverterRegistrar<P extends PersistentProperty<P>>Configuration class used to register aPropertyValueConverterwith aSimplePropertyValueConverterRegistrythat 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 aConverteras reading converter in case the conversion types leave room for disambiguation.PropertyValueConversionsimplementation allowing aPropertyValueConverterFactorycreatingconvertersto be chosen.SimplePropertyValueConverterRegistry<P extends PersistentProperty<P>>A registry of property specificvalue convertesthat may be used to convert only specific properties/values of an object.BasicTypeInformationMapperimplementation 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>>TheValueConversionContextprovides access to the store-specificPersistentPropertyand allows to call the store-default conversion through the read/write methods.Annotation to define usage of aPropertyValueConverterto read/write the property.ValueConverterRegistry<P extends PersistentProperty<P>>A registry ofproperty-specificvalue convertersto convert only specific properties/values of an object.Annotation to clarify intended usage of aConverteras writing converter in case the conversion types leave room for disambiguation.