接口 ExecuteInterceptor

所有超级接口:
DMInterceptor, JDBCInterceptor

public interface ExecuteInterceptor extends DMInterceptor
  • 方法详细资料

    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
      创建 SQL之前,可以在这一步修改查询条件
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等
      configs - 执行条件
      conditions - 执行条件
      返回:
      RESULT
    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, List<RunPrepare> prepares, ConfigStore configs, String... conditions)
    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs)
    • before

      default ACTION.SWITCH before(DataRuntime runtime, String random, Run run, ConfigStore configs)
      合计总数之前调用,到这一步SQL已创建完成
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      run - 查询SQL(包含SQL体,查询条件,查询参数值)
      返回:
      RESULT
    • before

      default ACTION.SWITCH before(DataRuntime runtime, String random, List<Run> runs, ConfigStore configs)
    • before

      default ACTION.SWITCH before(DataRuntime runtime, String random, Procedure procedure, ConfigStore configs)
      合计总数之前调用,到这一步SQL已创建完成
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      procedure - 存储过程
      返回:
      RESULT
    • after

      default ACTION.SWITCH after(DataRuntime runtime, String random, Run run, ConfigStore configs, boolean success, long result, long millis)
      合计总数之前调用,到这一步SQL已创建完成
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      result - 影响行数
      run - 查询SQL(包含SQL体,查询条件,查询参数值)
      millis - 耗时
      返回:
      RESULT
    • after

      default ACTION.SWITCH after(DataRuntime runtime, String random, List<Run> runs, ConfigStore configs, boolean success, long result, long millis)
    • after

      default ACTION.SWITCH after(DataRuntime runtime, String random, Procedure procedure, boolean success, boolean result, long millis)
      合计总数之前调用,到这一步SQL已创建完成
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      result - 执行结果
      procedure - 存储过程
      millis - 耗时
      返回:
      RESULT