public interface PersistentPropertyAccessor
PersistentProperty
s of an entity. Usually obtained through
PersistentEntity.getPropertyAccessor(Object)
. In case type conversion shall be applied on property access,
use a ConvertingPropertyAccessor
.PersistentEntity.getPropertyAccessor(Object)
,
ConvertingPropertyAccessor
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Returns the underlying bean.
|
Object |
getProperty(PersistentProperty<?> property)
Returns the value of the given
PersistentProperty of the underlying bean instance. |
void |
setProperty(PersistentProperty<?> property,
Object value)
Sets the given
PersistentProperty to the given value. |
void setProperty(PersistentProperty<?> property, Object value)
PersistentProperty
to the given value. Will do type conversion if a
ConversionService
is configured.property
- must not be null.value
- can be null.MappingException
- in case an exception occurred when setting the
property value.Object getProperty(PersistentProperty<?> property)
PersistentProperty
of the underlying bean instance.S
- property
- must not be null.Object getBean()
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.