com.amazonaws.services.dynamodb.datamodeling
Enum DynamoDBMapperConfig.SaveBehavior
java.lang.Object
java.lang.Enum<DynamoDBMapperConfig.SaveBehavior>
com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapperConfig.SaveBehavior
- All Implemented Interfaces:
- Serializable, Comparable<DynamoDBMapperConfig.SaveBehavior>
- Enclosing class:
- DynamoDBMapperConfig
public static enum DynamoDBMapperConfig.SaveBehavior
- extends Enum<DynamoDBMapperConfig.SaveBehavior>
Enumeration of behaviors for the save operation.
UPDATE will not affect unmodeled attributes on a save operation. CLOBBER
will clear and replace all attributes, included unmodeled ones, (delete
and recreate) on save. Versioned field constraints will also be
disregarded.
By default, the mapper uses UPDATE.
UPDATE
public static final DynamoDBMapperConfig.SaveBehavior UPDATE
CLOBBER
public static final DynamoDBMapperConfig.SaveBehavior CLOBBER
values
public static DynamoDBMapperConfig.SaveBehavior[] 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 (DynamoDBMapperConfig.SaveBehavior c : DynamoDBMapperConfig.SaveBehavior.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DynamoDBMapperConfig.SaveBehavior 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 name
NullPointerException
- if the argument is null
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.