public class HibernateDataSyncInterceptor
extends org.hibernate.EmptyInterceptor
Constructor and Description |
---|
HibernateDataSyncInterceptor() |
Modifier and Type | Method and Description |
---|---|
int |
dataSyncUpdate()
用于被定时器调用,更新当前Hibernate Session的缓存对象数据,被定义为hibernateDataSyncTrigger定时触发器中,该方法依赖于模块TaskModel
|
void |
onDelete(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types) |
boolean |
onFlushDirty(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types) |
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onLoad, onPrepareStatement, onSave, postFlush, preFlush
public void onDelete(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)
onDelete
in interface org.hibernate.Interceptor
onDelete
in class org.hibernate.EmptyInterceptor
public boolean onFlushDirty(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] currentState, java.lang.Object[] previousState, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)
onFlushDirty
in interface org.hibernate.Interceptor
onFlushDirty
in class org.hibernate.EmptyInterceptor
public int dataSyncUpdate()
Copyright © 2019 by Sucang.cn