org.archiviststoolkit.hibernate
Class AuditInterceptor
java.lang.Object
   org.hibernate.EmptyInterceptor
org.hibernate.EmptyInterceptor
       org.archiviststoolkit.hibernate.AuditInterceptor
org.archiviststoolkit.hibernate.AuditInterceptor
- All Implemented Interfaces: 
- java.io.Serializable, org.hibernate.Interceptor
- public class AuditInterceptor 
- extends org.hibernate.EmptyInterceptor- implements org.hibernate.Interceptor, java.io.Serializable
- See Also:
- Serialized Form
 
| Fields inherited from class org.hibernate.EmptyInterceptor | 
| INSTANCE | 
 
 
| Method Summary | 
|  boolean | onFlushDirty(java.lang.Object object,
             java.io.Serializable serializable,
             java.lang.Object[] currentState,
             java.lang.Object[] previousState,
             java.lang.String[] propertyNames,
             org.hibernate.type.Type[] types)
 | 
|  boolean | onSave(java.lang.Object object,
       java.io.Serializable serializable,
       java.lang.Object[] state,
       java.lang.String[] propertyNames,
       org.hibernate.type.Type[] types)
 | 
 
| Methods inherited from class org.hibernate.EmptyInterceptor | 
| afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface org.hibernate.Interceptor | 
| afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush | 
 
AuditInterceptor
public AuditInterceptor(Users user)
onFlushDirty
public boolean onFlushDirty(java.lang.Object object,
                            java.io.Serializable serializable,
                            java.lang.Object[] currentState,
                            java.lang.Object[] previousState,
                            java.lang.String[] propertyNames,
                            org.hibernate.type.Type[] types)
                     throws org.hibernate.CallbackException
- 
- Specified by:
- onFlushDirtyin interface- org.hibernate.Interceptor
- Overrides:
- onFlushDirtyin class- org.hibernate.EmptyInterceptor
 
- 
- Throws:
- org.hibernate.CallbackException
 
onSave
public boolean onSave(java.lang.Object object,
                      java.io.Serializable serializable,
                      java.lang.Object[] state,
                      java.lang.String[] propertyNames,
                      org.hibernate.type.Type[] types)
               throws org.hibernate.CallbackException
- 
- Specified by:
- onSavein interface- org.hibernate.Interceptor
- Overrides:
- onSavein class- org.hibernate.EmptyInterceptor
 
- 
- Throws:
- org.hibernate.CallbackException