DV - domain-specific type.SV - store-native type.C - the store specific conversion context.public interface PropertyValueConverter<DV,SV,C extends ValueConversionContext<? extends PersistentProperty<?>>>
PropertyValueConverter provides a symmetric way of converting certain properties from domain to
store-specific values.
A PropertyValueConverter is, other than a ReadingConverter or WritingConverter, only applied
to special annotated fields which allows a fine-grained conversion of certain values within a specific context.
| Modifier and Type | Interface and Description |
|---|---|
static class |
PropertyValueConverter.FunctionPropertyValueConverter<DV,SV,P extends PersistentProperty<P>>
A
PropertyValueConverter that delegates conversion to the given BiFunctions. |
static class |
PropertyValueConverter.ObjectToObjectPropertyValueConverter
No-op
PropertyValueConverter implementation. |
| Modifier and Type | Method and Description |
|---|---|
DV |
read(SV value,
C context)
Convert the given store specific value into it's domain value representation.
|
SV |
write(DV value,
C context)
Convert the given domain-specific value into it's native store representation.
|
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.