public interface QueryInterceptor extends DMInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
after(DataRuntime runtime,
String random,
Procedure procedure,
ConfigStore configs,
boolean success,
Object result,
long millis) |
default ACTION.SWITCH |
after(DataRuntime runtime,
String random,
Run run,
boolean success,
Object result,
ConfigStore configs,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
before(DataRuntime runtime,
String random,
Procedure procedure,
ConfigStore configs) |
default ACTION.SWITCH |
before(DataRuntime runtime,
String random,
Run run,
ConfigStore configs)
合计总数之后调用,行数页数等信息在navi中, 到这一步SQL已创建完成
|
default ACTION.SWITCH |
prepare(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
default ACTION.SWITCH |
prepare(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查询SQL之前,可以在这一步修改查询条件
|
order, sortdefault ACTION.SWITCH prepare(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件default ACTION.SWITCH prepare(DataRuntime runtime, String random, Procedure procedure, PageNavi navi)
default ACTION.SWITCH before(DataRuntime runtime, String random, Run run, ConfigStore configs)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 查询SQL(包含SQL体,查询条件,查询参数值)default ACTION.SWITCH before(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs)
default ACTION.SWITCH after(DataRuntime runtime, String random, Run run, boolean success, Object result, ConfigStore configs, long millis)
runtime - 运行环境主要包含驱动适配器 数据源或客户端success - 查询SQL是否执行成功run - 查询SQL(包含SQL体,查询条件,查询参数值)millis - 耗时default ACTION.SWITCH after(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs, boolean success, Object result, long millis)
Copyright © 2025. All rights reserved.