Enum IgnoreNullsMode
- java.lang.Object
-
- java.lang.Enum<IgnoreNullsMode>
-
- software.amazon.awssdk.enhanced.dynamodb.model.IgnoreNullsMode
-
- All Implemented Interfaces:
Serializable
,Comparable<IgnoreNullsMode>
public enum IgnoreNullsMode extends Enum<IgnoreNullsMode>
The SCALAR_ONLY mode supports updates to scalar attributes to any level (top level, first nested level, second nested level, etc.) when the user wants to update scalar attributes by providing only the delta of changes to be updated. This mode does not support updates to maps and is expected to throw a 4xx DynamoDB exception if done so.
In the MAPS_ONLY mode, creation of new map/bean structures through update statements are supported, i.e. setting null/non-existent maps to non-null values. If users try to update scalar attributes in this mode, it will overwrite existing values in the table.
The DEFAULT mode disables any special handling around null values in the update query expression
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
MAPS_ONLY
SCALAR_ONLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IgnoreNullsMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static IgnoreNullsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCALAR_ONLY
public static final IgnoreNullsMode SCALAR_ONLY
-
MAPS_ONLY
public static final IgnoreNullsMode MAPS_ONLY
-
DEFAULT
public static final IgnoreNullsMode DEFAULT
-
-
Method Detail
-
values
public static IgnoreNullsMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IgnoreNullsMode c : IgnoreNullsMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IgnoreNullsMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-