public interface DriverAdapter
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
DriverAdapter.SQL_BUILD_IN_VALUE |
| 限定符和类型 | 方法和说明 |
|---|---|
StringBuilder |
addColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
添加列引导
|
void |
addRunValue(DataRuntime runtime,
Run run,
Compare compare,
Column column,
Object value) |
String |
alterColumnKeyword(DataRuntime runtime)
修改表的关键字
|
String |
batchInsertSeparator()
批量插入数据时,多行数据之间分隔符
|
default List<Run> |
buildAddRun(Column column) |
default List<Run> |
buildAddRun(Column column,
boolean slice) |
default List<Run> |
buildAddRun(Constraint constraint) |
List<Run> |
buildAddRun(DataRuntime runtime,
Column column) |
List<Run> |
buildAddRun(DataRuntime runtime,
Column column,
boolean slice)
添加列
|
List<Run> |
buildAddRun(DataRuntime runtime,
Constraint constraint)
添加约束
|
List<Run> |
buildAddRun(DataRuntime runtime,
ForeignKey foreign)
添加外键
|
List<Run> |
buildAddRun(DataRuntime runtime,
Index index)
添加索引
|
List<Run> |
buildAddRun(DataRuntime runtime,
PrimaryKey primary)
添加主键
|
List<Run> |
buildAddRun(DataRuntime runtime,
Tag tag)
添加标签
|
default List<Run> |
buildAddRun(ForeignKey foreign) |
default List<Run> |
buildAddRun(Index index) |
default List<Run> |
buildAddRun(PrimaryKey primary) |
default List<Run> |
buildAddRun(Tag tag) |
default List<Run> |
buildAlterRun(Column column) |
default List<Run> |
buildAlterRun(Column column,
boolean slice) |
default List<Run> |
buildAlterRun(Constraint constraint) |
List<Run> |
buildAlterRun(DataRuntime runtime,
Column column) |
List<Run> |
buildAlterRun(DataRuntime runtime,
Column column,
boolean slice)
修改列
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Constraint constraint)
修改约束
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
ForeignKey foreign)
修改外键
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Function function)
修改函数
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Index index)
修改索引
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
MasterTable table)
修改主表
|
List<Run> |
buildAlterRun(DataRuntime runtime,
PartitionTable table)
修改分区表
|
List<Run> |
buildAlterRun(DataRuntime runtime,
PrimaryKey primary)
修改主键
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Procedure procedure)
修改存储过程
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Table table)
修改表
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Table table,
Collection<Column> columns)
修改列
有可能生成多条SQL,根据数据库类型优先合并成一条执行
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Tag tag)
修改标签
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
Trigger trigger)
修改触发器
有可能生成多条SQL
|
List<Run> |
buildAlterRun(DataRuntime runtime,
View view)
修改视图
|
default List<Run> |
buildAlterRun(ForeignKey foreign) |
default List<Run> |
buildAlterRun(Function function) |
default List<Run> |
buildAlterRun(Index index) |
default List<Run> |
buildAlterRun(MasterTable table) |
default List<Run> |
buildAlterRun(PartitionTable table) |
default List<Run> |
buildAlterRun(PrimaryKey primary) |
default List<Run> |
buildAlterRun(Procedure procedure) |
default List<Run> |
buildAlterRun(Table table) |
default List<Run> |
buildAlterRun(Table table,
Collection<Column> columns) |
default List<Run> |
buildAlterRun(Tag tag) |
default List<Run> |
buildAlterRun(Trigger trigger) |
default List<Run> |
buildAlterRun(View view) |
default List<Run> |
buildAppendCommentRun(Column column) |
List<Run> |
buildAppendCommentRun(DataRuntime runtime,
Column column)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
buildAppendCommentRun(DataRuntime runtime,
MasterTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
buildAppendCommentRun(DataRuntime runtime,
PartitionTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
buildAppendCommentRun(DataRuntime runtime,
Table table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
buildAppendCommentRun(DataRuntime runtime,
View view)
添加视图备注(视图创建完成后调用,创建过程能添加备注的不需要实现)
|
default List<Run> |
buildAppendCommentRun(MasterTable table) |
default List<Run> |
buildAppendCommentRun(PartitionTable table) |
default List<Run> |
buildAppendCommentRun(Table table) |
default List<Run> |
buildAppendCommentRun(View view) |
default List<Run> |
buildChangeCommentRun(Column column) |
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
Column column)
修改备注
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
MasterTable table)
修改主表备注
|
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
PartitionTable table)
修改分区表备注
|
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
Table table)
修改备注
|
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
Tag tag)
修改备注
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildChangeCommentRun(DataRuntime runtime,
View view)
修改备注
|
default List<Run> |
buildChangeCommentRun(MasterTable table) |
default List<Run> |
buildChangeCommentRun(PartitionTable table) |
default List<Run> |
buildChangeCommentRun(Table table) |
default List<Run> |
buildChangeCommentRun(Tag tag) |
default List<Run> |
buildChangeCommentRun(View view) |
default List<Run> |
buildChangeDefaultRun(Column column) |
List<Run> |
buildChangeDefaultRun(DataRuntime runtime,
Column column)
修改默认值
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildChangeDefaultRun(DataRuntime runtime,
Tag tag)
修改默认值
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
default List<Run> |
buildChangeDefaultRun(Tag tag) |
default List<Run> |
buildChangeNullableRun(Column column) |
List<Run> |
buildChangeNullableRun(DataRuntime runtime,
Column column)
修改非空限制
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildChangeNullableRun(DataRuntime runtime,
Tag tag)
修改非空限制
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
default List<Run> |
buildChangeNullableRun(Tag tag) |
default List<Run> |
buildChangeTypeRun(Column column) |
List<Run> |
buildChangeTypeRun(DataRuntime runtime,
Column column)
修改数据类型
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildChangeTypeRun(DataRuntime runtime,
Tag tag)
修改数据类型
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
default List<Run> |
buildChangeTypeRun(Tag tag) |
List<Run> |
buildCreateRun(DataRuntime runtime,
Function function)
添加函数
|
List<Run> |
buildCreateRun(DataRuntime runtime,
MasterTable table)
创建主有
|
List<Run> |
buildCreateRun(DataRuntime runtime,
PartitionTable table)
创建分区表
|
List<Run> |
buildCreateRun(DataRuntime runtime,
Procedure procedure)
添加存储过程
|
List<Run> |
buildCreateRun(DataRuntime runtime,
Table table)
创建表
|
List<Run> |
buildCreateRun(DataRuntime runtime,
Trigger trigger)
添加触发器
|
List<Run> |
buildCreateRun(DataRuntime runtime,
View view)
创建视图
|
default List<Run> |
buildCreateRun(Function function) |
default List<Run> |
buildCreateRun(MasterTable table) |
default List<Run> |
buildCreateRun(PartitionTable table) |
default List<Run> |
buildCreateRun(Procedure procedure) |
default List<Run> |
buildCreateRun(Table table) |
default List<Run> |
buildCreateRun(Trigger trigger) |
default List<Run> |
buildCreateRun(View view) |
Run |
buildDeleteRun(DataRuntime runtime,
int batch,
String table,
String column,
Object values)
构造 delete 命令
合成 where column in (values) |
Run |
buildDeleteRun(DataRuntime runtime,
String table,
Object obj,
String... columns)
构造 delete 命令
合成 where k1 = v1 and k2 = v2 |
Run |
buildDeleteRunFromEntity(DataRuntime runtime,
String table,
Object obj,
String... columns)
构造 delete 命令
合成 where k1 = v1 and k2 = v2 |
Run |
buildDeleteRunFromTable(DataRuntime runtime,
int batch,
String table,
String column,
Object values)
构造 delete 命令
合成 where column in (values) |
default List<Run> |
buildDropAutoIncrement(Column column) |
List<Run> |
buildDropAutoIncrement(DataRuntime runtime,
Column column)
取消自增
|
default List<Run> |
buildDropRun(Column column) |
default List<Run> |
buildDropRun(Column column,
boolean slice) |
default List<Run> |
buildDropRun(Constraint constraint) |
List<Run> |
buildDropRun(DataRuntime runtime,
Column column) |
List<Run> |
buildDropRun(DataRuntime runtime,
Column column,
boolean slice)
删除列
|
List<Run> |
buildDropRun(DataRuntime runtime,
Constraint constraint)
删除约束
|
List<Run> |
buildDropRun(DataRuntime runtime,
ForeignKey foreign)
删除外键
|
List<Run> |
buildDropRun(DataRuntime runtime,
Function function)
删除函数
|
List<Run> |
buildDropRun(DataRuntime runtime,
Index index)
删除索引
|
List<Run> |
buildDropRun(DataRuntime runtime,
MasterTable table)
删除主表
|
List<Run> |
buildDropRun(DataRuntime runtime,
PartitionTable table)
删除分区表
|
List<Run> |
buildDropRun(DataRuntime runtime,
PrimaryKey primary)
删除主键
|
List<Run> |
buildDropRun(DataRuntime runtime,
Procedure procedure)
删除存储过程
|
List<Run> |
buildDropRun(DataRuntime runtime,
Table table)
删除表
|
List<Run> |
buildDropRun(DataRuntime runtime,
Tag tag)
删除标签
|
List<Run> |
buildDropRun(DataRuntime runtime,
Trigger trigger)
删除触发器
|
List<Run> |
buildDropRun(DataRuntime runtime,
View view)
删除视图
|
default List<Run> |
buildDropRun(ForeignKey foreign) |
default List<Run> |
buildDropRun(Function function) |
default List<Run> |
buildDropRun(Index index) |
default List<Run> |
buildDropRun(MasterTable table) |
default List<Run> |
buildDropRun(PartitionTable table) |
default List<Run> |
buildDropRun(PrimaryKey primary) |
default List<Run> |
buildDropRun(Procedure procedure) |
default List<Run> |
buildDropRun(Table table) |
default List<Run> |
buildDropRun(Tag tag) |
default List<Run> |
buildDropRun(Trigger trigger) |
default List<Run> |
buildDropRun(View view) |
Run |
buildExecuteRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建执行SQL
|
default Run |
buildInsertRun(DataRuntime runtime,
int batch,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildInsertRun(DataRuntime runtime,
int batch,
Object obj,
String... columns) |
Run |
buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
insert [build]
|
default Run |
buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
List<String> columns) |
default Run |
buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
String... columns) |
default Run |
buildInsertRun(int batch,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildInsertRun(int batch,
Object obj,
String... columns) |
default Run |
buildInsertRun(int batch,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
buildInsertRun(int batch,
String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildInsertRun(int batch,
String dest,
Object obj,
List<String> columns) |
default Run |
buildInsertRun(int batch,
String dest,
Object obj,
String... columns) |
List<Run> |
buildQueryColumnRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的列
|
List<Run> |
buildQueryConstraintRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的约束
|
default List<Run> |
buildQueryConstraintRun(Table table,
boolean metadata) |
default List<Run> |
buildQueryDatabaseRun() |
List<Run> |
buildQueryDatabaseRun(DataRuntime runtime)
查询所有数据库
|
List<Run> |
buildQueryDatabaseRun(DataRuntime runtime,
String name) |
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
Function function)
查询函数DDL
|
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
MasterTable table)
查询 MasterTable DDL
|
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
PartitionTable table)
查询 PartitionTable DDL
|
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
Procedure procedure)
查询存储DDL
|
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
Table table)
查询表DDL
|
List<Run> |
buildQueryDDLRun(DataRuntime runtime,
View view)
查询viewDDL
|
default List<Run> |
buildQueryDDLRun(Function function) |
default List<Run> |
buildQueryDDLRun(MasterTable table) |
default List<Run> |
buildQueryDDLRun(PartitionTable table) |
default List<Run> |
buildQueryDDLRun(Procedure procedure) |
default List<Run> |
buildQueryDDLRun(Table table) |
default List<Run> |
buildQueryDDLRun(View view) |
List<Run> |
buildQueryForeignsRun(DataRuntime runtime,
Table table)
查询表上的外键
|
default List<Run> |
buildQueryForeignsRun(Table table) |
List<Run> |
buildQueryFunctionRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
default List<Run> |
buildQueryFunctionRun(String catalog,
String schema,
String name) |
List<Run> |
buildQueryIndexRun(DataRuntime runtime,
Table table,
String name)
查询表上的索引
|
default List<Run> |
buildQueryIndexRun(Table table,
String name) |
List<Run> |
buildQueryMasterTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询主表
|
default List<Run> |
buildQueryMasterTableRun(String catalog,
String schema,
String pattern,
String types) |
List<Run> |
buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags) |
List<Run> |
buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags,
String name)
根据主表查询分区表
|
List<Run> |
buildQueryPartitionTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询分区表
|
default List<Run> |
buildQueryPartitionTableRun(MasterTable master,
Map<String,Object> tags) |
default List<Run> |
buildQueryPartitionTableRun(MasterTable master,
Map<String,Object> tags,
String name) |
default List<Run> |
buildQueryPartitionTableRun(String catalog,
String schema,
String pattern,
String types) |
List<Run> |
buildQueryPrimaryRun(DataRuntime runtime,
Table table)
查询表上的主键
|
default List<Run> |
buildQueryPrimaryRun(Table table) |
List<Run> |
buildQueryProcedureRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
default List<Run> |
buildQueryProcedureRun(String catalog,
String schema,
String name) |
Run |
buildQueryRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建 select 最终可执行命令
|
List<Run> |
buildQuerySequence(DataRuntime runtime,
boolean next,
String... names)
创建 select sequence 最终可执行命令
|
List<Run> |
buildQueryTableCommentRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询表备注
|
default List<Run> |
buildQueryTableCommentRun(String catalog,
String schema,
String pattern,
String types) |
default List<Run> |
buildQueryTableRun(boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
List<Run> |
buildQueryTableRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询表,不是查表中的数据
|
List<Run> |
buildQueryTagRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的列
|
default List<Run> |
buildQueryTagRun(Table table,
boolean metadata) |
List<Run> |
buildQueryTriggerRun(DataRuntime runtime,
Table table,
List<Trigger.EVENT> events)
查询表上的trigger
|
default List<Run> |
buildQueryTriggerRun(Table table,
List<Trigger.EVENT> events) |
default List<Run> |
buildQueryViewRun(boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
List<Run> |
buildQueryViewRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询视图
|
default List<Run> |
buildRenameRun(Column column) |
default List<Run> |
buildRenameRun(Constraint constraint) |
List<Run> |
buildRenameRun(DataRuntime runtime,
Column column)
修改列名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Constraint constraint)
修改约束名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
ForeignKey foreign)
修改外键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Function function)
修改函数名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Index index)
修改索引名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
MasterTable table)
主表重命名
|
List<Run> |
buildRenameRun(DataRuntime runtime,
PartitionTable table)
分区表重命名
|
List<Run> |
buildRenameRun(DataRuntime runtime,
PrimaryKey primary)
修改主键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Procedure procedure)
修改存储过程名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Table table)
重命名
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Tag tag)
修改标签名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
Trigger trigger)
修改触发器名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
buildRenameRun(DataRuntime runtime,
View view)
重命名
|
default List<Run> |
buildRenameRun(ForeignKey foreign) |
default List<Run> |
buildRenameRun(Function function) |
default List<Run> |
buildRenameRun(Index index) |
default List<Run> |
buildRenameRun(MasterTable table) |
default List<Run> |
buildRenameRun(PartitionTable table) |
default List<Run> |
buildRenameRun(PrimaryKey primary) |
default List<Run> |
buildRenameRun(Procedure procedure) |
default List<Run> |
buildRenameRun(Table table) |
default List<Run> |
buildRenameRun(Tag tag) |
default List<Run> |
buildRenameRun(Trigger trigger) |
default List<Run> |
buildRenameRun(View view) |
List<Run> |
buildTruncateRun(DataRuntime runtime,
String table)
构造 truncate 命令<
|
Run |
buildUpdateRun(DataRuntime runtime,
int btch,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns)
update [build]
|
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
Object obj,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
String... columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
List<String> columns) |
default Run |
buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
String... columns) |
default Run |
buildUpdateRun(Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
buildUpdateRun(Object obj,
ConfigStore configs,
String... columns) |
default Run |
buildUpdateRun(Object obj,
List<String> columns) |
default Run |
buildUpdateRun(Object obj,
String... columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
ConfigStore configs,
String... columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
List<String> columns) |
default Run |
buildUpdateRun(String dest,
Object obj,
String... columns) |
Run |
buildUpdateRunFromCollection(DataRuntime runtime,
int batch,
String dest,
Collection list,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
批量执行时考生调用,否则会遍历调用 fromDataRow或fromEntity
|
Run |
buildUpdateRunFromDataRow(DataRuntime runtime,
String dest,
DataRow row,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
根据DataRow创建 update 最终可执行命令
|
Run |
buildUpdateRunFromEntity(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
根据实体对象创建 update 最终可执行命令
|
StringBuilder |
charset(DataRuntime runtime,
StringBuilder builder,
Column column)
编码
|
StringBuilder |
checkColumnExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除列之前 检测表是否存在
IF NOT EXISTS
|
Boolean |
checkIgnorePrecision(DataRuntime runtime,
String datatype) |
Boolean |
checkIgnoreScale(DataRuntime runtime,
String datatype) |
void |
checkSchema(DataRuntime runtime,
Connection con,
Table table) |
void |
checkSchema(DataRuntime runtime,
DataSource dataSource,
Table table) |
void |
checkSchema(DataRuntime runtime,
Table table) |
StringBuilder |
checkTableExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除表之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
checkTagExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除标签之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
checkViewExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除视图之前 检测视图是否存在
IF NOT EXISTS
|
Column |
column(DataRuntime runtime,
Column column,
ResultSet rs) |
Column |
column(DataRuntime runtime,
Column column,
ResultSetMetaData rsm,
int index) |
<T extends Column> |
columns(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> columns,
Table table,
String pattern)
解析JDBC get columns结果
|
<T extends Column> |
columns(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> columns,
DataSet set)
根据查询结果集构造Tag
|
<T extends Column> |
columns(DataRuntime runtime,
String random,
boolean greedy,
Table table,
boolean primary)
查询表结构
|
<T extends Column> |
columns(DataRuntime runtime,
String random,
boolean create,
Table table,
LinkedHashMap<String,T> columns,
List<Run> runs) |
StringBuilder |
comment(DataRuntime runtime,
StringBuilder builder,
Column column)
备注
|
void |
comment(DataRuntime runtime,
StringBuilder builder,
Index index)
索引备注
|
StringBuilder |
comment(DataRuntime runtime,
StringBuilder builder,
Table table)
表备注
|
StringBuilder |
comment(DataRuntime runtime,
StringBuilder builder,
View view)
视图备注
|
<T extends Table> |
comments(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
表备注
|
DatabaseType |
compatible()
对应的兼容模式,有些数据库会兼容oracle或pg,需要分别提供两个JDBCAdapter或者直接依赖oracle/pg的adapter
参考SQLAdapterUtil定位adapter的方法
|
String |
concat(DataRuntime runtime,
String... args)
拼接字符串
|
LinkedHashMap<String,Column> |
confirmInsertColumns(DataRuntime runtime,
String dest,
Object data,
List<String> columns,
boolean batch)
确认需要插入的列
|
<T extends Constraint> |
constraints(DataRuntime runtime,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
ResultSet set) |
<T extends Constraint> |
constraints(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
DataSet set)
根据查询结果集构造Constraint
|
Object |
convert(DataRuntime runtime,
Column column,
Object value) |
boolean |
convert(DataRuntime runtime,
Column column,
RunValue run)
数据类型转换,没有提供column的根据value类型
|
Object |
convert(DataRuntime runtime,
ColumnType columnType,
Object value) |
boolean |
convert(DataRuntime runtime,
Map<String,Column> columns,
RunValue run)
数据类型转换
|
boolean |
convert(DataRuntime runtime,
String catalog,
String schema,
String table,
RunValue run)
数据类型转换
子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换
|
boolean |
convert(DataRuntime runtime,
Table table,
Run run) |
long |
count(DataRuntime runtime,
String random,
Run run)
count [执行]
|
long |
count(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
count [入口]
|
Object |
createConditionFindInSet(DataRuntime runtime,
StringBuilder builder,
String column,
Compare compare,
Object value)
构造 FIND_IN_SET 查询条件
如果不需要占位符 返回null 否则原样返回value
|
StringBuilder |
createConditionIn(DataRuntime runtime,
StringBuilder builder,
Compare compare,
Object value)
构造(NOT) IN 查询条件
|
Object |
createConditionLike(DataRuntime runtime,
StringBuilder builder,
Compare compare,
Object value)
构造 LIKE 查询条件
如果不需要占位符 返回null 否则原样返回value
|
Database |
database(DataRuntime runtime,
int index,
boolean create,
DataSet set) |
Database |
database(DataRuntime runtime,
String random,
String name) |
LinkedHashMap<String,Database> |
databases(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,Database> databases,
DataSet set)
根据查询结果集构造 Database
|
LinkedHashMap<String,Database> |
databases(DataRuntime runtime,
String random) |
List<String> |
ddl(DataRuntime runtime,
int index,
Function function,
List<String> ddls,
DataSet set)
查询 Function DDL
|
List<String> |
ddl(DataRuntime runtime,
int index,
MasterTable table,
List<String> ddls,
DataSet set)
查询 MasterTable DDL
|
List<String> |
ddl(DataRuntime runtime,
int index,
PartitionTable table,
List<String> ddls,
DataSet set)
查询 MasterTable DDL
|
List<String> |
ddl(DataRuntime runtime,
int index,
Procedure procedure,
List<String> ddls,
DataSet set)
查询 Procedure DDL
|
List<String> |
ddl(DataRuntime runtime,
int index,
Table table,
List<String> ddls,
DataSet set)
查询表DDL
|
List<String> |
ddl(DataRuntime runtime,
int index,
View view,
List<String> ddls,
DataSet set)
查询 view DDL
|
List<String> |
ddl(DataRuntime runtime,
String random,
Function function) |
List<String> |
ddl(DataRuntime runtime,
String random,
MasterTable table) |
List<String> |
ddl(DataRuntime runtime,
String random,
PartitionTable table) |
List<String> |
ddl(DataRuntime runtime,
String random,
Procedure procedure) |
List<String> |
ddl(DataRuntime runtime,
String random,
Table table,
boolean init) |
List<String> |
ddl(DataRuntime runtime,
String random,
View view) |
StringBuilder |
defaultValue(DataRuntime runtime,
StringBuilder builder,
Column column)
默认值
|
StringBuilder |
define(DataRuntime runtime,
StringBuilder builder,
Column column)
定义列
|
long |
delete(DataRuntime runtime,
String random,
Run run) |
long |
delete(DataRuntime runtime,
String random,
String table,
ConfigStore configs,
String... conditions)
delete [入口]
根据configs和conditions过滤条件 |
long |
delete(DataRuntime runtime,
String random,
String table,
Object obj,
String... columns)
delete [入口]
合成 where k1 = v1 and k2 = v2 |
<T> long |
deletes(DataRuntime runtime,
String random,
int batch,
String table,
String column,
Collection<T> values)
delete [入口]
合成 where column in (values) |
default <T> long |
deletes(DataRuntime runtime,
String random,
int batch,
String table,
String column,
T... values) |
default <T> long |
deletes(DataRuntime runtime,
String random,
String table,
String column,
Collection<T> values) |
default <T> long |
deletes(DataRuntime runtime,
String random,
String table,
String column,
T... values) |
StringBuilder |
dropColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
删除列引导
|
void |
each(DataRuntime runtime,
StringBuilder builder,
Trigger trigger) |
long |
execute(DataRuntime runtime,
String random,
int batch,
String sql,
List<Object> values) |
boolean |
execute(DataRuntime runtime,
String random,
Procedure procedure)
procedure [执行]
|
long |
execute(DataRuntime runtime,
String random,
Run run)
execute [执行]
|
long |
execute(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
execute [入口]
|
boolean |
exists(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
exists [入口]
|
void |
fillDeleteRunContent(DataRuntime runtime,
Run run)
填充 delete 命令内容
构造查询主体 拼接where group等(不含分页 ORDER)
|
void |
fillExecuteContent(DataRuntime runtime,
Run run)
填充 execute 命令内容
|
void |
fillInsertContent(DataRuntime runtime,
Run run,
String dest,
Collection list,
LinkedHashMap<String,Column> columns)
填充inset命令内容(根据集合类型)
|
void |
fillInsertContent(DataRuntime runtime,
Run run,
String dest,
DataSet set,
LinkedHashMap<String,Column> columns)
填充inset命令内容(根据集合类型)
|
void |
fillQueryContent(DataRuntime runtime,
Run run)
填充 select 命令内容
构造查询主体 拼接where group等(不含分页 ORDER)
|
<T extends ForeignKey> |
foreigns(DataRuntime runtime,
int index,
Table table,
LinkedHashMap<String,T> foreigns,
DataSet set)
根据查询结果集构造PrimaryKey
|
<T extends ForeignKey> |
foreigns(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Function> |
functions(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> functions,
DataSet set) |
<T extends Function> |
functions(DataRuntime runtime,
String random,
boolean recover,
String catalog,
String schema,
String name) |
String |
generatedKey()
自增主键返回标识
|
String |
getDelimiterFr()
界定符(分隔符)
|
String |
getDelimiterTo() |
String |
getPrimaryKey(DataRuntime runtime,
Object obj)
获取单主键列名
|
Object |
getPrimaryValue(DataRuntime runtime,
Object obj)
获取单主键值
|
StringBuilder |
increment(DataRuntime runtime,
StringBuilder builder,
Column column)
递增列
|
<T extends Index> |
indexs(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> indexs,
Table table,
boolean unique,
boolean approximate)
解析JDBC getIndex结果
|
<T extends Index> |
indexs(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> indexs,
DataSet set)
根据查询结果集构造Index
|
<T extends Index> |
indexs(DataRuntime runtime,
String random,
boolean greedy,
Table table,
String name) |
default long |
insert(DataRuntime runtime,
String random,
int batch,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(DataRuntime runtime,
String random,
int batch,
Object data,
String... columns) |
long |
insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
insert [入口]
执行完成后会补齐自增主键值 |
default long |
insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
List<String> columns) |
default long |
insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
String... columns) |
default long |
insert(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
String... columns) |
long |
insert(DataRuntime runtime,
String random,
Object data,
Run run,
String[] pks)
insert [执行]
执行完成后会补齐自增主键值 |
default long |
insert(DataRuntime runtime,
String random,
Object data,
Run run,
String[] pks,
boolean simple)
insert [执行]
有些不支持返回自增的单独执行 执行完成后会补齐自增主键值 |
default long |
insert(DataRuntime runtime,
String random,
Object data,
String... columns) |
default long |
insert(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
default long |
insert(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
default long |
insert(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
default long |
insert(int batch,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(int batch,
Object data,
String... columns) |
default long |
insert(int batch,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(int batch,
String dest,
Object data,
List<String> columns) |
default long |
insert(int batch,
String dest,
Object data,
String... columns) |
default long |
insert(Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(Object data,
String... columns) |
default long |
insert(String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
insert(String dest,
Object data,
List<String> columns) |
default long |
insert(String dest,
Object data,
String... columns) |
boolean |
isBooleanColumn(DataRuntime runtime,
Column column)
是否是boolean列
|
boolean |
isCharColumn(DataRuntime runtime,
Column column)
是否是字符类型
决定值是否需要加单引号
number boolean 返回false
其他返回true
|
boolean |
isIgnorePrecision(DataRuntime runtime,
Column column) |
boolean |
isIgnoreScale(DataRuntime runtime,
Column column) |
boolean |
isNumberColumn(DataRuntime runtime,
Column column)
是否是数字列
|
Map<String,Object> |
map(DataRuntime runtime,
String random,
Run run)
select [执行]
|
List<Map<String,Object>> |
maps(DataRuntime runtime,
String random,
ConfigStore configs,
Run run)
select [执行]
|
List<Map<String,Object>> |
maps(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
select [入口]
对性能有要求的场景调用,返回java原生map集合,结果中不包含元数据信息 |
String |
mergeFinalExists(DataRuntime runtime,
Run run)
合成最终 exists 命令
|
String |
mergeFinalQuery(DataRuntime runtime,
Run run)
合成最终 select 命令 包含分页 排序
|
String |
mergeFinalTotal(DataRuntime runtime,
Run run)
合成最终 select count 命令
|
<T extends MasterTable> |
mtables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types)
根据JDBC
|
<T extends MasterTable> |
mtables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
<T extends MasterTable> |
mtables(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
StringBuilder |
name(DataRuntime runtime,
StringBuilder builder,
Function function) |
StringBuilder |
name(DataRuntime runtime,
StringBuilder builder,
Procedure procedure) |
StringBuilder |
name(DataRuntime runtime,
StringBuilder builder,
Table table)
构造表名
|
StringBuilder |
nullable(DataRuntime runtime,
StringBuilder builder,
Column column)
非空
|
String |
objectName(DataRuntime runtime,
String name)
对象名称格式化(大小写转换),在查询系统表时需要
|
StringBuilder |
onupdate(DataRuntime runtime,
StringBuilder builder,
Column column)
更新行事件
|
void |
parameter(DataRuntime runtime,
StringBuilder builder,
Parameter parameter)
生在输入输出参数
|
StringBuilder |
position(DataRuntime runtime,
StringBuilder builder,
Column column)
位置
|
PrimaryKey |
primary(DataRuntime runtime,
int index,
Table table,
DataSet set)
根据查询结果集构造PrimaryKey
|
PrimaryKey |
primary(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
StringBuilder |
primary(DataRuntime runtime,
StringBuilder builder,
Column column)
主键(注意不要跟表定义中的主键重复)
|
StringBuilder |
primary(DataRuntime runtime,
StringBuilder builder,
Table table)
创建主键在创建表的DDL结尾部分
|
<T extends Procedure> |
procedures(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> procedures,
DataSet set) |
<T extends Procedure> |
procedures(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String name) |
List<Map<String,Object>> |
process(DataRuntime runtime,
List<Map<String,Object>> list)
JDBC执行完成后的结果处理
|
<T extends PartitionTable> |
ptables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
MasterTable master)
根据JDBC
|
<T extends PartitionTable> |
ptables(DataRuntime runtime,
int total,
int index,
boolean create,
MasterTable master,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
<T extends PartitionTable> |
ptables(DataRuntime runtime,
String random,
boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
DataSet |
querys(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi)
select procedure [入口]
|
DataSet |
querys(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
select [入口]
返回DataSet中包含元数据信息,如果性能有要求换成maps |
Object |
read(DataRuntime runtime,
Column metadata,
Object value,
Class clazz)
从数据库中读取数据,常用的基本类型可以自动转换,不常用的如json/point/polygon/blob等转换成anyline对应的类型
|
DataReader |
reader(Class clazz) |
DataReader |
reader(ColumnType type) |
default long |
save(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
List<String> columns) |
default long |
save(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
String... columns) |
default long |
save(DataRuntime runtime,
String random,
Object data,
List<String> columns) |
default long |
save(DataRuntime runtime,
String random,
Object data,
String... columns) |
long |
save(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
save [入口]
根据是否有主键值确认insert | update 执行完成后会补齐自增主键值 |
default long |
save(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
save(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
default long |
save(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
default long |
save(Object data,
boolean checkPrimary,
List<String> columns) |
default long |
save(Object data,
boolean checkPrimary,
String... columns) |
default long |
save(Object data,
List<String> columns) |
default long |
save(Object data,
String... columns) |
default long |
save(String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
default long |
save(String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
save(String dest,
Object data,
List<String> columns) |
default long |
save(String dest,
Object data,
String... columns) |
DataSet |
select(DataRuntime runtime,
String random,
boolean system,
String table,
ConfigStore configs,
Run run)
select [执行]
|
<T> EntitySet<T> |
selects(DataRuntime runtime,
String random,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
select [入口]
|
DataRow |
sequence(DataRuntime runtime,
String random,
boolean next,
String... names)
select [执行]
|
boolean |
supportInsertPlaceholder()
插入数据时是否支持占位符
|
<T extends Table> |
tables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types)
根据驱动内置方法补充
|
<T extends Table> |
tables(DataRuntime runtime,
boolean create,
List<T> tables,
String catalog,
String schema,
String pattern,
String... types) |
<T extends Table> |
tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
<T extends Table> |
tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
List<T> tables,
DataSet set) |
<T extends Table> |
tables(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
<T extends Table> |
tables(DataRuntime runtime,
String random,
String catalog,
String schema,
String pattern,
String types) |
<T extends Tag> |
tags(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tags,
Table table,
String pattern)
解析JDBC get columns结果
|
<T extends Tag> |
tags(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> tags,
DataSet set)
根据查询结果集构造Tag
|
<T extends Tag> |
tags(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Trigger> |
triggers(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> triggers,
DataSet set)
根据查询结果集构造Constraint
|
<T extends Trigger> |
triggers(DataRuntime runtime,
String random,
boolean greedy,
Table table,
List<Trigger.EVENT> events) |
int |
truncate(DataRuntime runtime,
String random,
String table)
truncate [入口]
|
DatabaseType |
type() |
StringBuilder |
type(DataRuntime runtime,
StringBuilder builder,
Column column)
数据类型
|
StringBuilder |
type(DataRuntime runtime,
StringBuilder builder,
Column column,
String type,
boolean isIgnorePrecision,
boolean isIgnoreScale)
列数据类型定义
|
ColumnType |
type(String type)
转换成相应数据库支持类型
|
default long |
update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs) |
default long |
update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
int batch,
Object data,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
int batch,
Object data,
String... columns) |
long |
update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
UPDATE [入口]
|
default long |
update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs) |
default long |
update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
Object data,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
Object data,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(DataRuntime runtime,
String random,
String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
long |
update(DataRuntime runtime,
String random,
String dest,
Object data,
Run run)
update [执行]
|
default long |
update(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
default long |
update(int batch,
Object data,
ConfigStore configs) |
default long |
update(int batch,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(int batch,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(int batch,
Object data,
List<String> columns) |
default long |
update(int batch,
Object data,
String... columns) |
default long |
update(int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(int batch,
String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(int batch,
String dest,
Object data,
List<String> columns) |
default long |
update(int batch,
String dest,
Object data,
String... columns) |
default long |
update(Object data,
ConfigStore configs) |
default long |
update(Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(Object data,
ConfigStore configs,
String... columns) |
default long |
update(Object data,
List<String> columns) |
default long |
update(Object data,
String... columns) |
default long |
update(String dest,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
update(String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
update(String dest,
Object data,
List<String> columns) |
default long |
update(String dest,
Object data,
String... columns) |
String |
value(DataRuntime runtime,
Column column,
DriverAdapter.SQL_BUILD_IN_VALUE value)
内置函数
如果需要引号,方法应该一块返回
|
void |
value(DataRuntime runtime,
StringBuilder builder,
Object row,
String key)
在不检测数据库结构时才生效,否则会被convert代替
生成value格式 主要确定是否需要单引号 或 类型转换
有些数据库不提供默认的 隐式转换 需要显示的把String转换成相应的数据类型
如 TO_DATE('')
|
String |
version() |
<T extends View> |
views(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> views,
String catalog,
String schema,
String pattern,
String... types)
根据JDBC补充
|
<T extends View> |
views(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> views,
DataSet set)
根据查询结果集构造View
|
<T extends View> |
views(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
Object |
write(DataRuntime runtime,
Column metadata,
Object value,
boolean placeholder)
通过占位符写入数据库前转换成数据库可接受的Java数据类型
|
DataWriter |
writer(Object support)
根据java数据类型定位数据库数据类型
在不开启自动检测数据类型时会调用
|
DatabaseType type()
String version()
String getDelimiterFr()
String getDelimiterTo()
DatabaseType compatible()
ColumnType type(String type)
type - typeDataWriter writer(Object support)
support - class或ColumnTypeDataReader reader(Class clazz)
DataReader reader(ColumnType type)
long insert(DataRuntime runtime, String random, int batch, String dest, Object data, boolean checkPrimary, List<String> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表data - 数据checkPrimary - 是否需要检查重复主键,默认不检查columns - 列default long insert(DataRuntime runtime, String random, int batch, String dest, Object data, boolean checkPrimary, String... columns)
default long insert(DataRuntime runtime, String random, int batch, Object data, boolean checkPrimary, String... columns)
default long insert(DataRuntime runtime, String random, int batch, String dest, Object data, List<String> columns)
default long insert(DataRuntime runtime, String random, int batch, String dest, Object data, String... columns)
default long insert(DataRuntime runtime, String random, int batch, Object data, String... columns)
default long insert(int batch,
String dest,
Object data,
boolean checkPrimary,
String... columns)
default long insert(DataRuntime runtime, String random, String dest, Object data, boolean checkPrimary, List<String> columns)
default long insert(DataRuntime runtime, String random, String dest, Object data, boolean checkPrimary, String... columns)
default long insert(DataRuntime runtime, String random, Object data, boolean checkPrimary, String... columns)
default long insert(DataRuntime runtime, String random, String dest, Object data, List<String> columns)
default long insert(DataRuntime runtime, String random, String dest, Object data, String... columns)
default long insert(DataRuntime runtime, String random, Object data, String... columns)
Run buildInsertRun(DataRuntime runtime, int batch, String dest, Object obj, boolean checkPrimary, List<String> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端dest - 表obj - 实体checkPrimary - 是否需要检查重复主键,默认不检查columns - 需要抛入的列 如果不指定 则根据实体属性解析default Run buildInsertRun(DataRuntime runtime, int batch, String dest, Object obj, boolean checkPrimary, String... columns)
default Run buildInsertRun(DataRuntime runtime, int batch, Object obj, boolean checkPrimary, String... columns)
default Run buildInsertRun(DataRuntime runtime, int batch, String dest, Object obj, List<String> columns)
default Run buildInsertRun(DataRuntime runtime, int batch, String dest, Object obj, String... columns)
default Run buildInsertRun(DataRuntime runtime, int batch, Object obj, String... columns)
default Run buildInsertRun(int batch, String dest, Object obj, boolean checkPrimary, List<String> columns)
default Run buildInsertRun(int batch, String dest, Object obj, boolean checkPrimary, String... columns)
default Run buildInsertRun(int batch, Object obj, boolean checkPrimary, String... columns)
void fillInsertContent(DataRuntime runtime, Run run, String dest, Collection list, LinkedHashMap<String,Column> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)dest - 表 如果不指定则根据DataSet解析list - 数据集columns - 插入的列void fillInsertContent(DataRuntime runtime, Run run, String dest, DataSet set, LinkedHashMap<String,Column> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)dest - 表 如果不指定则根据DataSet解析set - 数据集columns - 需要插入的列LinkedHashMap<String,Column> confirmInsertColumns(DataRuntime runtime, String dest, Object data, List<String> columns, boolean batch)
runtime - 运行环境主要包含驱动适配器 数据源或客户端data - Entity或DataRowbatch - 是否批量columns - 提供额外的判断依据String batchInsertSeparator()
boolean supportInsertPlaceholder()
String generatedKey()
long insert(DataRuntime runtime, String random, Object data, Run run, String[] pks)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令data - datarun - 最终待执行的命令和参数(如果是JDBC环境就是SQL)pks - 需要返回的主键default long insert(DataRuntime runtime, String random, Object data, Run run, String[] pks, boolean simple)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令data - datarun - 最终待执行的命令和参数(如果是JDBC环境就是SQL)pks - pkssimple - 没有实际作用 用来标识有些不支持返回自增的单独执行long save(DataRuntime runtime, String random, String dest, Object data, boolean checkPrimary, List<String> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表data - 数据checkPrimary - 是否需要检查重复主键,默认不检查columns - 列default long save(DataRuntime runtime, String random, Object data, boolean checkPrimary, List<String> columns)
default long save(DataRuntime runtime, String random, String dest, Object data, List<String> columns)
default long save(DataRuntime runtime, String random, Object data, List<String> columns)
default long save(DataRuntime runtime, String random, String dest, Object data, boolean checkPrimary, String... columns)
default long save(DataRuntime runtime, String random, Object data, boolean checkPrimary, String... columns)
default long save(DataRuntime runtime, String random, String dest, Object data, String... columns)
default long save(DataRuntime runtime, String random, Object data, String... columns)
long update(DataRuntime runtime, String random, int batch, String dest, Object data, ConfigStore configs, List<String> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表data - 数据configs - 条件columns - 列default long update(DataRuntime runtime, String random, int batch, Object data, ConfigStore configs, List<String> columns)
default long update(DataRuntime runtime, String random, int batch, String dest, Object data, List<String> columns)
default long update(DataRuntime runtime, String random, int batch, Object data, List<String> columns)
default long update(DataRuntime runtime, String random, int batch, Object data, ConfigStore configs)
default long update(DataRuntime runtime, String random, int batch, String dest, Object data, ConfigStore configs, String... columns)
default long update(DataRuntime runtime, String random, int batch, Object data, ConfigStore configs, String... columns)
default long update(DataRuntime runtime, String random, int batch, String dest, Object data, String... columns)
default long update(DataRuntime runtime, String random, int batch, Object data, String... columns)
default long update(int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
default long update(int batch,
Object data,
ConfigStore configs,
List<String> columns)
default long update(int batch,
Object data,
ConfigStore configs)
default long update(int batch,
String dest,
Object data,
ConfigStore configs,
String... columns)
default long update(int batch,
Object data,
ConfigStore configs,
String... columns)
default long update(DataRuntime runtime, String random, String dest, Object data, ConfigStore configs, List<String> columns)
default long update(DataRuntime runtime, String random, Object data, ConfigStore configs, List<String> columns)
default long update(DataRuntime runtime, String random, String dest, Object data, List<String> columns)
default long update(DataRuntime runtime, String random, Object data, List<String> columns)
default long update(DataRuntime runtime, String random, Object data, ConfigStore configs)
default long update(DataRuntime runtime, String random, String dest, Object data, ConfigStore configs, String... columns)
default long update(DataRuntime runtime, String random, Object data, ConfigStore configs, String... columns)
default long update(DataRuntime runtime, String random, String dest, Object data, String... columns)
default long update(DataRuntime runtime, String random, Object data, String... columns)
default long update(String dest, Object data, ConfigStore configs, List<String> columns)
default long update(Object data, ConfigStore configs, List<String> columns)
default long update(Object data, ConfigStore configs)
default long update(String dest, Object data, ConfigStore configs, String... columns)
default long update(Object data, ConfigStore configs, String... columns)
Run buildUpdateRun(DataRuntime runtime, int btch, String dest, Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端dest - 表obj - Entity或DtaRowcheckPrimary - 是否需要检查重复主键,默认不检查columns - 需要更新的列configs - 更新条件default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, ConfigStore configs, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, ConfigStore configs, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, List<String> columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, ConfigStore configs, boolean checkPrimary, String... columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, ConfigStore configs, boolean checkPrimary, String... columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, boolean checkPrimary, String... columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, boolean checkPrimary, String... columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, ConfigStore configs, String... columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, ConfigStore configs, String... columns)
default Run buildUpdateRun(DataRuntime runtime, String dest, Object obj, String... columns)
default Run buildUpdateRun(DataRuntime runtime, Object obj, String... columns)
default Run buildUpdateRun(String dest, Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(String dest, Object obj, boolean checkPrimary, List<String> columns)
default Run buildUpdateRun(String dest, Object obj, ConfigStore configs, List<String> columns)
default Run buildUpdateRun(Object obj, ConfigStore configs, List<String> columns)
default Run buildUpdateRun(String dest, Object obj, ConfigStore configs, boolean checkPrimary, String... columns)
default Run buildUpdateRun(Object obj, ConfigStore configs, boolean checkPrimary, String... columns)
default Run buildUpdateRun(String dest, Object obj, boolean checkPrimary, String... columns)
default Run buildUpdateRun(String dest, Object obj, ConfigStore configs, String... columns)
default Run buildUpdateRun(Object obj, ConfigStore configs, String... columns)
Run buildUpdateRunFromEntity(DataRuntime runtime, String dest, Object obj, ConfigStore configs, boolean checkPrimary, LinkedHashMap<String,Column> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端dest - 表obj - EntitycheckPrimary - 是否需要检查重复主键,默认不检查columns - 需要更新的列configs - 更新条件Run buildUpdateRunFromDataRow(DataRuntime runtime, String dest, DataRow row, ConfigStore configs, boolean checkPrimary, LinkedHashMap<String,Column> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端dest - 表row - DtaRowcheckPrimary - 是否需要检查重复主键,默认不检查columns - 需要更新的列configs - 更新条件Run buildUpdateRunFromCollection(DataRuntime runtime, int batch, String dest, Collection list, ConfigStore configs, boolean checkPrimary, LinkedHashMap<String,Column> columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端dest - 表list - CollectioncheckPrimary - 是否需要检查重复主键,默认不检查columns - 需要更新的列configs - 更新条件long update(DataRuntime runtime, String random, String dest, Object data, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表data - 数据run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)DataSet querys(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件DataSet querys(DataRuntime runtime, String random, Procedure procedure, PageNavi navi)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令procedure - 存储过程navi - 分页<T> EntitySet<T> selects(DataRuntime runtime, String random, RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions)
T - Entityruntime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令clazz - 类prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件List<Map<String,Object>> maps(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件Run buildQueryRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件List<Run> buildQuerySequence(DataRuntime runtime, boolean next, String... names)
runtime - 运行环境主要包含驱动适配器 数据源或客户端next - 是否生成返回下一个序列 false:cur true:nextnames - 存储过程名称svoid fillQueryContent(DataRuntime runtime, Run run)
run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)String mergeFinalQuery(DataRuntime runtime, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)Object createConditionLike(DataRuntime runtime, StringBuilder builder, Compare compare, Object value)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercompare - 比较方式 默认 equal 多个值默认 invalue - valueObject createConditionFindInSet(DataRuntime runtime, StringBuilder builder, String column, Compare compare, Object value)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列compare - 比较方式 默认 equal 多个值默认 invalue - valueStringBuilder createConditionIn(DataRuntime runtime, StringBuilder builder, Compare compare, Object value)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercompare - 比较方式 默认 equal 多个值默认 invalue - valueDataSet select(DataRuntime runtime, String random, boolean system, String table, ConfigStore configs, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令system - 系统表不检测列属性table - 表run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)List<Map<String,Object>> maps(DataRuntime runtime, String random, ConfigStore configs, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)Map<String,Object> map(DataRuntime runtime, String random, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)List<Map<String,Object>> process(DataRuntime runtime, List<Map<String,Object>> list)
runtime - 运行环境主要包含驱动适配器 数据源或客户端list - JDBC执行返回的结果集DataRow sequence(DataRuntime runtime, String random, boolean next, String... names)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令next - 是否查下一个序列值names - 存储过程名称slong count(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件long count(DataRuntime runtime, String random, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)String mergeFinalTotal(DataRuntime runtime, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)boolean exists(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 查询条件及相关设置conditions - 简单过滤条件String mergeFinalExists(DataRuntime runtime, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)long execute(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 查询条件及相关设置conditions - 简单过滤条件long execute(DataRuntime runtime, String random, int batch, String sql, List<Object> values)
boolean execute(DataRuntime runtime, String random, Procedure procedure)
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程random - randomRun buildExecuteRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 查询条件及相关设置conditions - 简单过滤条件void fillExecuteContent(DataRuntime runtime, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)long execute(DataRuntime runtime, String random, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)<T> long deletes(DataRuntime runtime, String random, int batch, String table, String column, Collection<T> values)
T - Truntime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 表column - 列values - 列对应的值default <T> long deletes(DataRuntime runtime, String random, String table, String column, Collection<T> values)
default <T> long deletes(DataRuntime runtime, String random, int batch, String table, String column, T... values)
default <T> long deletes(DataRuntime runtime, String random, String table, String column, T... values)
long delete(DataRuntime runtime, String random, String table, Object obj, String... columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 表obj - entity或DataRowcolumns - 删除条件的列或属性,根据columns取obj值并合成删除条件long delete(DataRuntime runtime, String random, String table, ConfigStore configs, String... conditions)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 表configs - 查询条件及相关设置conditions - 简单过滤条件int truncate(DataRuntime runtime, String random, String table)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 表Run buildDeleteRun(DataRuntime runtime, String table, Object obj, String... columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表 如果为空 可以根据obj解析obj - entity或DataRowcolumns - 删除条件的列或属性,根据columns取obj值并合成删除条件Run buildDeleteRun(DataRuntime runtime, int batch, String table, String column, Object values)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表column - 列values - valuesRun buildDeleteRunFromTable(DataRuntime runtime, int batch, String table, String column, Object values)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表column - 列values - valuesRun buildDeleteRunFromEntity(DataRuntime runtime, String table, Object obj, String... columns)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表 如果为空 可以根据obj解析obj - entity或DataRowcolumns - 删除条件的列或属性,根据columns取obj值并合成删除条件void fillDeleteRunContent(DataRuntime runtime, Run run)
run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)List<Run> buildTruncateRun(DataRuntime runtime, String table)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表long delete(DataRuntime runtime, String random, Run run)
void checkSchema(DataRuntime runtime, DataSource dataSource, Table table)
void checkSchema(DataRuntime runtime, Connection con, Table table)
void checkSchema(DataRuntime runtime, Table table)
LinkedHashMap<String,Database> databases(DataRuntime runtime, String random)
Database database(DataRuntime runtime, String random, String name)
List<Run> buildQueryDatabaseRun(DataRuntime runtime) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端Exception - 异常List<Run> buildQueryDatabaseRun(DataRuntime runtime, String name) throws Exception
ExceptionLinkedHashMap<String,Database> databases(DataRuntime runtime, int index, boolean create, LinkedHashMap<String,Database> databases, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDatabaseRun 返回顺序create - 上一步没有查到的,这一步是否需要新创建databases - 上一步查询结果set - setException - 异常Database database(DataRuntime runtime, int index, boolean create, DataSet set) throws Exception
Exception<T extends Table> List<T> tables(DataRuntime runtime, String random, boolean greedy, String catalog, String schema, String pattern, String types)
<T extends Table> LinkedHashMap<String,T> tables(DataRuntime runtime, String random, String catalog, String schema, String pattern, String types)
List<Run> buildQueryTableRun(DataRuntime runtime, boolean greedy, String catalog, String schema, String pattern, String types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schemapattern - patterntypes - types "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".Exceptiondefault List<Run> buildQueryTableRun(boolean greedy, String catalog, String schema, String pattern, String types) throws Exception
ExceptionList<Run> buildQueryTableCommentRun(DataRuntime runtime, String catalog, String schema, String pattern, String types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schemapattern - patterntypes - types "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".Exceptiondefault List<Run> buildQueryTableCommentRun(String catalog, String schema, String pattern, String types) throws Exception
Exception<T extends Table> LinkedHashMap<String,T> tables(DataRuntime runtime, int index, boolean create, String catalog, String schema, LinkedHashMap<String,T> tables, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照buildQueryTableRun返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常<T extends Table> List<T> tables(DataRuntime runtime, int index, boolean create, String catalog, String schema, List<T> tables, DataSet set) throws Exception
Exception<T extends Table> LinkedHashMap<String,T> tables(DataRuntime runtime, boolean create, LinkedHashMap<String,T> tables, String catalog, String schema, String pattern, String... types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建tables - 上一步查询结果catalog - catalogschema - schemapattern - patterntypes - types "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".Exception - 异常<T extends Table> List<T> tables(DataRuntime runtime, boolean create, List<T> tables, String catalog, String schema, String pattern, String... types) throws Exception
Exception<T extends Table> LinkedHashMap<String,T> comments(DataRuntime runtime, int index, boolean create, String catalog, String schema, LinkedHashMap<String,T> tables, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照buildQueryTableRun返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常List<String> ddl(DataRuntime runtime, String random, Table table, boolean init)
List<Run> buildQueryDDLRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表ExceptionList<String> ddl(DataRuntime runtime, int index, Table table, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序table - 表ddls - 上一步查询结果set - sql执行的结果集<T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, String random, boolean greedy, String catalog, String schema, String pattern, String types)
List<Run> buildQueryViewRun(DataRuntime runtime, boolean greedy, String catalog, String schema, String pattern, String types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schemapattern - patterntypes - types "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".Exceptiondefault List<Run> buildQueryViewRun(boolean greedy, String catalog, String schema, String pattern, String types) throws Exception
Exception<T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, int index, boolean create, String catalog, String schema, LinkedHashMap<String,T> views, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照buildQueryViewRun返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schemaviews - 上一步查询结果set - setException - 异常<T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, boolean create, LinkedHashMap<String,T> views, String catalog, String schema, String pattern, String... types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建views - 上一步查询结果catalog - catalogschema - schemapattern - patterntypes - types "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".Exception - 异常List<String> ddl(DataRuntime runtime, String random, View view)
List<Run> buildQueryDDLRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - viewExceptionList<String> ddl(DataRuntime runtime, int index, View view, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序view - viewddls - 上一步查询结果set - sql执行的结果集<T extends MasterTable> LinkedHashMap<String,T> mtables(DataRuntime runtime, String random, boolean greedy, String catalog, String schema, String pattern, String types)
List<Run> buildQueryMasterTableRun(DataRuntime runtime, String catalog, String schema, String pattern, String types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schemapattern - patterntypes - typesExceptiondefault List<Run> buildQueryMasterTableRun(String catalog, String schema, String pattern, String types) throws Exception
Exception<T extends MasterTable> LinkedHashMap<String,T> mtables(DataRuntime runtime, int index, boolean create, String catalog, String schema, LinkedHashMap<String,T> tables, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryMasterTableRun返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常<T extends MasterTable> LinkedHashMap<String,T> mtables(DataRuntime runtime, boolean create, LinkedHashMap<String,T> tables, String catalog, String schema, String pattern, String... types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果Exception - 异常List<Run> buildQueryDDLRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - MasterTableExceptiondefault List<Run> buildQueryDDLRun(MasterTable table) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, String random, MasterTable table)
List<String> ddl(DataRuntime runtime, int index, MasterTable table, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序table - MasterTableddls - 上一步查询结果set - sql执行的结果集<T extends PartitionTable> LinkedHashMap<String,T> ptables(DataRuntime runtime, String random, boolean greedy, MasterTable master, Map<String,Object> tags, String name)
List<String> ddl(DataRuntime runtime, String random, PartitionTable table)
List<Run> buildQueryPartitionTableRun(DataRuntime runtime, String catalog, String schema, String pattern, String types) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schemapattern - patterntypes - typesExceptiondefault List<Run> buildQueryPartitionTableRun(String catalog, String schema, String pattern, String types) throws Exception
ExceptionList<Run> buildQueryPartitionTableRun(DataRuntime runtime, MasterTable master, Map<String,Object> tags, String name) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端master - 主表tags - 标签名+标签值name - 分区表名Exception - 异常default List<Run> buildQueryPartitionTableRun(MasterTable master, Map<String,Object> tags, String name) throws Exception
ExceptionList<Run> buildQueryPartitionTableRun(DataRuntime runtime, MasterTable master, Map<String,Object> tags) throws Exception
Exceptiondefault List<Run> buildQueryPartitionTableRun(MasterTable master, Map<String,Object> tags) throws Exception
Exception<T extends PartitionTable> LinkedHashMap<String,T> ptables(DataRuntime runtime, int total, int index, boolean create, MasterTable master, String catalog, String schema, LinkedHashMap<String,T> tables, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端total - 合计SQL数量index - 第几条SQL 对照 buildQueryMasterTableRun返回顺序create - 上一步没有查到的,这一步是否需要新创建master - 主表catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常<T extends PartitionTable> LinkedHashMap<String,T> ptables(DataRuntime runtime, boolean create, LinkedHashMap<String,T> tables, String catalog, String schema, MasterTable master) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建master - 主表catalog - catalogschema - schematables - 上一步查询结果Exception - 异常List<Run> buildQueryDDLRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - PartitionTableExceptiondefault List<Run> buildQueryDDLRun(PartitionTable table) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, int index, PartitionTable table, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序table - MasterTableddls - 上一步查询结果set - sql执行的结果集<T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, String random, boolean greedy, Table table, boolean primary)
T - Columnruntime - 运行环境主要包含驱动适配器 数据源或客户端greedy - 查所有库table - 表primary - 是否检测主键List<Run> buildQueryColumnRun(DataRuntime runtime, Table table, boolean metadata) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表metadata - 是否根据metadata(true:SELECT * FROM T WHERE 1=0,false:查询系统表)Exception<T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, int index, boolean create, Table table, LinkedHashMap<String,T> columns, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryColumnRun返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表columns - 上一步查询结果set - setException - 异常<T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, boolean create, LinkedHashMap<String,T> columns, Table table, String pattern) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建table - 表Exception - 异常<T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, String random, boolean create, Table table, LinkedHashMap<String,T> columns, List<Run> runs)
Column column(DataRuntime runtime, Column column, ResultSetMetaData rsm, int index)
Column column(DataRuntime runtime, Column column, ResultSet rs)
<T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, String random, boolean greedy, Table table)
List<Run> buildQueryTagRun(DataRuntime runtime, Table table, boolean metadata) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表metadata - 是否需要根据metadataExceptiondefault List<Run> buildQueryTagRun(Table table, boolean metadata) throws Exception
Exception<T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, int index, boolean create, Table table, LinkedHashMap<String,T> tags, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryTagRun返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表tags - 上一步查询结果set - setException - 异常<T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, boolean create, LinkedHashMap<String,T> tags, Table table, String pattern) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建table - 表tags - 上一步查询结果pattern - patternException - 异常PrimaryKey primary(DataRuntime runtime, String random, boolean greedy, Table table)
List<Run> buildQueryPrimaryRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exceptiondefault List<Run> buildQueryPrimaryRun(Table table) throws Exception
ExceptionPrimaryKey primary(DataRuntime runtime, int index, Table table, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryIndexRun 返回顺序table - 表set - sql查询结果Exception - 异常<T extends ForeignKey> LinkedHashMap<String,T> foreigns(DataRuntime runtime, String random, boolean greedy, Table table)
List<Run> buildQueryForeignsRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exceptiondefault List<Run> buildQueryForeignsRun(Table table) throws Exception
Exception<T extends ForeignKey> LinkedHashMap<String,T> foreigns(DataRuntime runtime, int index, Table table, LinkedHashMap<String,T> foreigns, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryForeignsRun 返回顺序table - 表foreigns - 上一步查询结果set - sql查询结果Exception - 异常<T extends Index> LinkedHashMap<String,T> indexs(DataRuntime runtime, String random, boolean greedy, Table table, String name)
List<Run> buildQueryIndexRun(DataRuntime runtime, Table table, String name)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表name - 名称<T extends Index> LinkedHashMap<String,T> indexs(DataRuntime runtime, int index, boolean create, Table table, LinkedHashMap<String,T> indexs, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryIndexRun 返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表indexs - 上一步查询结果set - setException - 异常<T extends Index> LinkedHashMap<String,T> indexs(DataRuntime runtime, boolean create, LinkedHashMap<String,T> indexs, Table table, boolean unique, boolean approximate) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端create - 上一步没有查到的,这一步是否需要新创建table - 表runtime - 运行环境主要包含驱动适配器 数据源或客户端Exception - 异常List<Run> buildQueryConstraintRun(DataRuntime runtime, Table table, boolean metadata) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表metadata - 是否需要根据metadataExceptiondefault List<Run> buildQueryConstraintRun(Table table, boolean metadata) throws Exception
Exception<T extends Constraint> LinkedHashMap<String,T> constraints(DataRuntime runtime, int index, boolean create, Table table, LinkedHashMap<String,T> constraints, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryConstraintRun 返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表constraints - 上一步查询结果set - DataSetException - 异常<T extends Constraint> LinkedHashMap<String,T> constraints(DataRuntime runtime, boolean create, Table table, LinkedHashMap<String,T> constraints, ResultSet set) throws Exception
Exception<T extends Trigger> LinkedHashMap<String,T> triggers(DataRuntime runtime, String random, boolean greedy, Table table, List<Trigger.EVENT> events)
List<Run> buildQueryTriggerRun(DataRuntime runtime, Table table, List<Trigger.EVENT> events)
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表events - INSERT|UPDATE|DELETEdefault List<Run> buildQueryTriggerRun(Table table, List<Trigger.EVENT> events)
<T extends Trigger> LinkedHashMap<String,T> triggers(DataRuntime runtime, int index, boolean create, Table table, LinkedHashMap<String,T> triggers, DataSet set) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条查询SQL 对照 buildQueryConstraintRun 返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表triggers - 上一步查询结果set - DataSetException - 异常<T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, String random, boolean greedy, String catalog, String schema, String name)
List<Run> buildQueryProcedureRun(DataRuntime runtime, String catalog, String schema, String name)
default List<Run> buildQueryProcedureRun(String catalog, String schema, String name)
<T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, int index, boolean create, LinkedHashMap<String,T> procedures, DataSet set) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, String random, Procedure procedure)
List<Run> buildQueryDDLRun(DataRuntime runtime, Procedure procedure) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程Exceptiondefault List<Run> buildQueryDDLRun(Procedure procedure) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, int index, Procedure procedure, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序procedure - Procedureddls - 上一步查询结果set - sql执行的结果集<T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, String random, boolean recover, String catalog, String schema, String name)
List<Run> buildQueryFunctionRun(DataRuntime runtime, String catalog, String schema, String name)
default List<Run> buildQueryFunctionRun(String catalog, String schema, String name)
<T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, int index, boolean create, LinkedHashMap<String,T> functions, DataSet set) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, String random, Function function)
List<Run> buildQueryDDLRun(DataRuntime runtime, Function function) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端function - 函数Exceptiondefault List<Run> buildQueryDDLRun(Function function) throws Exception
ExceptionList<String> ddl(DataRuntime runtime, int index, Function function, List<String> ddls, DataSet set)
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 第几条SQL 对照 buildQueryDDLRun 返回顺序function - Functionddls - 上一步查询结果set - sql执行的结果集List<Run> buildCreateRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常List<Run> buildAppendCommentRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildAppendCommentRun(Table table) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常List<Run> buildAlterRun(DataRuntime runtime, Table table, Collection<Column> columns) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表columns - 列Exceptiondefault List<Run> buildAlterRun(Table table, Collection<Column> columns) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常List<Run> buildChangeCommentRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildChangeCommentRun(Table table) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, Table table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常StringBuilder checkTableExists(DataRuntime runtime, StringBuilder builder, boolean exists)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderexists - existsStringBuilder primary(DataRuntime runtime, StringBuilder builder, Table table)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildertable - 表StringBuilder comment(DataRuntime runtime, StringBuilder builder, Table table)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildertable - 表StringBuilder name(DataRuntime runtime, StringBuilder builder, Table table)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildertable - 表List<Run> buildCreateRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常List<Run> buildAppendCommentRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常default List<Run> buildAppendCommentRun(View view) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常List<Run> buildRenameRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常List<Run> buildChangeCommentRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常default List<Run> buildChangeCommentRun(View view) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, View view) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端view - 视图Exception - 异常StringBuilder checkViewExists(DataRuntime runtime, StringBuilder builder, boolean exists)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderexists - existsStringBuilder comment(DataRuntime runtime, StringBuilder builder, View view)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderview - 视图List<Run> buildCreateRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildCreateRun(MasterTable table) throws Exception
ExceptionList<Run> buildAppendCommentRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildAppendCommentRun(MasterTable table) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildAlterRun(MasterTable table) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildRenameRun(MasterTable table) throws Exception
ExceptionList<Run> buildChangeCommentRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildChangeCommentRun(MasterTable table) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, MasterTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildDropRun(MasterTable table) throws Exception
ExceptionList<Run> buildCreateRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildCreateRun(PartitionTable table) throws Exception
ExceptionList<Run> buildAppendCommentRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildAppendCommentRun(PartitionTable table) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildAlterRun(PartitionTable table) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - Exception - 异常default List<Run> buildRenameRun(PartitionTable table) throws Exception
ExceptionList<Run> buildChangeCommentRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildChangeCommentRun(PartitionTable table) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, PartitionTable table) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端table - 表Exception - 异常default List<Run> buildDropRun(PartitionTable table) throws Exception
ExceptionString alterColumnKeyword(DataRuntime runtime)
runtime - 运行环境主要包含驱动适配器 数据源或客户端List<Run> buildAddRun(DataRuntime runtime, Column column, boolean slice) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列slice - 是否只生成片段(不含alter table部分,用于DDL合并)Exceptiondefault List<Run> buildAddRun(Column column, boolean slice) throws Exception
ExceptionList<Run> buildAddRun(DataRuntime runtime, Column column) throws Exception
ExceptionStringBuilder addColumnGuide(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - StringBuildercolumn - 列List<Run> buildAlterRun(DataRuntime runtime, Column column, boolean slice) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列slice - 是否只生成片段(不含alter table部分,用于DDL合并)Exceptiondefault List<Run> buildAlterRun(Column column, boolean slice) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, Column column) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, Column column, boolean slice) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列slice - 是否只生成片段(不含alter table部分,用于DDL合并)Exceptiondefault List<Run> buildDropRun(Column column, boolean slice) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, Column column) throws Exception
ExceptionStringBuilder dropColumnGuide(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - StringBuildercolumn - 列List<Run> buildRenameRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列ExceptionList<Run> buildChangeTypeRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exceptiondefault List<Run> buildChangeTypeRun(Column column) throws Exception
ExceptionList<Run> buildChangeDefaultRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exceptiondefault List<Run> buildChangeDefaultRun(Column column) throws Exception
ExceptionList<Run> buildChangeNullableRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exceptiondefault List<Run> buildChangeNullableRun(Column column) throws Exception
ExceptionList<Run> buildChangeCommentRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exceptiondefault List<Run> buildChangeCommentRun(Column column) throws Exception
ExceptionList<Run> buildAppendCommentRun(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exception - 异常default List<Run> buildAppendCommentRun(Column column) throws Exception
ExceptionList<Run> buildDropAutoIncrement(DataRuntime runtime, Column column) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列Exception - 异常default List<Run> buildDropAutoIncrement(Column column) throws Exception
ExceptionStringBuilder define(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder type(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder type(DataRuntime runtime, StringBuilder builder, Column column, String type, boolean isIgnorePrecision, boolean isIgnoreScale)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列type - 数据类型(已经过转换)isIgnorePrecision - 是否忽略长度isIgnoreScale - 是否忽略小数boolean isIgnorePrecision(DataRuntime runtime, Column column)
boolean isIgnoreScale(DataRuntime runtime, Column column)
Boolean checkIgnorePrecision(DataRuntime runtime, String datatype)
Boolean checkIgnoreScale(DataRuntime runtime, String datatype)
StringBuilder nullable(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder charset(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder defaultValue(DataRuntime runtime, StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder primary(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder increment(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder onupdate(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder position(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder comment(DataRuntime runtime, StringBuilder builder, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - buildercolumn - 列StringBuilder checkColumnExists(DataRuntime runtime, StringBuilder builder, boolean exists)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderexists - existsList<Run> buildAddRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签ExceptionList<Run> buildAlterRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签ExceptionList<Run> buildDropRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签ExceptionList<Run> buildRenameRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签ExceptionList<Run> buildChangeDefaultRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签Exceptiondefault List<Run> buildChangeDefaultRun(Tag tag) throws Exception
ExceptionList<Run> buildChangeNullableRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签Exceptiondefault List<Run> buildChangeNullableRun(Tag tag) throws Exception
ExceptionList<Run> buildChangeCommentRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签Exceptiondefault List<Run> buildChangeCommentRun(Tag tag) throws Exception
ExceptionList<Run> buildChangeTypeRun(DataRuntime runtime, Tag tag) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端tag - 标签ExceptionStringBuilder checkTagExists(DataRuntime runtime, StringBuilder builder, boolean exists)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderexists - existsList<Run> buildAddRun(DataRuntime runtime, PrimaryKey primary) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端primary - 主键Exceptiondefault List<Run> buildAddRun(PrimaryKey primary) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, PrimaryKey primary) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端primary - 主键Exceptiondefault List<Run> buildAlterRun(PrimaryKey primary) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, PrimaryKey primary) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端primary - 主键Exceptiondefault List<Run> buildDropRun(PrimaryKey primary) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, PrimaryKey primary) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端primary - 主键Exceptiondefault List<Run> buildRenameRun(PrimaryKey primary) throws Exception
ExceptionList<Run> buildAddRun(DataRuntime runtime, ForeignKey foreign) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端foreign - 外键Exceptiondefault List<Run> buildAddRun(ForeignKey foreign) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, ForeignKey foreign) throws Exception
foreign - 外键Exceptiondefault List<Run> buildAlterRun(ForeignKey foreign) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, ForeignKey foreign) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端foreign - 外键Exceptiondefault List<Run> buildDropRun(ForeignKey foreign) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, ForeignKey foreign) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端foreign - 外键Exceptiondefault List<Run> buildRenameRun(ForeignKey foreign) throws Exception
ExceptionList<Run> buildAddRun(DataRuntime runtime, Index index) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 索引ExceptionList<Run> buildAlterRun(DataRuntime runtime, Index index) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 索引ExceptionList<Run> buildDropRun(DataRuntime runtime, Index index) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 索引ExceptionList<Run> buildRenameRun(DataRuntime runtime, Index index) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端index - 索引Exceptionvoid comment(DataRuntime runtime, StringBuilder builder, Index index)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - index - List<Run> buildAddRun(DataRuntime runtime, Constraint constraint) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端constraint - 约束Exceptiondefault List<Run> buildAddRun(Constraint constraint) throws Exception
ExceptionList<Run> buildAlterRun(DataRuntime runtime, Constraint constraint) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端constraint - 约束Exceptiondefault List<Run> buildAlterRun(Constraint constraint) throws Exception
ExceptionList<Run> buildDropRun(DataRuntime runtime, Constraint constraint) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端constraint - 约束Exceptiondefault List<Run> buildDropRun(Constraint constraint) throws Exception
ExceptionList<Run> buildRenameRun(DataRuntime runtime, Constraint constraint) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端constraint - 约束Exceptiondefault List<Run> buildRenameRun(Constraint constraint) throws Exception
ExceptionList<Run> buildCreateRun(DataRuntime runtime, Trigger trigger) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端trigger - 触发器Exceptionvoid each(DataRuntime runtime, StringBuilder builder, Trigger trigger)
List<Run> buildAlterRun(DataRuntime runtime, Trigger trigger) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端trigger - 触发器ExceptionList<Run> buildDropRun(DataRuntime runtime, Trigger trigger) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端trigger - 触发器ExceptionList<Run> buildRenameRun(DataRuntime runtime, Trigger trigger) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端trigger - 触发器ExceptionList<Run> buildCreateRun(DataRuntime runtime, Procedure procedure) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程Exceptionvoid parameter(DataRuntime runtime, StringBuilder builder, Parameter parameter)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderparameter - parameterList<Run> buildAlterRun(DataRuntime runtime, Procedure procedure) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程ExceptionList<Run> buildDropRun(DataRuntime runtime, Procedure procedure) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程ExceptionList<Run> buildRenameRun(DataRuntime runtime, Procedure procedure) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端procedure - 存储过程ExceptionStringBuilder name(DataRuntime runtime, StringBuilder builder, Procedure procedure)
List<Run> buildCreateRun(DataRuntime runtime, Function function) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端function - 函数ExceptionList<Run> buildAlterRun(DataRuntime runtime, Function function) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端function - 函数ExceptionList<Run> buildDropRun(DataRuntime runtime, Function function) throws Exception
function - 函数ExceptionList<Run> buildRenameRun(DataRuntime runtime, Function function) throws Exception
runtime - 运行环境主要包含驱动适配器 数据源或客户端function - 函数ExceptionStringBuilder name(DataRuntime runtime, StringBuilder builder, Function function)
String getPrimaryKey(DataRuntime runtime, Object obj)
runtime - 运行环境主要包含驱动适配器 数据源或客户端obj - objObject getPrimaryValue(DataRuntime runtime, Object obj)
runtime - 运行环境主要包含驱动适配器 数据源或客户端obj - objboolean convert(DataRuntime runtime, String catalog, String schema, String table, RunValue run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端catalog - catalogschema - schematable - 表run - 值boolean convert(DataRuntime runtime, Table table, Run run)
boolean convert(DataRuntime runtime, Map<String,Column> columns, RunValue run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端columns - 列run - 值boolean convert(DataRuntime runtime, Column column, RunValue run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列run - 值Object convert(DataRuntime runtime, Column column, Object value)
Object convert(DataRuntime runtime, ColumnType columnType, Object value)
void value(DataRuntime runtime, StringBuilder builder, Object row, String key)
runtime - 运行环境主要包含驱动适配器 数据源或客户端builder - builderrow - DataRow 或 Entitykey - 列名Object read(DataRuntime runtime, Column metadata, Object value, Class clazz)
runtime - 运行环境主要包含驱动适配器 数据源或客户端metadata - Column 用来定位数据类型value - valueclazz - 目标数据类型(给entity赋值时可以根据class, DataRow赋值时可以指定class,否则按检测metadata类型转换 转换不不了的原样返回)Object write(DataRuntime runtime, Column metadata, Object value, boolean placeholder)
runtime - 运行环境主要包含驱动适配器 数据源或客户端metadata - Column 用来定位数据类型placeholder - 是否占位符value - valueString concat(DataRuntime runtime, String... args)
runtime - 运行环境主要包含驱动适配器 数据源或客户端args - argsboolean isNumberColumn(DataRuntime runtime, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列boolean isBooleanColumn(DataRuntime runtime, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列boolean isCharColumn(DataRuntime runtime, Column column)
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列String value(DataRuntime runtime, Column column, DriverAdapter.SQL_BUILD_IN_VALUE value)
runtime - 运行环境主要包含驱动适配器 数据源或客户端column - 列属性,不同的数据类型解析出来的值可能不一样value - SQL_BUILD_IN_VALUEvoid addRunValue(DataRuntime runtime, Run run, Compare compare, Column column, Object value)
String objectName(DataRuntime runtime, String name)
runtime - 运行环境主要包含驱动适配器 数据源或客户端name - nameCopyright © 2023. All rights reserved.