java.lang.Object
com.broadleafcommerce.data.tracking.jpa.hibernate.UlidUserType
All Implemented Interfaces:
org.hibernate.usertype.EnhancedUserType<String>, org.hibernate.usertype.UserType<String>

public class UlidUserType extends Object implements org.hibernate.usertype.EnhancedUserType<String>
  • Constructor Details

    • UlidUserType

      public UlidUserType()
  • Method Details

    • getSqlType

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

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

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

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

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

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

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

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

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

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

      public String toSqlLiteral(String value)
      Specified by:
      toSqlLiteral in interface org.hibernate.usertype.EnhancedUserType<String>
    • toString

      public String toString(String value) throws org.hibernate.HibernateException
      Specified by:
      toString in interface org.hibernate.usertype.EnhancedUserType<String>
      Throws:
      org.hibernate.HibernateException
    • fromStringValue

      public String fromStringValue(CharSequence sequence) throws org.hibernate.HibernateException
      Specified by:
      fromStringValue in interface org.hibernate.usertype.EnhancedUserType<String>
      Throws:
      org.hibernate.HibernateException