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 |
---|---|
Map<String,AttributeValue> |
getAttributeValues()
Returns the raw attribute values to be transformed or untransformed.
|
String |
getHashKeyName() |
DynamoDBMapperConfig |
getMapperConfig() |
Class<T> |
getModelClass() |
String |
getRangeKeyName() |
String |
getTableName() |
boolean |
isPartialUpdate()
Returns true if this transformation is being called as part of a
partial update operation.
|
Map<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)
.
Class<T> getModelClass()
DynamoDBMapperConfig getMapperConfig()
String getTableName()
String getHashKeyName()
String getRangeKeyName()
null
Copyright © 2021. All rights reserved.