Class CurrencyToBillingConverter
java.lang.Object
google.registry.persistence.converter.StringMapConverterBase<org.joda.money.CurrencyUnit,String,Map<org.joda.money.CurrencyUnit,String>>
google.registry.persistence.converter.CurrencyToBillingConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<Map<org.joda.money.CurrencyUnit,
String>, StringMapDescriptor.StringMap>
public class CurrencyToBillingConverter
extends StringMapConverterBase<org.joda.money.CurrencyUnit,String,Map<org.joda.money.CurrencyUnit,String>>
JPA converter for storing/retrieving
Map<CurrencyUnit, String>
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
convertKeyToString
(org.joda.money.CurrencyUnit key) convertMapToDerivedType
(Map<org.joda.money.CurrencyUnit, String> map) protected org.joda.money.CurrencyUnit
convertStringToKey
(String string) protected String
convertStringToValue
(String string) protected String
convertValueToString
(String value) Methods inherited from class google.registry.persistence.converter.StringMapConverterBase
convertToDatabaseColumn, convertToEntityAttribute
-
Constructor Details
-
CurrencyToBillingConverter
public CurrencyToBillingConverter()
-
-
Method Details
-
convertKeyToString
- Specified by:
convertKeyToString
in classStringMapConverterBase<org.joda.money.CurrencyUnit,
String, Map<org.joda.money.CurrencyUnit, String>>
-
convertValueToString
- Specified by:
convertValueToString
in classStringMapConverterBase<org.joda.money.CurrencyUnit,
String, Map<org.joda.money.CurrencyUnit, String>>
-
convertStringToKey
- Specified by:
convertStringToKey
in classStringMapConverterBase<org.joda.money.CurrencyUnit,
String, Map<org.joda.money.CurrencyUnit, String>>
-
convertStringToValue
- Specified by:
convertStringToValue
in classStringMapConverterBase<org.joda.money.CurrencyUnit,
String, Map<org.joda.money.CurrencyUnit, String>>
-
convertMapToDerivedType
protected Map<org.joda.money.CurrencyUnit,String> convertMapToDerivedType(Map<org.joda.money.CurrencyUnit, String> map) - Specified by:
convertMapToDerivedType
in classStringMapConverterBase<org.joda.money.CurrencyUnit,
String, Map<org.joda.money.CurrencyUnit, String>>
-