@ReturnValuesAreNullableByDefault
public class XhtmlCleaningInterceptor
extends org.hibernate.EmptyInterceptor
| Constructor and Description | 
|---|
XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
onFlushDirty(Object entity,
            Serializable id,
            Object[] currentState,
            Object[] previousState,
            String[] propertyNames,
            org.hibernate.type.Type[] types)
When a BodyContent is being modified ensure that the body of the entity is safe XHTML. 
 | 
boolean | 
onLoad(Object entity,
      Serializable id,
      Object[] state,
      String[] propertyNames,
      org.hibernate.type.Type[] types)  | 
boolean | 
onSave(Object entity,
      Serializable id,
      Object[] state,
      String[] propertyNames,
      org.hibernate.type.Type[] types)
If a BodyContent entity is being saved, then ensure the body of the entity is safe XHTML. 
 | 
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onPrepareStatement, postFlush, preFlushpublic XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner)
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onFlushDirty in interface org.hibernate.InterceptoronFlushDirty in class org.hibernate.EmptyInterceptororg.hibernate.CallbackExceptionpublic boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onSave in interface org.hibernate.InterceptoronSave in class org.hibernate.EmptyInterceptororg.hibernate.CallbackExceptionpublic boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onLoad in interface org.hibernate.InterceptoronLoad in class org.hibernate.EmptyInterceptororg.hibernate.CallbackExceptionCopyright © 2003–2022 Atlassian. All rights reserved.