public static enum DynamoDBMapperConfig.SaveBehavior extends java.lang.Enum<DynamoDBMapperConfig.SaveBehavior>
Enum Constant and Description |
---|
APPEND_SET
APPEND_SET treats scalar attributes (String, Number, Binary) the same
as UPDATE_SKIP_NULL_ATTRIBUTES does.
|
CLOBBER
CLOBBER will clear and replace all attributes, included unmodeled
ones, (delete and recreate) on save.
|
UPDATE
UPDATE will not affect unmodeled attributes on a save operation and a
null value for the modeled attribute will remove it from that item in
DynamoDB.
|
UPDATE_SKIP_NULL_ATTRIBUTES
UPDATE_SKIP_NULL_ATTRIBUTES is similar to UPDATE, except that it
ignores any null value attribute(s) and will NOT remove them from
that item in DynamoDB.
|
Modifier and Type | Method and Description |
---|---|
static DynamoDBMapperConfig.SaveBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DynamoDBMapperConfig.SaveBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamoDBMapperConfig.SaveBehavior UPDATE
Because of the limitation of updateItem request, the implementation of UPDATE will send a putItem request when a key-only object is being saved, and it will send another updateItem request if the given key(s) already exists in the table.
By default, the mapper uses UPDATE.
public static final DynamoDBMapperConfig.SaveBehavior UPDATE_SKIP_NULL_ATTRIBUTES
public static final DynamoDBMapperConfig.SaveBehavior CLOBBER
public static final DynamoDBMapperConfig.SaveBehavior APPEND_SET
public static DynamoDBMapperConfig.SaveBehavior[] values()
for (DynamoDBMapperConfig.SaveBehavior c : DynamoDBMapperConfig.SaveBehavior.values()) System.out.println(c);
public static DynamoDBMapperConfig.SaveBehavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.