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 voidafterTransactionBegin(Transaction tx)voidafterTransactionCompletion(Transaction tx)voidbeforeTransactionCompletion(Transaction tx)voidonDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)booleanonFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)booleanonSave(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:
afterTransactionBeginin interfaceInterceptor- Overrides:
afterTransactionBeginin classEmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(Transaction tx)
- Specified by:
afterTransactionCompletionin interfaceInterceptor- Overrides:
afterTransactionCompletionin classEmptyInterceptor
-
beforeTransactionCompletion
public void beforeTransactionCompletion(Transaction tx)
- Specified by:
beforeTransactionCompletionin interfaceInterceptor- Overrides:
beforeTransactionCompletionin classEmptyInterceptor
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
- Specified by:
onFlushDirtyin interfaceInterceptor- Overrides:
onFlushDirtyin classEmptyInterceptor
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
- Specified by:
onSavein interfaceInterceptor- Overrides:
onSavein classEmptyInterceptor
-
onDelete
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
- Specified by:
onDeletein interfaceInterceptor- Overrides:
onDeletein classEmptyInterceptor
-
-