Class CurrencyToBillingConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>,​StringMapDescriptor.StringMap>

    public class CurrencyToBillingConverter
    extends StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>
    JPA converter for storing/retrieving Map<CurrencyUnit, String> objects.
    • Constructor Detail

      • CurrencyToBillingConverter

        public CurrencyToBillingConverter()
    • Method Detail

      • convertKeyToString

        protected java.lang.String convertKeyToString​(org.joda.money.CurrencyUnit key)
        Specified by:
        convertKeyToString in class StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>
      • convertValueToString

        protected java.lang.String convertValueToString​(java.lang.String value)
        Specified by:
        convertValueToString in class StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>
      • convertStringToKey

        protected org.joda.money.CurrencyUnit convertStringToKey​(java.lang.String string)
        Specified by:
        convertStringToKey in class StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>
      • convertStringToValue

        protected java.lang.String convertStringToValue​(java.lang.String string)
        Specified by:
        convertStringToValue in class StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>
      • convertMapToDerivedType

        protected java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String> convertMapToDerivedType​(java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String> map)
        Specified by:
        convertMapToDerivedType in class StringMapConverterBase<org.joda.money.CurrencyUnit,​java.lang.String,​java.util.Map<org.joda.money.CurrencyUnit,​java.lang.String>>