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