java.lang.Object
dev.voidframework.persistence.hibernate.cuid.CUIDType
All Implemented Interfaces:
org.hibernate.usertype.UserType<CUID>

public final class CUIDType extends Object implements org.hibernate.usertype.UserType<CUID>
Value type mapper for CUID.
  • Constructor Details

    • CUIDType

      public CUIDType()
  • Method Details

    • getSqlType

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

      public Class<CUID> returnedClass()
      Specified by:
      returnedClass in interface org.hibernate.usertype.UserType<CUID>
    • equals

      public boolean equals(CUID x, CUID y)
      Specified by:
      equals in interface org.hibernate.usertype.UserType<CUID>
    • hashCode

      public int hashCode(CUID x)
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<CUID>
    • nullSafeGet

      public CUID nullSafeGet(ResultSet rs, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
      Specified by:
      nullSafeGet in interface org.hibernate.usertype.UserType<CUID>
      Throws:
      SQLException
    • nullSafeSet

      public void nullSafeSet(PreparedStatement st, CUID value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
      Specified by:
      nullSafeSet in interface org.hibernate.usertype.UserType<CUID>
      Throws:
      SQLException
    • deepCopy

      public CUID deepCopy(CUID value)
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType<CUID>
    • isMutable

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

      public Serializable disassemble(CUID value)
      Specified by:
      disassemble in interface org.hibernate.usertype.UserType<CUID>
    • assemble

      public CUID assemble(Serializable cached, Object owner)
      Specified by:
      assemble in interface org.hibernate.usertype.UserType<CUID>
    • replace

      public CUID replace(CUID detached, CUID managed, Object owner)
      Specified by:
      replace in interface org.hibernate.usertype.UserType<CUID>