Class NormalizedEmailConverter
java.lang.Object
io.awspring.spring.data.examples.model.NormalizedEmailConverter
- All Implemented Interfaces:
PropertyValueConverter<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue, ValueConversionContext<DynamoDbPersistentProperty>>
public class NormalizedEmailConverter
extends Object
implements PropertyValueConverter<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue, ValueConversionContext<DynamoDbPersistentProperty>>
Normalizes email values before writing them to DynamoDB.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PropertyValueConverter
PropertyValueConverter.FunctionPropertyValueConverter<DV,SV, P>, PropertyValueConverter.ObjectToObjectPropertyValueConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(software.amazon.awssdk.services.dynamodb.model.AttributeValue value, ValueConversionContext<DynamoDbPersistentProperty> context) software.amazon.awssdk.services.dynamodb.model.AttributeValuewrite(String value, ValueConversionContext<DynamoDbPersistentProperty> context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyValueConverter
readNull, writeNull
-
Constructor Details
-
NormalizedEmailConverter
public NormalizedEmailConverter()
-
-
Method Details
-
read
public String read(software.amazon.awssdk.services.dynamodb.model.AttributeValue value, ValueConversionContext<DynamoDbPersistentProperty> context) - Specified by:
readin interfacePropertyValueConverter<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue, ValueConversionContext<DynamoDbPersistentProperty>>
-
write
public software.amazon.awssdk.services.dynamodb.model.AttributeValue write(String value, ValueConversionContext<DynamoDbPersistentProperty> context) - Specified by:
writein interfacePropertyValueConverter<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue, ValueConversionContext<DynamoDbPersistentProperty>>
-