Uses of Interface
org.springframework.data.convert.ValueConversionContext
Package
Description
General purpose conversion framework to read objects from a data store abstraction and write it back.
-
Uses of ValueConversionContext in org.springframework.data.convert
Modifier and TypeInterfaceDescriptioninterface
PropertyValueConverter<DV,
SV, C extends ValueConversionContext<? extends PersistentProperty<?>>> PropertyValueConverter
provides a symmetric way of converting certain properties from domain to store-specific values.Modifier and TypeMethodDescription<DV,
SV, C extends ValueConversionContext<?>>
PropertyValueConverter<DV,SV, C> PropertyValueConverterFactory.getConverter
(Class<? extends PropertyValueConverter<DV, SV, C>> converterType) Get the converter by its type.default <DV,
SV, P extends ValueConversionContext<?>>
PropertyValueConverter<DV,SV, P> PropertyValueConverterFactory.getConverter
(PersistentProperty<?> property) Get thePropertyValueConverter
applicable for the givenPersistentProperty
.<DV,
SV, P extends PersistentProperty<P>, VCC extends ValueConversionContext<P>>
PropertyValueConverter<DV,SV, VCC> PropertyValueConversions.getValueConverter
(P property) <DV,
SV, P extends PersistentProperty<P>, D extends ValueConversionContext<P>>
PropertyValueConverter<DV,SV, D> SimplePropertyValueConversions.getValueConverter
(P property) <P extends PersistentProperty<P>,
VCC extends ValueConversionContext<P>>
ObjectConvert a value from its store-native representation into its domain-specific type.<P extends PersistentProperty<P>,
VCC extends ValueConversionContext<P>>
ObjectConvert a value from its domain-specific value into its store-native representation.Modifier and TypeMethodDescription<S,
T> PropertyValueConverter<S, T, ? extends ValueConversionContext<P>> SimplePropertyValueConverterRegistry.getConverter
(Class<?> type, String path) <DV,
SV> PropertyValueConverter<DV, SV, ? extends ValueConversionContext<P>> ValueConverterRegistry.getConverter
(Class<?> type, String path) Obtain thePropertyValueConverter
registered for the given type, path combination or null if none defined.Modifier and TypeMethodDescriptionPropertyValueConverter.FunctionPropertyValueConverter.read
(SV value, ValueConversionContext<P> context) PropertyValueConverter.ObjectToObjectPropertyValueConverter.read
(Object value, ValueConversionContext context) PropertyValueConverter.FunctionPropertyValueConverter.readNull
(ValueConversionContext<P> context) PropertyValueConverter.FunctionPropertyValueConverter.write
(DV value, ValueConversionContext<P> context) PropertyValueConverter.ObjectToObjectPropertyValueConverter.write
(Object value, ValueConversionContext context) PropertyValueConverter.FunctionPropertyValueConverter.writeNull
(ValueConversionContext<P> context) Modifier and TypeMethodDescriptionPropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder.reading
(BiFunction<R, ValueConversionContext<P>, S> reader) Describes how to read a database value into a domain object's property value.PropertyValueConverterRegistrar.registerConverter
(Class<?> type, String path, PropertyValueConverter<?, ?, ? extends ValueConversionContext<?>> converter) Register the givenconverter
for the given type and property identified by its name.void
SimplePropertyValueConverterRegistry.registerConverter
(Class<?> type, String path, PropertyValueConverter<?, ?, ? extends ValueConversionContext<P>> converter) void
ValueConverterRegistry.registerConverter
(Class<?> type, String path, PropertyValueConverter<?, ?, ? extends ValueConversionContext<P>> converter) Register thePropertyValueConverter
for theproperty
of the given type.void
SimplePropertyValueConverterRegistry.registerConverterIfAbsent
(Class<?> type, String path, PropertyValueConverter<?, ?, ? extends ValueConversionContext<P>> converter) Register thePropertyValueConverter
for the property of the given type if none had been registered before.PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder.writing
(BiFunction<S, ValueConversionContext<P>, R> writer) Describes how to convert the domain property value into the database native property.ModifierConstructorDescriptionFunctionPropertyValueConverter
(BiFunction<DV, ValueConversionContext<P>, SV> writer, BiFunction<SV, ValueConversionContext<P>, DV> reader)