public interface PersistentPropertyPathAccessor<T> extends PersistentPropertyAccessor<T>
PersistentPropertyAccessor that is also able to obtain and set values for
PersistentPropertyPaths.| Modifier and Type | Method and Description |
|---|---|
default Object |
getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path)
Return the value pointed to by the given
PersistentPropertyPath. |
Object |
getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
AccessOptions.GetOptions context)
Return the value pointed to by the given
PersistentPropertyPath. |
void |
setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value)
Sets the given value for the
PersistentProperty pointed to by the given PersistentPropertyPath. |
void |
setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value,
AccessOptions.SetOptions options)
Sets the given value for the
PersistentProperty pointed to by the given PersistentPropertyPath
considering the given AccessOptions. |
getBean, getProperty, getProperty, setProperty@Nullable default Object getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path)
PersistentPropertyPath. If the given path is empty, the wrapped
bean is returned.getProperty in interface PersistentPropertyAccessor<T>path - must not be null.@Nullable Object getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, AccessOptions.GetOptions context)
PersistentPropertyPath. If the given path is empty, the wrapped
bean is returned. On each path segment value lookup, the resulting value is post-processed by handlers registered
on the given TraversalContext context. This can be used to unwrap container types that are encountered
during the traversal.path - must not be null.context - must not be null.void setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, @Nullable Object value)
PersistentProperty pointed to by the given PersistentPropertyPath. The
lookup of intermediate values must not yield null.setProperty in interface PersistentPropertyAccessor<T>path - must not be null or empty.value - can be null.AccessOptions#DEFAULTvoid setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, @Nullable Object value, AccessOptions.SetOptions options)
PersistentProperty pointed to by the given PersistentPropertyPath
considering the given AccessOptions.path - must not be null.value - must not be null.options - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.