Package com.axelor.auth
Class AuditInterceptor
- java.lang.Object
-
- org.hibernate.EmptyInterceptor
-
- com.axelor.auth.AuditInterceptor
-
- All Implemented Interfaces:
Serializable
,Interceptor
public class AuditInterceptor extends EmptyInterceptor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description AuditInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTransactionBegin(Transaction tx)
void
afterTransactionCompletion(Transaction tx)
void
beforeTransactionCompletion(Transaction tx)
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
onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
-
Methods inherited from class org.hibernate.EmptyInterceptor
findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onLoad, onPrepareStatement, postFlush, preFlush
-
-
-
-
Method Detail
-
afterTransactionBegin
public void afterTransactionBegin(Transaction tx)
- Specified by:
afterTransactionBegin
in interfaceInterceptor
- Overrides:
afterTransactionBegin
in classEmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(Transaction tx)
- Specified by:
afterTransactionCompletion
in interfaceInterceptor
- Overrides:
afterTransactionCompletion
in classEmptyInterceptor
-
beforeTransactionCompletion
public void beforeTransactionCompletion(Transaction tx)
- Specified by:
beforeTransactionCompletion
in interfaceInterceptor
- Overrides:
beforeTransactionCompletion
in classEmptyInterceptor
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
- Specified by:
onFlushDirty
in interfaceInterceptor
- Overrides:
onFlushDirty
in classEmptyInterceptor
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
- Specified by:
onSave
in interfaceInterceptor
- Overrides:
onSave
in classEmptyInterceptor
-
onDelete
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
- Specified by:
onDelete
in interfaceInterceptor
- Overrides:
onDelete
in classEmptyInterceptor
-
-