Package org.springframework.data.convert
Class PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S,P extends PersistentProperty<P>>
java.lang.Object
org.springframework.data.convert.PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S,P>
- Enclosing class:
- PropertyValueConverterRegistrar<P extends PersistentProperty<P>>
public static class PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S,P extends PersistentProperty<P>>
extends Object
Helper class used to build up a fluent registration API starting with writing.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionwriting
(BiFunction<S, ValueConversionContext<P>, R> writer) Describes how to convert the domain property value into the database native property.
-
Method Details
-
writingAsIs
-
writing
-
writing
public <R> PropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder<T,S, writingR, P> (BiFunction<S, ValueConversionContext<P>, R> writer) Describes how to convert the domain property value into the database native property.- Type Parameters:
R
- the type to be written to the database- Parameters:
writer
- the property conversion to extract a value written to the database- Returns:
- will never be null.
-