T
- The object's field/property value type.DynamoDbAutoGeneratedDefault.Generator
, DynamoDbAutoGeneratedTimestamp.Generator
, DynamoDbAutoGenerator.AbstractGenerator
, DynamoDbGeneratedUuid.Generator
, DynamoDbMapperFieldModel
, DynamoDbVersioned.Generator
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 | Description |
---|---|---|
static class |
DynamoDbAutoGenerator.AbstractGenerator<T> |
A generator which holds the
DynamoDbAutoGenerateStrategy . |
Modifier and Type | Method | 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.