Class PluginContentHibernateInterceptor

java.lang.Object
org.hibernate.EmptyInterceptor
com.atlassian.confluence.content.persistence.hibernate.PluginContentHibernateInterceptor
All Implemented Interfaces:
Serializable, org.hibernate.Interceptor

public class PluginContentHibernateInterceptor extends org.hibernate.EmptyInterceptor
Interceptor responsible for adding the pluggable content adapter to any content loaded from the database. Because of loading order problems (the plugin system isn't available when hibernate is configured), responsibility for providing the Plugin Accessor to this class is given to the PluginContentHibernateDao after it is initialised.
See Also:
  • Field Summary

    Fields inherited from class org.hibernate.EmptyInterceptor

    INSTANCE
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 8.6

    Methods inherited from class org.hibernate.EmptyInterceptor

    afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onPrepareStatement, onSave, postFlush, preFlush

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginContentHibernateInterceptor

      public PluginContentHibernateInterceptor(ContentTypeManager contentTypeManager)
    • PluginContentHibernateInterceptor

      @Deprecated(forRemoval=true) public PluginContentHibernateInterceptor()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 8.6
  • Method Details

    • onLoad

      public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
      Specified by:
      onLoad in interface org.hibernate.Interceptor
      Overrides:
      onLoad in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • setContentTypeManager

      @Deprecated(forRemoval=true) public void setContentTypeManager(ContentTypeManager contentTypeManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 8.6