public class

PluginContentHibernateInterceptor

extends Object
implements Interceptor
java.lang.Object
   ↳ com.atlassian.confluence.content.persistence.hibernate.PluginContentHibernateInterceptor

Class Overview

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.

Summary

Public Constructors
PluginContentHibernateInterceptor()
Public Methods
int[] findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
Object instantiate(Class clazz, Serializable id)
Boolean isUnsaved(Object entity)
void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
void postFlush(Iterator entities)
void preFlush(Iterator entities)
void setContentTypeManager(ContentTypeManager contentTypeManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.sf.hibernate.Interceptor

Public Constructors

public PluginContentHibernateInterceptor ()

Public Methods

public int[] findDirty (Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)

public Object instantiate (Class clazz, Serializable id)

Throws
CallbackException

public Boolean isUnsaved (Object entity)

public void onDelete (Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)

Throws
CallbackException

public boolean onFlushDirty (Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)

Throws
CallbackException

public boolean onLoad (Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)

Throws
CallbackException

public boolean onSave (Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)

Throws
CallbackException

public void postFlush (Iterator entities)

Throws
CallbackException

public void preFlush (Iterator entities)

Throws
CallbackException

public void setContentTypeManager (ContentTypeManager contentTypeManager)