Class StringMapConverterBase<K,V>
- java.lang.Object
-
- google.registry.persistence.converter.StringMapConverterBase<K,V>
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<java.util.Map<K,V>,StringMapDescriptor.StringMap>
- Direct Known Subclasses:
CurrencyToBillingConverter
public abstract class StringMapConverterBase<K,V> extends java.lang.Object implements javax.persistence.AttributeConverter<java.util.Map<K,V>,StringMapDescriptor.StringMap>
Base JPA converter forMap
objects that are stored in a column with data type of hstore in the database.
-
-
Constructor Summary
Constructors Constructor Description StringMapConverterBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMapDescriptor.StringMap
convertToDatabaseColumn(java.util.Map<K,V> attribute)
java.util.Map<K,V>
convertToEntityAttribute(StringMapDescriptor.StringMap dbData)
-
-
-
Method Detail
-
convertToDatabaseColumn
public StringMapDescriptor.StringMap convertToDatabaseColumn(java.util.Map<K,V> attribute)
-
convertToEntityAttribute
public java.util.Map<K,V> convertToEntityAttribute(StringMapDescriptor.StringMap dbData)
-
-