|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DynamoDBMapperConfig.SaveBehavior>
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior
public static enum DynamoDBMapperConfig.SaveBehavior
Enumeration of behaviors for the save operation.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |