Class BillingCostTransitionUserType

java.lang.Object
google.registry.persistence.converter.TimedTransitionBaseUserType<org.joda.money.Money>
google.registry.persistence.converter.BillingCostTransitionUserType
All Implemented Interfaces:
org.hibernate.usertype.UserType<TimedTransitionProperty<org.joda.money.Money>>

public class BillingCostTransitionUserType extends TimedTransitionBaseUserType<org.joda.money.Money>
Hibernate custom type for TimedTransitionProperty of Money.
  • Constructor Details

    • BillingCostTransitionUserType

      public BillingCostTransitionUserType()
  • Method Details

    • getSqlType

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

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

      public int hashCode(TimedTransitionProperty<org.joda.money.Money> map)
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<M>
    • nullSafeGet

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

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