Class StringMapConverterBase<K,V,M extends Map<K,V>>
java.lang.Object
google.registry.persistence.converter.StringMapConverterBase<K,V,M>
- All Implemented Interfaces:
javax.persistence.AttributeConverter<M,
StringMapDescriptor.StringMap>
- Direct Known Subclasses:
CurrencyToBillingConverter
,RegistrarToRoleConverter
,TimedTransitionPropertyConverterBase
public abstract class StringMapConverterBase<K,V,M extends Map<K,V>>
extends Object
implements javax.persistence.AttributeConverter<M,StringMapDescriptor.StringMap>
Base JPA converter for
Map
objects that are stored in a column with data type of hstore
in the database.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
convertKeyToString
(K key) protected abstract M
convertMapToDerivedType
(Map<K, V> map) protected abstract K
convertStringToKey
(String string) protected abstract V
convertStringToValue
(String string) convertToDatabaseColumn
(M attribute) protected abstract String
convertValueToString
(V value)
-
Constructor Details
-
StringMapConverterBase
public StringMapConverterBase()
-
-
Method Details
-
convertKeyToString
-
convertValueToString
-
convertStringToKey
-
convertStringToValue
-
convertMapToDerivedType
-
convertToDatabaseColumn
-
convertToEntityAttribute
-