|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.EmptyInterceptor
org.squashtest.csp.tm.internal.infrastructure.hibernate.AuditLogInterceptor
@Component(value="squashtest.tm.persistence.hibernate.AuditLogInterceptor") public class AuditLogInterceptor
This interceptor transparently logs creation / last modification data of any Auditable entity.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.EmptyInterceptor |
|---|
INSTANCE |
| Constructor Summary | |
|---|---|
AuditLogInterceptor()
|
|
| Method Summary | |
|---|---|
boolean |
onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onSave(Object entity,
Serializable id,
Object[] state,
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 |
| Constructor Detail |
|---|
public AuditLogInterceptor()
| Method Detail |
|---|
public boolean onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types)
onFlushDirty in interface org.hibernate.InterceptoronFlushDirty in class org.hibernate.EmptyInterceptor
public boolean onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types)
onSave in interface org.hibernate.InterceptoronSave in class org.hibernate.EmptyInterceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||