Package org.springframework.data.mapping
Enum Class AccessOptions.SetOptions.SetNulls
java.lang.Object
java.lang.Enum<AccessOptions.SetOptions.SetNulls>
org.springframework.data.mapping.AccessOptions.SetOptions.SetNulls
- All Implemented Interfaces:
Serializable
,Comparable<AccessOptions.SetOptions.SetNulls>
,Constable
- Enclosing class:
- AccessOptions.SetOptions
public static enum AccessOptions.SetOptions.SetNulls
extends Enum<AccessOptions.SetOptions.SetNulls>
How to handle intermediate null values when setting
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReject null values detected when traversing a path to eventually set the leaf property.Silently skip the attempt to set the value.Skip setting the value but log an info message to leave a trace why the value wasn't actually set. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AccessOptions.SetOptions.SetNulls[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REJECT
Reject null values detected when traversing a path to eventually set the leaf property. This will cause aMappingException
being thrown in that case. -
SKIP_AND_LOG
Skip setting the value but log an info message to leave a trace why the value wasn't actually set. -
SKIP
Silently skip the attempt to set the value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-