public interface ExecuteInterceptor extends DMInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
after(JDBCRuntime runtime,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs,
boolean success,
boolean result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
after(JDBCRuntime runtime,
Run run,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
before(JDBCRuntime runtime,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
before(JDBCRuntime runtime,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
prepare(JDBCRuntime runtime,
Procedure procedure) |
default ACTION.SWITCH |
prepare(JDBCRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建 SQL之前,可以在这一步修改查询条件
|
order, sortdefault ACTION.SWITCH prepare(JDBCRuntime runtime, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - datasource/adapter/jdbctemplateprepare - 准备数据configs - 执行条件conditions - 执行条件default ACTION.SWITCH prepare(JDBCRuntime runtime, Procedure procedure)
default ACTION.SWITCH before(JDBCRuntime runtime, Run run)
runtime - datasource/adapter/jdbctemplaterun - 查询SQL(包含SQL体,查询条件,查询参数值)default ACTION.SWITCH before(JDBCRuntime runtime, Procedure procedure, String sql, List<Parameter> inputs, List<Parameter> outputs)
runtime - datasource/adapter/jdbctemplateprocedure - 存储过程default ACTION.SWITCH after(JDBCRuntime runtime, Run run, boolean success, int result, long millis)
runtime - datasource/adapter/jdbctemplateresult - 影响行数run - 查询SQL(包含SQL体,查询条件,查询参数值)millis - 耗时default ACTION.SWITCH after(JDBCRuntime runtime, Procedure procedure, String sql, List<Parameter> inputs, List<Parameter> outputs, boolean success, boolean result, long millis)
runtime - datasource/adapter/jdbctemplateresult - 执行结果procedure - 存储过程millis - 耗时Copyright © 2023. All rights reserved.