Package com.logicaldoc.core
Class LastModifiedInterceptor
java.lang.Object
com.logicaldoc.core.LastModifiedInterceptor
- All Implemented Interfaces:
- org.hibernate.Interceptor
An 
Interceptor that takes care about updating the last modified date
 of a persistence object- Since:
- 6.9
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanonFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) booleanonSave(Object entity, Serializable id, Object[] currentState, String[] propertyNames, org.hibernate.type.Type[] types) Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.InterceptorafterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, findDirty, getEntity, getEntity, getEntityName, instantiate, instantiate, isTransient, onCollectionRecreate, onCollectionRecreate, onCollectionRemove, onCollectionRemove, onCollectionUpdate, onCollectionUpdate, onDelete, onDelete, onDelete, onFlushDirty, onInsert, onLoad, onLoad, onPersist, onRemove, onSave, onUpdate, onUpsert, postFlush, preFlush
- 
Constructor Details- 
LastModifiedInterceptorpublic LastModifiedInterceptor()
 
- 
- 
Method Details- 
onFlushDirtypublic boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) - Specified by:
- onFlushDirtyin interface- org.hibernate.Interceptor
 
- 
onSavepublic boolean onSave(Object entity, Serializable id, Object[] currentState, String[] propertyNames, org.hibernate.type.Type[] types) - Specified by:
- onSavein interface- org.hibernate.Interceptor
 
 
-