public interface ItemConverter
ConversionSchema
.Modifier and Type | Method and Description |
---|---|
AttributeValue |
convert(Method getter,
Object value)
Converts a Java object into a DynamoDB AttributeValue.
|
Map<String,AttributeValue> |
convert(Object value)
Converts an appropriately-annotated POJO into a Map of AttributeValues.
|
DynamoDBMapperFieldModel |
getFieldModel(Method getter)
Returns the metadata (e.g.
|
<T> T |
unconvert(Class<T> clazz,
Map<String,AttributeValue> values)
Reverses the
convert(Object) method, turning a map of attribute
values back into a POJO of the given class. |
Object |
unconvert(Method getter,
Method setter,
AttributeValue value)
Reverses the
convert(Method, Object) method, turning a
DynamoDB AttributeValue back into a Java object suitable for passing
to the given setter. |
DynamoDBMapperFieldModel getFieldModel(Method getter)
getter
- the getter method to inspectAttributeValue convert(Method getter, Object value)
getter
- the getter that returned the value to be convertedvalue
- the value to be convertedMap<String,AttributeValue> convert(Object value)
value
- the POJO to convertObject unconvert(Method getter, Method setter, AttributeValue value)
convert(Method, Object)
method, turning a
DynamoDB AttributeValue back into a Java object suitable for passing
to the given setter.getter
- the getter for the value to be unconvertedsetter
- the setter for the value to be unconvertedvalue
- the attribute value to be unconverted<T> T unconvert(Class<T> clazz, Map<String,AttributeValue> values)
convert(Object)
method, turning a map of attribute
values back into a POJO of the given class.T
- the compile-time type of the object to createclazz
- the runtime type of the object to createvalues
- the the map of attribute values to unconvertCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.