public interface ItemConverter
ConversionSchema
.Modifier and Type | Method and Description |
---|---|
AttributeValue |
convert(java.lang.reflect.Method getter,
java.lang.Object value)
Converts a Java object into a DynamoDB AttributeValue.
|
java.util.Map<java.lang.String,AttributeValue> |
convert(java.lang.Object value)
Converts an appropriately-annotated POJO into a Map of AttributeValues.
|
DynamoDBMapperFieldModel |
getFieldModel(java.lang.reflect.Method getter)
Returns the metadata (e.g.
|
<T> T |
unconvert(java.lang.Class<T> clazz,
java.util.Map<java.lang.String,AttributeValue> values)
Reverses the
convert(Object) method, turning a map of attribute
values back into a POJO of the given class. |
java.lang.Object |
unconvert(java.lang.reflect.Method getter,
java.lang.reflect.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(java.lang.reflect.Method getter)
getter
- the getter method to inspectAttributeValue convert(java.lang.reflect.Method getter, java.lang.Object value)
getter
- the getter that returned the value to be convertedvalue
- the value to be convertedjava.util.Map<java.lang.String,AttributeValue> convert(java.lang.Object value)
value
- the POJO to convertjava.lang.Object unconvert(java.lang.reflect.Method getter, java.lang.reflect.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(java.lang.Class<T> clazz, java.util.Map<java.lang.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.