接口 DeleteInterceptor

所有超级接口:
DMInterceptor, JDBCInterceptor

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

    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns)
      创建delete SQL之前,可以在这一步修改查询条件
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源
      data - 对象
      columns - 需要更新的列
      返回:
      RESULT
    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, int batch, Table table, ConfigStore configs, String... conditions)
    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, int batch, Table table, ConfigStore configs, String key, Collection values)
    • prepare

      default ACTION.SWITCH prepare(DataRuntime runtime, String random, int batch, Table table, Object obj, ConfigStore configs, String... columns)
    • before

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