This commit is contained in:
lu7213 committed 2025-12-02 23:07:47 +08:00
1 parent 81eca8933a
commit 345f906c35
540 files changed
+494222 -90

No files matched your search

@@ -0,0 +1,67 @@
package com.ruoyi.common.cache;
import com.ruoyi.common.enums.BinlogEventType;
import java.lang.reflect.Field;
import java.util.List;
/**
* @Author luqj
* @Date 2020/8/5 20:48
* @Version 1.0
* @Desc 表数据有变化时 会进行到对应的方法中
*/
public interface IMysqlDataListener<T> {
/**
* 更新事件
*
* @param from
* @param to
*/
void onUpdate(T from, T to);
/**
* 数据写入
*
* @param t
*/
void onInsert(T t);
/**
* 数据删除
*
* @param t
*/
void onDelete(T t);
/**
* 位置信息的记录
*
* @param fileName
* @param position
*/
void onPosition(String fileName, Long position);
// 获取 entityExample 查询实体对应的 主键id 列表指
List<String> getExampleKeyIdValue(Object ob);
/**
* 触发关联影响
* @param binlogEventType
* @param ob
*/
void triggerAssociatedImpact(BinlogEventType binlogEventType,Object ob);
/**
* 通过 实体field 和 值 构建 实体泪飙
* @param val
* @return
*/
List<T> buildObjList(Field field, String val);
Field getFieldByName(String name);
boolean hasField(Field field);
}