public class AuditableInterceptor
extends org.hibernate.EmptyInterceptor
Auditable
that are being inserted into the database. When found, if
the class is an update (instead of an insert) then the changedBy and dateChanged fields are set
to the current user and the current time. Constructor and Description |
---|
AuditableInterceptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types)
This class method is only called when flushing an updated dirty object, not inserting objects
|
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, onSave, postFlush, preFlush
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.Interceptor
onFlushDirty
in class org.hibernate.EmptyInterceptor
org.hibernate.CallbackException
EmptyInterceptor.onFlushDirty(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.