接口 UpdateInterceptor
- 所有超级接口:
DMInterceptor,JDBCInterceptor
-
方法概要
修饰符和类型方法说明default ACTION.SWITCHafter(DataRuntime runtime, String random, Run run, RunPrepare prepare, DataRow data, ConfigStore configs, boolean success, long result, long millis) 合计总数之前调用,到这一步SQL已创建完成default ACTION.SWITCHafter(DataRuntime runtime, String random, Run run, Table dest, Object data, ConfigStore configs, List<String> columns, boolean success, long result, long millis) 合计总数之前调用,到这一步SQL已创建完成default ACTION.SWITCHbefore(DataRuntime runtime, String random, Run run, RunPrepare prepare, DataRow data, ConfigStore configs) 合计总数之前调用,到这一步SQL已创建完成default ACTION.SWITCHbefore(DataRuntime runtime, String random, Run run, Table dest, Object data, ConfigStore configs, List<String> columns) 合计总数之前调用,到这一步SQL已创建完成default ACTION.SWITCHprepare(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) 创建update SQL之前,可以在这一步修改查询条件default ACTION.SWITCHprepare(DataRuntime runtime, String random, RunPrepare prepare, DataRow data, ConfigStore configs) 创建update SQL之前,可以在这一步修改查询条件从接口继承的方法 org.anyline.data.interceptor.JDBCInterceptor
order
-
方法详细资料
-
prepare
default ACTION.SWITCH prepare(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) 创建update SQL之前,可以在这一步修改查询条件- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源configs- 过滤条件及相关配置data- 对象columns- 需要更新的列- 返回:
- RESULT
-
prepare
default ACTION.SWITCH prepare(DataRuntime runtime, String random, RunPrepare prepare, DataRow data, ConfigStore configs) 创建update SQL之前,可以在这一步修改查询条件- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 一般通过TableBuilder生成data- K-VariableValue 更新值key:需要更新的列 value:通常是关联表的列用VariableValue表示,也可以是常量- 返回:
- RESULT
-
before
default ACTION.SWITCH before(DataRuntime runtime, String random, Run run, Table dest, Object data, ConfigStore configs, List<String> columns) 合计总数之前调用,到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 查询SQL(包含SQL体,查询条件,查询参数值)- 返回:
- RESULT
-
before
default ACTION.SWITCH before(DataRuntime runtime, String random, Run run, RunPrepare prepare, DataRow data, ConfigStore configs) 合计总数之前调用,到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 查询SQL(包含SQL体,查询条件,查询参数值)data- K-VariableValue 更新值key:需要更新的列 value:通常是关联表的列用VariableValue表示,也可以是常量- 返回:
- RESULT
-
after
default ACTION.SWITCH after(DataRuntime runtime, String random, Run run, Table dest, Object data, ConfigStore configs, List<String> columns, boolean success, long result, long millis) 合计总数之前调用,到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端result- 影响行数run- 查询SQL(包含SQL体,查询条件,查询参数值)millis- 耗时- 返回:
- RESULT
-
after
default ACTION.SWITCH after(DataRuntime runtime, String random, Run run, RunPrepare prepare, DataRow data, ConfigStore configs, boolean success, long result, long millis) 合计总数之前调用,到这一步SQL已创建完成- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端result- 影响行数run- 查询SQL(包含SQL体,查询条件,查询参数值)prepare- 一般通过TableBuilder生成data- K-VariableValue 更新值key:需要更新的列 value:通常是关联表的列用VariableValue表示,也可以是常量millis- 耗时- 返回:
- RESULT
-