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,C extends PersistentProperty<C>,VCC extends ValueConversionContext<C>> |
getValueConverter(C property)
Get the
PropertyValueConverter for the given property. |
boolean |
hasValueConverter(PersistentProperty<?> property)
Check if a
PropertyValueConverter is present for the given property. |
static <P extends PersistentProperty<P>> |
simple(Consumer<PropertyValueConverterRegistrar<P>> config)
Helper that allows to create
PropertyValueConversions instance with the configured
converters provided via the given callback. |
boolean hasValueConverter(PersistentProperty<?> property)
PropertyValueConverter
is present for the given property.property
- must not be null.PropertyValueConverter
is available.<DV,SV,C extends PersistentProperty<C>,VCC extends ValueConversionContext<C>> PropertyValueConverter<DV,SV,VCC> getValueConverter(C property)
PropertyValueConverter
for the given property.DV
- domain-specific typeSV
- store-native typeC
- conversion context typeproperty
- must not be null.PropertyValueConverter
.static <P extends PersistentProperty<P>> PropertyValueConversions simple(Consumer<PropertyValueConverterRegistrar<P>> config)
PropertyValueConversions
instance with the configured
converters
provided via the given callback.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.