Class CurrencyUserType

java.lang.Object
org.smallmind.persistence.orm.hibernate.CurrencyUserType
All Implemented Interfaces:
org.hibernate.usertype.UserType<Currency>

public class CurrencyUserType extends Object implements org.hibernate.usertype.UserType<Currency>
  • Constructor Details

    • CurrencyUserType

      public CurrencyUserType()
  • Method Details

    • isMutable

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

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

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

      public int hashCode(Currency currency)
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<Currency>
    • equals

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

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

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

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

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

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

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