public class XhtmlCleaningInterceptor extends Object implements net.sf.hibernate.Interceptor
Constructor and Description |
---|
XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner) |
Modifier and Type | Method and Description |
---|---|
int[] |
findDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
net.sf.hibernate.type.Type[] types) |
Object |
instantiate(Class clazz,
Serializable id) |
Boolean |
isUnsaved(Object entity) |
void |
onDelete(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
net.sf.hibernate.type.Type[] types) |
boolean |
onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
net.sf.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,
net.sf.hibernate.type.Type[] types) |
boolean |
onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
net.sf.hibernate.type.Type[] types)
If a BodyContent entity is being saved, then ensure the body of the entity is safe XHTML.
|
void |
postFlush(Iterator entities) |
void |
preFlush(Iterator entities) |
public XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner)
public int[] findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, net.sf.hibernate.type.Type[] types)
findDirty
in interface net.sf.hibernate.Interceptor
public Object instantiate(Class clazz, Serializable id) throws net.sf.hibernate.CallbackException
instantiate
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public Boolean isUnsaved(Object entity)
isUnsaved
in interface net.sf.hibernate.Interceptor
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.CallbackException
onDelete
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.CallbackException
onFlushDirty
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.CallbackException
onLoad
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.CallbackException
onSave
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public void postFlush(Iterator entities) throws net.sf.hibernate.CallbackException
postFlush
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
public void preFlush(Iterator entities) throws net.sf.hibernate.CallbackException
preFlush
in interface net.sf.hibernate.Interceptor
net.sf.hibernate.CallbackException
Copyright © 2003–2016 Atlassian. All rights reserved.