Package | Description |
---|---|
org.springframework.data.convert |
General purpose conversion framework to read objects from a data store abstraction and write it back.
|
Modifier and Type | Interface and Description |
---|---|
interface |
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 Type | Method and Description |
---|---|
<DV,SV,C extends ValueConversionContext<?>> |
PropertyValueConverterFactory.getConverter(Class<? extends PropertyValueConverter<DV,SV,C>> converterType)
Get the converter by its type.
|
default <DV,SV,P extends ValueConversionContext<?>> |
PropertyValueConverterFactory.getConverter(PersistentProperty<?> property)
Get the
PropertyValueConverter applicable for the given PersistentProperty . |
<DV,SV,P extends PersistentProperty<P>,D extends ValueConversionContext<P>> |
SimplePropertyValueConversions.getValueConverter(P property) |
<DV,SV,P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversions.getValueConverter(P property)
|
<P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversionService.read(Object value,
P property,
VCC context)
Convert a value from its store-native representation into its domain-specific type.
|
<P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversionService.write(Object value,
P property,
VCC context)
Convert a value from its domain-specific value into its store-native representation.
|
Modifier and Type | Method and Description |
---|---|
<DV,SV> PropertyValueConverter<DV,SV,? extends ValueConversionContext<P>> |
ValueConverterRegistry.getConverter(Class<?> type,
String path)
Obtain the
PropertyValueConverter registered for the given type, path combination or null
if none defined. |
<S,T> PropertyValueConverter<S,T,? extends ValueConversionContext<P>> |
SimplePropertyValueConverterRegistry.getConverter(Class<?> type,
String path) |
Modifier and Type | Method and Description |
---|---|
Object |
PropertyValueConverter.ObjectToObjectPropertyValueConverter.read(Object value,
ValueConversionContext context) |
DV |
PropertyValueConverter.FunctionPropertyValueConverter.read(SV value,
ValueConversionContext<P> context) |
DV |
PropertyValueConverter.FunctionPropertyValueConverter.readNull(ValueConversionContext<P> context) |
SV |
PropertyValueConverter.FunctionPropertyValueConverter.write(DV value,
ValueConversionContext<P> context) |
Object |
PropertyValueConverter.ObjectToObjectPropertyValueConverter.write(Object value,
ValueConversionContext context) |
SV |
PropertyValueConverter.FunctionPropertyValueConverter.writeNull(ValueConversionContext<P> context) |
Modifier and Type | Method and Description |
---|---|
PropertyValueConverterRegistrar<P> |
PropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder.reading(BiFunction<R,ValueConversionContext<P>,S> reader)
Describes how to read a database value into a domain object's property value.
|
PropertyValueConverterRegistrar<P> |
PropertyValueConverterRegistrar.registerConverter(Class<?> type,
String path,
PropertyValueConverter<?,?,? extends ValueConversionContext<?>> converter)
Register the given
converter for the given type and property identified by
its name. |
void |
ValueConverterRegistry.registerConverter(Class<?> type,
String path,
PropertyValueConverter<?,?,? extends ValueConversionContext<P>> converter)
Register the
PropertyValueConverter for the property of the given type. |
void |
SimplePropertyValueConverterRegistry.registerConverter(Class<?> type,
String path,
PropertyValueConverter<?,?,? extends ValueConversionContext<P>> converter) |
void |
SimplePropertyValueConverterRegistry.registerConverterIfAbsent(Class<?> type,
String path,
PropertyValueConverter<?,?,? extends ValueConversionContext<P>> converter)
Register the
PropertyValueConverter for the property of the given type if none had been registered before. |
<R> PropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder<T,S,R,P> |
PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder.writing(BiFunction<S,ValueConversionContext<P>,R> writer)
Describes how to convert the domain property value into the database native property.
|
Constructor and Description |
---|
FunctionPropertyValueConverter(BiFunction<DV,ValueConversionContext<P>,SV> writer,
BiFunction<SV,ValueConversionContext<P>,DV> reader) |
FunctionPropertyValueConverter(BiFunction<DV,ValueConversionContext<P>,SV> writer,
BiFunction<SV,ValueConversionContext<P>,DV> reader) |
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.