public abstract class DynamoDBTypeConverterFactory extends Object
DynamoDBTypeConverter factory and supporting classes.
To override standard type-conversions,
DynamoDBMapperConfig config = DynamoDBMapperConfig.builder()
.withTypeConverterFactory(DynamoDBTypeConverterFactory.standard().override()
.with(String.class, MyObject.class, new StringToMyObjectConverter())
.build())
.build();
Then, on the property, specify the attribute binding,
@DynamoDBTyped(DynamoDBAttributeType.S) public MyObject getMyObject()
DynamoDBMapperConfig| Modifier and Type | Class and Description |
|---|---|
static class |
DynamoDBTypeConverterFactory.Builder
Builder for overriding type-converters.
|
static class |
DynamoDBTypeConverterFactory.DelegateFactory
A delegating
DynamoDBTypeConverterFactory. |
| Constructor and Description |
|---|
DynamoDBTypeConverterFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract <S,T> DynamoDBTypeConverter<S,T> |
getConverter(Class<S> sourceType,
Class<T> targetType)
Gets the type-converter matching the target conversion type.
|
DynamoDBTypeConverterFactory.Builder |
override()
Creates a type-converter factory builder using this factory as defaults.
|
static DynamoDBTypeConverterFactory |
standard()
Returns the standard type-converter factory.
|
public abstract <S,T> DynamoDBTypeConverter<S,T> getConverter(Class<S> sourceType, Class<T> targetType)
S - The DynamoDB standard type.T - The object's field/property type.sourceType - The source conversion type.targetType - The target conversion type.public final DynamoDBTypeConverterFactory.Builder override()
public static final DynamoDBTypeConverterFactory standard()
override()Copyright © 2020. All rights reserved.