接口 SelectInterceptor
- 所有超级接口:
DMInterceptor,JDBCInterceptor
-
方法概要
修饰符和类型方法说明default ACTION.SWITCHafter(DataRuntime runtime, String random, Run run, boolean success, Object result, ConfigStore configs, long millis) 合计总数之前调用,到这一步SQL已创建完成default ACTION.SWITCHafter(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs, boolean success, Object result, long millis) default ACTION.SWITCHbefore(DataRuntime runtime, String random, Run run, ConfigStore configs) 合计总数之后调用,行数页数等信息在navi中, 到这一步SQL已创建完成default ACTION.SWITCHbefore(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs) default ACTION.SWITCHprepare(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) 创建查询SQL之前,可以在这一步修改查询条件default ACTION.SWITCHprepare(DataRuntime runtime, String random, Procedure procedure, PageNavi navi) 从接口继承的方法 org.anyline.data.interceptor.JDBCInterceptor
order
-
方法详细资料
-
prepare
default ACTION.SWITCH prepare(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) 创建查询SQL之前,可以在这一步修改查询条件- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- RESULT
-
before
合计总数之后调用,行数页数等信息在navi中, 到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 查询SQL(包含SQL体,查询条件,查询参数值)- 返回:
- RESULT
-
before
default ACTION.SWITCH before(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs) -
after
default ACTION.SWITCH after(DataRuntime runtime, String random, Run run, boolean success, Object result, ConfigStore configs, long millis) 合计总数之前调用,到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端success- 查询SQL是否执行成功run- 查询SQL(包含SQL体,查询条件,查询参数值)millis- 耗时- 返回:
- RESULT
-
after
default ACTION.SWITCH after(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs, boolean success, Object result, long millis)
-