Class RegistrarToRoleMapUserType

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

public class RegistrarToRoleMapUserType extends Object
Hibernate custom type for Map of String to RegistrarRole.
  • Constructor Details Link icon

    • RegistrarToRoleMapUserType Link icon

      public RegistrarToRoleMapUserType()
  • Method Details Link icon

    • returnedClass Link icon

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

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

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

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

      public Map<String,RegistrarRole> 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 Link icon

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

      public Map<String,RegistrarRole> deepCopy(Map<String,RegistrarRole> map)
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType<M>
    • isMutable Link icon

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

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

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