Package | Description |
---|---|
org.springframework.data.convert |
General purpose conversion framework to read objects from a data store abstraction and write it back.
|
org.springframework.data.mapping |
Base package for the mapping subsystem.
|
org.springframework.data.mapping.model |
Core implementation of the mapping subsystem's model.
|
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,C extends ValueConversionContext<?>> |
PropertyValueConverterFactory.getConverter(PersistentProperty<?> property)
Get the
PropertyValueConverter applicable for the given PersistentProperty . |
<DV,SV,C extends PersistentProperty<C>,VCC extends ValueConversionContext<C>> |
CustomConversions.getPropertyValueConverter(C property)
Delegate to obtain the
PropertyValueConverter for the given property from
PropertyValueConversions . |
<DV,SV,C extends PersistentProperty<C>,D extends ValueConversionContext<C>> |
SimplePropertyValueConversions.getValueConverter(C property) |
<DV,SV,C extends PersistentProperty<C>,VCC extends ValueConversionContext<C>> |
PropertyValueConversions.getValueConverter(C property)
Get the
PropertyValueConverter for the given property. |
Modifier and Type | Method and Description |
---|---|
<DV,SV> PropertyValueConverter<DV,SV,? extends ValueConversionContext<P>> |
ValueConverterRegistry.getConverter(Class<?> type,
String path)
Obtain the converter 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) |
SV |
PropertyValueConverter.FunctionPropertyValueConverter.write(DV value,
ValueConversionContext<P> context) |
Object |
PropertyValueConverter.ObjectToObjectPropertyValueConverter.write(Object value,
ValueConversionContext 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 types property identified via 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 the
PropertyValueConverter for the property of the given type. |
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) |
Modifier and Type | Method and Description |
---|---|
default Class<? extends PropertyValueConverter<?,?,? extends ValueConversionContext<? extends PersistentProperty<?>>>> |
PersistentProperty.getValueConverterType()
Obtain the
converter type to be used for reading and writing property values. |
Modifier and Type | Method and Description |
---|---|
Class<? extends PropertyValueConverter<?,?,? extends ValueConversionContext<? extends PersistentProperty<?>>>> |
AnnotationBasedPersistentProperty.getValueConverterType() |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.