DynamoDBTypeConverted
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 @Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface DynamoDBMarshalling
String
s, Number
s, and
Set
s of the same to DynamoDB. Any object that can be converted into a
String representation and vice versa can be saved in this manner. This
annotation can be applied to either the getter method or the class field for
the specific property. If the annotation is applied directly to the class
field, the corresponding getter and setter must be declared in the same
class.DynamoDBMarshaller
,
JsonMarshaller
Modifier and Type | Required Element and Description |
---|---|
Class<? extends DynamoDBMarshaller<? extends Object>> |
marshallerClass
Deprecated.
The class of the Marshaller that converts this property to and from a
String.
|
public abstract Class<? extends DynamoDBMarshaller<? extends Object>> marshallerClass
Copyright © 2023. All rights reserved.