public interface PropertyValueConversions
PropertyValueConversions provides access to converters that may only be
applied to a specific property. Other than
converters registered in CustomConversions,
the property based variants accept and allow returning null values
and provide access to a store-specific conversion context.| Modifier and Type | Method and Description |
|---|---|
<DV,SV,P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
getValueConverter(P property)
|
boolean |
hasValueConverter(PersistentProperty<?> property)
|
static <P extends PersistentProperty<P>> |
simple(Consumer<PropertyValueConverterRegistrar<P>> config)
Helper method used to create a
PropertyValueConversions instance with the configured
converters provided by the callback. |
boolean hasValueConverter(PersistentProperty<?> property)
property - PersistentProperty to evaluate; must not be null.converter is registered for
the given PersistentProperty.PersistentProperty<DV,SV,P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> PropertyValueConverter<DV,SV,VCC> getValueConverter(P property)
DV - domain-specific typeSV - store-native typeP - conversion context typeproperty - PersistentProperty used to look up the registered PropertyValueConverter;
must not be null.PropertyValueConverter registered for the given PersistentProperty;
never null.IllegalArgumentException - if no PropertyValueConverter was registered for
the given PersistentProperty.hasValueConverter(PersistentProperty),
PropertyValueConverter,
PersistentPropertystatic <P extends PersistentProperty<P>> PropertyValueConversions simple(Consumer<PropertyValueConverterRegistrar<P>> config)
PropertyValueConversions instance with the configured
converters provided by the callback.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.