public static class AccessOptions.SetOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccessOptions.SetOptions.Propagation
How to propagate setting values that cross collection and map properties.
|
static class |
AccessOptions.SetOptions.SetNulls
How to handle intermediate null values when setting
|
Constructor and Description |
---|
SetOptions(AccessOptions.SetOptions.SetNulls nullHandling,
AccessOptions.SetOptions.Propagation collectionPropagation,
AccessOptions.SetOptions.Propagation mapPropagation) |
Modifier and Type | Method and Description |
---|---|
AccessOptions.SetOptions.SetNulls |
getNullHandling() |
boolean |
propagate(PersistentProperty<?> property)
Returns whether the given property is supposed to be propagated, i.e. if values for it are supposed to be set at
all.
|
AccessOptions.SetOptions |
rejectNulls()
Returns a new
AccessOptions that will cause paths that contain null values to be skipped when
setting a property. |
AccessOptions.SetOptions |
skipAndLogNulls()
Returns a new
AccessOptions that will cause paths that contain null values to be skipped when
setting a property but a log message produced in TRACE level. |
AccessOptions.SetOptions |
skipNulls()
Returns a new
AccessOptions that will cause paths that contain null values to be skipped when
setting a property. |
AccessOptions.SetOptions |
withCollectionAndMapPropagation(AccessOptions.SetOptions.Propagation propagation)
Shortcut to configure the same
AccessOptions.SetOptions.Propagation for both collection and map property path segments. |
AccessOptions.SetOptions |
withCollectionPropagation(AccessOptions.SetOptions.Propagation collectionPropagation) |
AccessOptions.SetOptions |
withMapPropagation(AccessOptions.SetOptions.Propagation mapPropagation) |
AccessOptions.SetOptions |
withNullHandling(AccessOptions.SetOptions.SetNulls nullHandling) |
public SetOptions(AccessOptions.SetOptions.SetNulls nullHandling, AccessOptions.SetOptions.Propagation collectionPropagation, AccessOptions.SetOptions.Propagation mapPropagation)
public AccessOptions.SetOptions withNullHandling(AccessOptions.SetOptions.SetNulls nullHandling)
public AccessOptions.SetOptions withCollectionPropagation(AccessOptions.SetOptions.Propagation collectionPropagation)
public AccessOptions.SetOptions withMapPropagation(AccessOptions.SetOptions.Propagation mapPropagation)
public AccessOptions.SetOptions.SetNulls getNullHandling()
public AccessOptions.SetOptions skipNulls()
AccessOptions
that will cause paths that contain null values to be skipped when
setting a property.public AccessOptions.SetOptions skipAndLogNulls()
AccessOptions
that will cause paths that contain null values to be skipped when
setting a property but a log message produced in TRACE level.public AccessOptions.SetOptions rejectNulls()
AccessOptions
that will cause paths that contain null values to be skipped when
setting a property.public AccessOptions.SetOptions withCollectionAndMapPropagation(AccessOptions.SetOptions.Propagation propagation)
AccessOptions.SetOptions.Propagation
for both collection and map property path segments.propagation
- must not be null.public boolean propagate(@Nullable PersistentProperty<?> property)
property
- can be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.