DynamoDBTypeConverter
A DynamoDBTypeConverted
with String
as source would
perform the same conversion. Please consider, if your marshaller is thread
safe before replacing. In the new implementation, a single instance of
DynamoDBTypeConverted
is created per field/attribute. In the old,
an new instance of the marshaller was created for each call to
marshall
and unmarshall
. If your marshaller/converter is not
thread safe, it is recomended to specify a converter which will instantiate
a new marshaller per call.
public class CustomConverter<T> implements DynamoDBTypeConverter<String,T> { @Override public final String convert(final T object) { return ... } @Override public final T unconvert(final String object) { return ... } }
@Deprecated public interface DynamoDBMarshaller<T>
Modifier and Type | Method and Description |
---|---|
String |
marshall(T getterReturnResult)
Deprecated.
Turns an object of type T into its String representation.
|
T |
unmarshall(Class<T> clazz,
String obj)
Deprecated.
Turns a String representation of an object of type T into an object.
|