@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface DynamoDBVersionAttribute
Only nullable, integral numeric types (e.g. Integer, Long) can be used as
version properties. On a save() operation, the DynamoDBMapper
will
attempt to increment the version property and assert that the service's value
matches the client's. New objects will be assigned a version of 1 when saved.
Note that for batchWrite, and by extension batchSave and batchDelete, no
version checks are performed, as required by the
AmazonDynamoDB.batchWriteItem(BatchWriteItemRequest)
API.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
attributeName
Optional parameter when the name of the attribute as stored in DynamoDB
should differ from the name used by the getter / setter.
|
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.