Class TransientHibernateHandle

java.lang.Object
com.atlassian.confluence.core.persistence.hibernate.TransientHibernateHandle
All Implemented Interfaces:
Handle, ExportHibernateHandle, Serializable

@Deprecated public class TransientHibernateHandle extends Object implements Handle, ExportHibernateHandle
Deprecated.
since 8.0.0
This handle implementation cannot be converted to a String. It is intended to be used in memory during long transactions to maintain large collections of persistent objects while using less memory. This would be temporarily available to support legacy import export and removed in 8.0. This handle implementation cannot be converted to a String. It is intended to be used in memory during long transactions to maintain large collections of persistent objects while using less memory.
Since:
8.0.0
See Also:
  • Field Details

    • storage

      protected final Object storage
      Deprecated.
  • Constructor Details

    • TransientHibernateHandle

      @Deprecated public TransientHibernateHandle(Class clazz, Object id)
      Deprecated.
      since 6.0 Use TransientHibernateHandle.create as an alternative
    • TransientHibernateHandle

      @Deprecated public TransientHibernateHandle(org.hibernate.Session session, Object object)
      Deprecated.
      since 6.0 Use TransientHibernateHandle.create as an alternative
  • Method Details

    • create

      public static TransientHibernateHandle create(Class clazz, Serializable id)
      Deprecated.
    • getClazz

      public Class getClazz()
      Deprecated.
      Specified by:
      getClazz in interface ExportHibernateHandle
    • getId

      public Serializable getId()
      Deprecated.
    • get

      public Object get(org.hibernate.Session session)
      Deprecated.
      Specified by:
      get in interface ExportHibernateHandle
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Description copied from interface: Handle
      The toString() method of a Handle must be written so that the AnyTypeObjectDao (for example) can resolve the String representation of a Handle back to a Handle object, and thus find the referenced object
      Specified by:
      toString in interface Handle
      Overrides:
      toString in class Object
      Returns:
      a String representation of this Handle that can be resolved back to the same object.