public static interface AttributeTransformer.Parameters<T>
transform
and untransform
methods, so
we don't have to break the interface in order to add additional
parameters.
Consuming code should NOT implement this interface.
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,AttributeValue> |
getAttributeValues()
Returns the raw attribute values to be transformed or untransformed.
|
java.lang.String |
getHashKeyName() |
DynamoDBMapperConfig |
getMapperConfig() |
java.lang.Class<T> |
getModelClass() |
java.lang.String |
getRangeKeyName() |
java.lang.String |
getTableName() |
boolean |
isPartialUpdate()
Returns true if this transformation is being called as part of a
partial update operation.
|
java.util.Map<java.lang.String,AttributeValue> getAttributeValues()
boolean isPartialUpdate()
getAttributeValues()
do not represent the entire new item,
but only a snapshot of the attributes which are getting new values.
Implementations which do not support transforming a partial view of an item (for example, because they need to calculate a signature based on all of the item's attributes that won't be valid if only a subset of the attributes are taken into consideration) should check this flag and throw an exception rather than than corrupting the data in DynamoDB.
This method always returns false
for instances passed to
AttributeTransformer.untransform(Parameters)
.
java.lang.Class<T> getModelClass()
DynamoDBMapperConfig getMapperConfig()
java.lang.String getTableName()
java.lang.String getHashKeyName()
java.lang.String getRangeKeyName()
null
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.