public static class AppDbRecoveryChange.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
AppDbRecoveryChange.Builder |
action(String action)
变更操作类型,标识本次数据变更的具体动作,可选值包括 INSERT、DELETE、UPDATE、DROP 等
示例值:UPDATE
|
AppDbRecoveryChange |
build() |
AppDbRecoveryChange.Builder |
deleted(String deleted)
删除记录数量,统计本次变更中删除的数据条目数
示例值:2
|
AppDbRecoveryChange.Builder |
droppedAt(String droppedAt)
表删除时间,当 action 为 DROP 时生效,格式为 RFC3339 标准时间字符串
示例值:2024-05-20T14:30:00+08:00
|
AppDbRecoveryChange.Builder |
inserted(String inserted)
新增记录数量,统计本次变更中插入的数据条目数
示例值:5
|
AppDbRecoveryChange.Builder |
modified(String modified)
修改记录数量,统计本次变更中更新的数据条目数
示例值:8
|
AppDbRecoveryChange.Builder |
table(String table)
数据库表名,标识发生变更的具体数据表,用于定位数据变更的来源范围
示例值:user_info
|
public AppDbRecoveryChange.Builder table(String table)
示例值:user_info
table - public AppDbRecoveryChange.Builder inserted(String inserted)
示例值:5
inserted - public AppDbRecoveryChange.Builder deleted(String deleted)
示例值:2
deleted - public AppDbRecoveryChange.Builder modified(String modified)
示例值:8
modified - public AppDbRecoveryChange.Builder action(String action)
示例值:UPDATE
action - public AppDbRecoveryChange.Builder droppedAt(String droppedAt)
示例值:2024-05-20T14:30:00+08:00
droppedAt - public AppDbRecoveryChange build()
Copyright © 2026. All rights reserved.