T
- The object's field/property value type.public interface DynamoDBAutoGenerator<T>
Auto-generation may be controlled by DynamoDBAutoGenerateStrategy
,
DynamoDBAutoGenerateStrategy.CREATE
, instructs to generate when
creating the item. The mapper, determines an item is new, or overwriting,
if it's current value is null
. There is a limitiation when performing
partial updates using either,
DynamoDBMapperConfig.SaveBehavior.UPDATE_SKIP_NULL_ATTRIBUTES
, or
DynamoDBMapperConfig.SaveBehavior.APPEND_SET
. A new value will only
be generated if the mapper is also generating the key.
DynamoDBAutoGenerateStrategy.ALWAYS
, instructs to always generate
a new value, applied on any save or batch write operation.
May be used in combination with DynamoDBAutoGenerated
.
DynamoDBAutoGenerated
Modifier and Type | Interface and Description |
---|---|
static class |
DynamoDBAutoGenerator.AbstractGenerator<T>
A generator which holds the
DynamoDBAutoGenerateStrategy . |
Modifier and Type | Method and Description |
---|---|
T |
generate(T currentValue)
Generates a new value given the current value (or null) if applicable.
|
DynamoDBAutoGenerateStrategy |
getGenerateStrategy()
Gets the auto-generate strategy.
|
DynamoDBAutoGenerateStrategy getGenerateStrategy()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.