Class StringMapUserType

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

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

    • StringMapUserType

      public StringMapUserType()
  • Method Details

    • returnedClass

      public Class<Map<String,String>> returnedClass()
    • getSqlType

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

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

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

      public Map<String,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<String,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<String,String> deepCopy(Map<String,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<String,String> stringStringMap)
      Specified by:
      disassemble in interface org.hibernate.usertype.UserType<M>
    • assemble

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