Class CurrencyToStringMapUserType

java.lang.Object
google.registry.persistence.converter.CurrencyToStringMapUserType
All Implemented Interfaces:
org.hibernate.usertype.UserType<Map<org.joda.money.CurrencyUnit,String>>

public class CurrencyToStringMapUserType extends Object
Hibernate custom type for Map of CurrencyUnit to String.
  • Constructor Details

    • CurrencyToStringMapUserType

      public CurrencyToStringMapUserType()
  • Method Details

    • returnedClass

      public Class<Map<org.joda.money.CurrencyUnit,String>> returnedClass()
    • getSqlType

      public int getSqlType()
      Specified by:
      getSqlType in interface org.hibernate.usertype.UserType<M>
    • equals

      public boolean equals(Map<org.joda.money.CurrencyUnit,String> map, Map<org.joda.money.CurrencyUnit,String> other)
      Specified by:
      equals in interface org.hibernate.usertype.UserType<M>
    • hashCode

      public int hashCode(Map<org.joda.money.CurrencyUnit,String> map)
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<M>
    • nullSafeGet

      public Map<org.joda.money.CurrencyUnit,String> nullSafeGet(ResultSet resultSet, int i, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object o) throws SQLException
      Specified by:
      nullSafeGet in interface org.hibernate.usertype.UserType<M>
      Throws:
      SQLException
    • nullSafeSet

      public void nullSafeSet(PreparedStatement preparedStatement, Map<org.joda.money.CurrencyUnit,String> map, int i, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor) throws SQLException
      Specified by:
      nullSafeSet in interface org.hibernate.usertype.UserType<M>
      Throws:
      SQLException
    • deepCopy

      public Map<org.joda.money.CurrencyUnit,String> deepCopy(Map<org.joda.money.CurrencyUnit,String> map)
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType<M>
    • isMutable

      public boolean isMutable()
      Specified by:
      isMutable in interface org.hibernate.usertype.UserType<M>
    • disassemble

      public Serializable disassemble(Map<org.joda.money.CurrencyUnit,String> stringStringMap)
      Specified by:
      disassemble in interface org.hibernate.usertype.UserType<M>
    • assemble

      public Map<org.joda.money.CurrencyUnit,String> assemble(Serializable serializable, Object o)
      Specified by:
      assemble in interface org.hibernate.usertype.UserType<M>