Class AbstractArrayUserType<T>

java.lang.Object
org.kiwiproject.hibernate.usertype.AbstractArrayUserType<T>
All Implemented Interfaces:
org.hibernate.usertype.UserType<T>
Direct Known Subclasses:
BigintArrayUserType, TextArrayUserType

@Deprecated(since="3.4.0", forRemoval=true) @KiwiDeprecated(removeAt="4.0.0", replacedBy="Native array support in Hibernate", usageSeverity=SEVERE, reference="https://github.com/kiwiproject/kiwi/issues/1117") public abstract class AbstractArrayUserType<T> extends Object implements org.hibernate.usertype.UserType<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by native arrary support in Hibernate
Abstract base class for custom Hibernate user-defined array types.
Implementation Note:
Suppress Sonar "'throws' declarations should not be superfluous" warning since the signatures come directly from UserType, and we are just preserving them.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    assemble(Serializable cached, Object owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    abstract String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Implementors should return the specific database type name that the array contains, e.g.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    equals(T ol, T o2)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    hashCode(T obj)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    nullSafeGet(ResultSet resultSet, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    nullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    replace(T original, T target, Object owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.usertype.UserType

    getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter, returnedClass
  • Constructor Details

    • AbstractArrayUserType

      public AbstractArrayUserType()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • databaseTypeName

      public abstract String databaseTypeName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Implementors should return the specific database type name that the array contains, e.g. TEXT if the database array type is TEXT[].
      Returns:
      the database type name
    • getSqlType

      public int getSqlType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getSqlType in interface org.hibernate.usertype.UserType<T>
    • equals

      public boolean equals(T ol, T o2) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      equals in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
    • hashCode

      public int hashCode(T obj) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
    • nullSafeGet

      public T nullSafeGet(ResultSet resultSet, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      nullSafeGet in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
      SQLException
    • nullSafeSet

      public void nullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      nullSafeSet in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
      SQLException
    • deepCopy

      public T deepCopy(Object value) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
    • isMutable

      public boolean isMutable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isMutable in interface org.hibernate.usertype.UserType<T>
    • disassemble

      public Serializable disassemble(Object value) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      disassemble in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
    • assemble

      public T assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      assemble in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException
    • replace

      public T replace(T original, T target, Object owner) throws org.hibernate.HibernateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      replace in interface org.hibernate.usertype.UserType<T>
      Throws:
      org.hibernate.HibernateException