Class RevisionTypeType

java.lang.Object
org.hibernate.envers.internal.entities.RevisionTypeType
All Implemented Interfaces:
Serializable, org.hibernate.usertype.UserType<RevisionType>

public class RevisionTypeType extends Object implements org.hibernate.usertype.UserType<RevisionType>, Serializable
A hibernate type for the RevisionType enum.
See Also:
  • Constructor Details

    • RevisionTypeType

      public RevisionTypeType()
  • Method Details

    • getSqlType

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

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

      public RevisionType nullSafeGet(ResultSet rs, int position, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException
      Specified by:
      nullSafeGet in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      SQLException
    • nullSafeSet

      public void nullSafeSet(PreparedStatement preparedStatement, RevisionType value, int index, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException
      Specified by:
      nullSafeSet in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      SQLException
    • deepCopy

      public RevisionType deepCopy(RevisionType value) throws org.hibernate.HibernateException
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      org.hibernate.HibernateException
    • isMutable

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

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

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

      public RevisionType replace(RevisionType original, RevisionType target, Object owner) throws org.hibernate.HibernateException
      Specified by:
      replace in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      org.hibernate.HibernateException
    • hashCode

      public int hashCode(RevisionType x) throws org.hibernate.HibernateException
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      org.hibernate.HibernateException
    • equals

      public boolean equals(RevisionType x, RevisionType y) throws org.hibernate.HibernateException
      Specified by:
      equals in interface org.hibernate.usertype.UserType<RevisionType>
      Throws:
      org.hibernate.HibernateException