| 限定符和类型 | 方法和说明 |
|---|---|
DataRuntime |
AnylineDao.runtime() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Column> |
AnylineDao.columns(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
boolean primary)
查询表结构
|
<T extends Constraint> |
AnylineDao.constraints(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
String name) |
long |
AnylineDao.count(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
合计总行数
|
Database |
AnylineDao.database(DataRuntime runtime,
String random,
boolean recover,
String name) |
LinkedHashMap<String,Database> |
AnylineDao.databases(DataRuntime runtime,
String random,
boolean recover) |
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Function function) |
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
MasterTable table) |
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
PartitionTable table) |
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure) |
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Table table,
boolean init)
查询表的创建SQL
|
List<String> |
AnylineDao.ddl(DataRuntime runtime,
String random,
boolean recover,
View view) |
long |
AnylineDao.delete(DataRuntime runtime,
String random,
boolean recover,
String table,
ConfigStore configs,
String... conditions) |
long |
AnylineDao.delete(DataRuntime runtime,
String random,
boolean recover,
String dest,
Object obj,
String... columns) |
<T> long |
AnylineDao.deletes(DataRuntime runtime,
String random,
boolean recover,
int batch,
String table,
String key,
Collection<T> values)
删除多行
|
long |
AnylineDao.execute(DataRuntime runtime,
String random,
boolean recover,
int batch,
String sql,
List<Object> values) |
boolean |
AnylineDao.execute(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure)
执行存储过程
|
long |
AnylineDao.execute(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
执行
|
boolean |
AnylineDao.exists(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
是否存在
|
<T extends ForeignKey> |
AnylineDao.foreigns(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table) |
<T extends Function> |
AnylineDao.functions(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name) |
<T extends Index> |
AnylineDao.indexs(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
String name) |
long |
AnylineDao.insert(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
添加
|
default long |
AnylineDao.insert(DataRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
List<Map<String,Object>> |
AnylineDao.maps(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询map列表
|
<T extends MasterTable> |
AnylineDao.mtables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name,
String types) |
PrimaryKey |
AnylineDao.primary(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table) |
<T extends Procedure> |
AnylineDao.procedures(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name) |
<T extends PartitionTable> |
AnylineDao.ptables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
DataSet |
AnylineDao.querys(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure,
PageNavi navi)
根据存储过程查询
|
DataSet |
AnylineDao.querys(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询row列表
|
long |
AnylineDao.save(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
保存(insert|update)
|
default long |
AnylineDao.save(DataRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
<T> EntitySet<T> |
AnylineDao.selects(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
查询entity列表
|
DataRow |
AnylineDao.sequence(DataRuntime runtime,
String random,
boolean recover,
boolean next,
String... names)
创建查询序列SQL
|
void |
AnylineDao.setRuntime(DataRuntime runtime) |
<T extends Table> |
AnylineDao.tables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name,
String types) |
<T extends Table> |
AnylineDao.tables(DataRuntime runtime,
String random,
boolean recover,
String catalog,
String schema,
String name,
String types) |
<T extends Tag> |
AnylineDao.tags(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table) |
<T extends Trigger> |
AnylineDao.triggers(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
List<Trigger.EVENT> events) |
int |
AnylineDao.truncate(DataRuntime runtime,
String random,
boolean recover,
String table) |
long |
AnylineDao.update(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
更新记录
|
default long |
AnylineDao.update(DataRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
<T extends View> |
AnylineDao.views(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询视图
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataRuntime |
DefaultDao.runtime |
| 限定符和类型 | 方法和说明 |
|---|---|
DataRuntime |
DefaultDao.getRuntime() |
DataRuntime |
FixDao.runtime() |
DataRuntime |
DefaultDao.runtime() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T> void |
DefaultDao.checkMany2ManyDependencyQuery(DataRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
protected <T> void |
DefaultDao.checkOne2ManyDependencyQuery(DataRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Column column) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Constraint constraint) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Function function) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Index index) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Procedure procedure) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Table table) |
void |
DefaultDao.checkSchema(DataRuntime runtime,
Trigger trigger) |
<T extends Column> |
DefaultDao.columns(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
boolean primary) |
<T extends Constraint> |
DefaultDao.constraints(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
String name) |
long |
DefaultDao.count(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
统计总行数
|
Database |
DefaultDao.database(DataRuntime runtime,
String random,
boolean recover,
String name) |
LinkedHashMap<String,Database> |
DefaultDao.databases(DataRuntime runtime,
String random,
boolean recover) |
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Function function)
查询 Function 创建SQL
|
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
MasterTable table)
查询MasterTable创建SQL
|
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
PartitionTable table)
查询 PartitionTable 创建SQL
|
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure)
查询 Procedure 创建SQL
|
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
Table table,
boolean init)
查询表的创建SQL
|
List<String> |
DefaultDao.ddl(DataRuntime runtime,
String random,
boolean recover,
View view)
查询view的创建SQL
|
long |
DefaultDao.delete(DataRuntime runtime,
String random,
boolean recover,
String table,
ConfigStore configs,
String... conditions) |
long |
DefaultDao.delete(DataRuntime runtime,
String random,
boolean recover,
String dest,
Object obj,
String... columns) |
<T> long |
DefaultDao.deletes(DataRuntime runtime,
String random,
boolean recover,
int batch,
String table,
String key,
Collection<T> values) |
boolean |
DefaultDao.execute(DataRuntime runtime,
String random,
ACTION.DDL action,
List<Run> runs) |
boolean |
DefaultDao.execute(DataRuntime runtime,
String random,
ACTION.DDL action,
Run run) |
long |
DefaultDao.execute(DataRuntime runtime,
String random,
boolean recover,
int batch,
String sql,
List<Object> values) |
boolean |
DefaultDao.execute(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure)
执行存储过程
|
long |
DefaultDao.execute(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
执行
|
boolean |
DefaultDao.exists(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
检测是否存在
|
<T extends ForeignKey> |
DefaultDao.foreigns(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table) |
<T extends Function> |
DefaultDao.functions(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name) |
<T extends Index> |
DefaultDao.indexs(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
String name)
索引
|
long |
DefaultDao.insert(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
添加
|
List<Map<String,Object>> |
DefaultDao.maps(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询map列表
|
<T extends MasterTable> |
DefaultDao.mtables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
PrimaryKey |
DefaultDao.primary(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table)
索引
|
<T extends Procedure> |
DefaultDao.procedures(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String name) |
<T extends PartitionTable> |
DefaultDao.ptables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
DataSet |
DefaultDao.querys(DataRuntime runtime,
String random,
boolean recover,
Procedure procedure,
PageNavi navi)
根据存储过程查询(MSSQL AS 后必须加 SET NOCOUNT ON)
|
DataSet |
DefaultDao.querys(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原,querys会自动还原数据源(dao内部执行过程中不要调用除非是一些重载),而select不会 |
boolean |
DefaultDao.rename(DataRuntime runtime,
MasterTable origin,
String name) |
protected boolean |
DefaultDao.rename(DataRuntime runtime,
String random,
PartitionTable origin,
String name) |
protected boolean |
DefaultDao.rename(DataRuntime runtime,
String random,
Table origin,
String name) |
protected boolean |
DefaultDao.rename(DataRuntime runtime,
View origin,
String name) |
long |
DefaultDao.save(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
保存(insert|upate)
|
protected DataSet |
DefaultDao.select(DataRuntime runtime,
String random,
boolean recover,
boolean system,
String table,
ConfigStore configs,
Run run)
查询
|
<T> EntitySet<T> |
DefaultDao.selects(DataRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原,querys会自动还原数据源(dao内部执行过程中不要调用除非是一些重载),而select不会 |
DataRow |
DefaultDao.sequence(DataRuntime runtime,
String random,
boolean recover,
boolean next,
String... names)
查询序列值
|
void |
DefaultDao.setRuntime(DataRuntime runtime) |
<T extends Table> |
DefaultDao.tables(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
tables
|
<T extends Table> |
DefaultDao.tables(DataRuntime runtime,
String random,
boolean recover,
String catalog,
String schema,
String pattern,
String types) |
<T extends Tag> |
DefaultDao.tags(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table) |
<T extends Trigger> |
DefaultDao.triggers(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
Table table,
List<Trigger.EVENT> events) |
int |
DefaultDao.truncate(DataRuntime runtime,
String random,
boolean recover,
String table) |
long |
DefaultDao.update(DataRuntime runtime,
String random,
boolean recover,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
更新
|
<T extends View> |
DefaultDao.views(DataRuntime runtime,
String random,
boolean recover,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
views
|
| 限定符和类型 | 方法和说明 |
|---|---|
StringBuilder |
DriverAdapter.addColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
添加列引导
|
void |
DriverAdapter.addRunValue(DataRuntime runtime,
Run run,
Compare compare,
Column column,
Object value) |
String |
DriverAdapter.alterColumnKeyword(DataRuntime runtime)
修改表的关键字
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
Column column) |
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
Column column,
boolean slice)
添加列
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
Constraint constraint)
添加约束
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
ForeignKey foreign)
添加外键
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
Index index)
添加索引
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
PrimaryKey primary)
添加主键
|
List<Run> |
DriverAdapter.buildAddRun(DataRuntime runtime,
Tag tag)
添加标签
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Column column) |
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Column column,
boolean slice)
修改列
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Constraint constraint)
修改约束
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
ForeignKey foreign)
修改外键
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Function function)
修改函数
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Index index)
修改索引
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
MasterTable table)
修改主表
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
PartitionTable table)
修改分区表
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
PrimaryKey primary)
修改主键
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Procedure procedure)
修改存储过程
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Table table)
修改表
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Table table,
Collection<Column> columns)
修改列
有可能生成多条SQL,根据数据库类型优先合并成一条执行
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Tag tag)
修改标签
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
Trigger trigger)
修改触发器
有可能生成多条SQL
|
List<Run> |
DriverAdapter.buildAlterRun(DataRuntime runtime,
View view)
修改视图
|
List<Run> |
DriverAdapter.buildAppendCommentRun(DataRuntime runtime,
Column column)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DriverAdapter.buildAppendCommentRun(DataRuntime runtime,
MasterTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DriverAdapter.buildAppendCommentRun(DataRuntime runtime,
PartitionTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DriverAdapter.buildAppendCommentRun(DataRuntime runtime,
Table table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DriverAdapter.buildAppendCommentRun(DataRuntime runtime,
View view)
添加视图备注(视图创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Column column)
修改备注
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
MasterTable table)
修改主表备注
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
PartitionTable table)
修改分区表备注
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Table table)
修改备注
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Tag tag)
修改备注
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeCommentRun(DataRuntime runtime,
View view)
修改备注
|
List<Run> |
DriverAdapter.buildChangeDefaultRun(DataRuntime runtime,
Column column)
修改默认值
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeDefaultRun(DataRuntime runtime,
Tag tag)
修改默认值
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeNullableRun(DataRuntime runtime,
Column column)
修改非空限制
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeNullableRun(DataRuntime runtime,
Tag tag)
修改非空限制
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeTypeRun(DataRuntime runtime,
Column column)
修改数据类型
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildChangeTypeRun(DataRuntime runtime,
Tag tag)
修改数据类型
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
Function function)
添加函数
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
MasterTable table)
创建主有
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
PartitionTable table)
创建分区表
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
Procedure procedure)
添加存储过程
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
Table table)
创建表
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
Trigger trigger)
添加触发器
|
List<Run> |
DriverAdapter.buildCreateRun(DataRuntime runtime,
View view)
创建视图
|
Run |
DriverAdapter.buildDeleteRun(DataRuntime runtime,
int batch,
String table,
String column,
Object values)
构造 delete 命令
合成 where column in (values) |
Run |
DriverAdapter.buildDeleteRun(DataRuntime runtime,
String table,
Object obj,
String... columns)
构造 delete 命令
合成 where k1 = v1 and k2 = v2 |
Run |
DriverAdapter.buildDeleteRunFromEntity(DataRuntime runtime,
String table,
Object obj,
String... columns)
构造 delete 命令
合成 where k1 = v1 and k2 = v2 |
Run |
DriverAdapter.buildDeleteRunFromTable(DataRuntime runtime,
int batch,
String table,
String column,
Object values)
构造 delete 命令
合成 where column in (values) |
List<Run> |
DriverAdapter.buildDropAutoIncrement(DataRuntime runtime,
Column column)
取消自增
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Column column) |
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Column column,
boolean slice)
删除列
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Constraint constraint)
删除约束
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
ForeignKey foreign)
删除外键
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Function function)
删除函数
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Index index)
删除索引
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
MasterTable table)
删除主表
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
PartitionTable table)
删除分区表
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
PrimaryKey primary)
删除主键
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Procedure procedure)
删除存储过程
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Table table)
删除表
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Tag tag)
删除标签
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
Trigger trigger)
删除触发器
|
List<Run> |
DriverAdapter.buildDropRun(DataRuntime runtime,
View view)
删除视图
|
Run |
DriverAdapter.buildExecuteRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建执行SQL
|
default Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
Object obj,
String... columns) |
Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
insert [build]
|
default Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
List<String> columns) |
default Run |
DriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
String... columns) |
List<Run> |
DriverAdapter.buildQueryColumnRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的列
|
List<Run> |
DriverAdapter.buildQueryConstraintRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的约束
|
List<Run> |
DriverAdapter.buildQueryDatabaseRun(DataRuntime runtime)
查询所有数据库
|
List<Run> |
DriverAdapter.buildQueryDatabaseRun(DataRuntime runtime,
String name) |
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Function function)
查询函数DDL
|
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
MasterTable table)
查询 MasterTable DDL
|
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
PartitionTable table)
查询 PartitionTable DDL
|
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Procedure procedure)
查询存储DDL
|
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Table table)
查询表DDL
|
List<Run> |
DriverAdapter.buildQueryDDLRun(DataRuntime runtime,
View view)
查询viewDDL
|
List<Run> |
DriverAdapter.buildQueryForeignsRun(DataRuntime runtime,
Table table)
查询表上的外键
|
List<Run> |
DriverAdapter.buildQueryFunctionRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
List<Run> |
DriverAdapter.buildQueryIndexRun(DataRuntime runtime,
Table table,
String name)
查询表上的索引
|
List<Run> |
DriverAdapter.buildQueryMasterTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询主表
|
List<Run> |
DriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags) |
List<Run> |
DriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags,
String name)
根据主表查询分区表
|
List<Run> |
DriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询分区表
|
List<Run> |
DriverAdapter.buildQueryPrimaryRun(DataRuntime runtime,
Table table)
查询表上的主键
|
List<Run> |
DriverAdapter.buildQueryProcedureRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
Run |
DriverAdapter.buildQueryRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建 select 最终可执行命令
|
List<Run> |
DriverAdapter.buildQuerySequence(DataRuntime runtime,
boolean next,
String... names)
创建 select sequence 最终可执行命令
|
List<Run> |
DriverAdapter.buildQueryTableCommentRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询表备注
|
List<Run> |
DriverAdapter.buildQueryTableRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询表,不是查表中的数据
|
List<Run> |
DriverAdapter.buildQueryTagRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的列
|
List<Run> |
DriverAdapter.buildQueryTriggerRun(DataRuntime runtime,
Table table,
List<Trigger.EVENT> events)
查询表上的trigger
|
List<Run> |
DriverAdapter.buildQueryViewRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询视图
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Column column)
修改列名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Constraint constraint)
修改约束名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
ForeignKey foreign)
修改外键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Function function)
修改函数名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Index index)
修改索引名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
MasterTable table)
主表重命名
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
PartitionTable table)
分区表重命名
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
PrimaryKey primary)
修改主键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Procedure procedure)
修改存储过程名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Table table)
重命名
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Tag tag)
修改标签名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
Trigger trigger)
修改触发器名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DriverAdapter.buildRenameRun(DataRuntime runtime,
View view)
重命名
|
List<Run> |
DriverAdapter.buildTruncateRun(DataRuntime runtime,
String table)
构造 truncate 命令<
|
Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
int btch,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns)
update [build]
|
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
ConfigStore configs,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
Object obj,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
String... columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
List<String> columns) |
default Run |
DriverAdapter.buildUpdateRun(DataRuntime runtime,
String dest,
Object obj,
String... columns) |
Run |
DriverAdapter.buildUpdateRunFromCollection(DataRuntime runtime,
int batch,
String dest,
Collection list,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
批量执行时考生调用,否则会遍历调用 fromDataRow或fromEntity
|
Run |
DriverAdapter.buildUpdateRunFromDataRow(DataRuntime runtime,
String dest,
DataRow row,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
根据DataRow创建 update 最终可执行命令
|
Run |
DriverAdapter.buildUpdateRunFromEntity(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
LinkedHashMap<String,Column> columns)
根据实体对象创建 update 最终可执行命令
|
StringBuilder |
DriverAdapter.charset(DataRuntime runtime,
StringBuilder builder,
Column column)
编码
|
StringBuilder |
DriverAdapter.checkColumnExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除列之前 检测表是否存在
IF NOT EXISTS
|
Boolean |
DriverAdapter.checkIgnorePrecision(DataRuntime runtime,
String datatype) |
Boolean |
DriverAdapter.checkIgnoreScale(DataRuntime runtime,
String datatype) |
void |
DriverAdapter.checkSchema(DataRuntime runtime,
Connection con,
Table table) |
void |
DriverAdapter.checkSchema(DataRuntime runtime,
DataSource dataSource,
Table table) |
void |
DriverAdapter.checkSchema(DataRuntime runtime,
Table table) |
StringBuilder |
DriverAdapter.checkTableExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除表之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
DriverAdapter.checkTagExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除标签之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
DriverAdapter.checkViewExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除视图之前 检测视图是否存在
IF NOT EXISTS
|
Column |
DriverAdapter.column(DataRuntime runtime,
Column column,
ResultSet rs) |
Column |
DriverAdapter.column(DataRuntime runtime,
Column column,
ResultSetMetaData rsm,
int index) |
<T extends Column> |
DriverAdapter.columns(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> columns,
Table table,
String pattern)
解析JDBC get columns结果
|
<T extends Column> |
DriverAdapter.columns(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> columns,
DataSet set)
根据查询结果集构造Tag
|
<T extends Column> |
DriverAdapter.columns(DataRuntime runtime,
String random,
boolean greedy,
Table table,
boolean primary)
查询表结构
|
<T extends Column> |
DriverAdapter.columns(DataRuntime runtime,
String random,
boolean create,
Table table,
LinkedHashMap<String,T> columns,
List<Run> runs) |
StringBuilder |
DriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Column column)
备注
|
void |
DriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Index index)
索引备注
|
StringBuilder |
DriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Table table)
表备注
|
StringBuilder |
DriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
View view)
视图备注
|
<T extends Table> |
DriverAdapter.comments(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
表备注
|
String |
DriverAdapter.concat(DataRuntime runtime,
String... args)
拼接字符串
|
LinkedHashMap<String,Column> |
DriverAdapter.confirmInsertColumns(DataRuntime runtime,
String dest,
Object data,
List<String> columns,
boolean batch)
确认需要插入的列
|
<T extends Constraint> |
DriverAdapter.constraints(DataRuntime runtime,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
ResultSet set) |
<T extends Constraint> |
DriverAdapter.constraints(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
DataSet set)
根据查询结果集构造Constraint
|
Object |
DriverAdapter.convert(DataRuntime runtime,
Column column,
Object value) |
boolean |
DriverAdapter.convert(DataRuntime runtime,
Column column,
RunValue run)
数据类型转换,没有提供column的根据value类型
|
Object |
DriverAdapter.convert(DataRuntime runtime,
ColumnType columnType,
Object value) |
boolean |
DriverAdapter.convert(DataRuntime runtime,
Map<String,Column> columns,
RunValue run)
数据类型转换
|
boolean |
DriverAdapter.convert(DataRuntime runtime,
String catalog,
String schema,
String table,
RunValue run)
数据类型转换
子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换
|
boolean |
DriverAdapter.convert(DataRuntime runtime,
Table table,
Run run) |
long |
DriverAdapter.count(DataRuntime runtime,
String random,
Run run)
count [执行]
|
long |
DriverAdapter.count(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
count [入口]
|
Object |
DriverAdapter.createConditionFindInSet(DataRuntime runtime,
StringBuilder builder,
String column,
Compare compare,
Object value)
构造 FIND_IN_SET 查询条件
如果不需要占位符 返回null 否则原样返回value
|
StringBuilder |
DriverAdapter.createConditionIn(DataRuntime runtime,
StringBuilder builder,
Compare compare,
Object value)
构造(NOT) IN 查询条件
|
Object |
DriverAdapter.createConditionLike(DataRuntime runtime,
StringBuilder builder,
Compare compare,
Object value)
构造 LIKE 查询条件
如果不需要占位符 返回null 否则原样返回value
|
Database |
DriverAdapter.database(DataRuntime runtime,
int index,
boolean create,
DataSet set) |
Database |
DriverAdapter.database(DataRuntime runtime,
String random,
String name) |
LinkedHashMap<String,Database> |
DriverAdapter.databases(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,Database> databases,
DataSet set)
根据查询结果集构造 Database
|
LinkedHashMap<String,Database> |
DriverAdapter.databases(DataRuntime runtime,
String random) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
Function function,
List<String> ddls,
DataSet set)
查询 Function DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
MasterTable table,
List<String> ddls,
DataSet set)
查询 MasterTable DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
PartitionTable table,
List<String> ddls,
DataSet set)
查询 MasterTable DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
Procedure procedure,
List<String> ddls,
DataSet set)
查询 Procedure DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
Table table,
List<String> ddls,
DataSet set)
查询表DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
int index,
View view,
List<String> ddls,
DataSet set)
查询 view DDL
|
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
Function function) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
MasterTable table) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
PartitionTable table) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
Procedure procedure) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
Table table,
boolean init) |
List<String> |
DriverAdapter.ddl(DataRuntime runtime,
String random,
View view) |
StringBuilder |
DriverAdapter.defaultValue(DataRuntime runtime,
StringBuilder builder,
Column column)
默认值
|
StringBuilder |
DriverAdapter.define(DataRuntime runtime,
StringBuilder builder,
Column column)
定义列
|
long |
DriverAdapter.delete(DataRuntime runtime,
String random,
Run run) |
long |
DriverAdapter.delete(DataRuntime runtime,
String random,
String table,
ConfigStore configs,
String... conditions)
delete [入口]
根据configs和conditions过滤条件 |
long |
DriverAdapter.delete(DataRuntime runtime,
String random,
String table,
Object obj,
String... columns)
delete [入口]
合成 where k1 = v1 and k2 = v2 |
<T> long |
DriverAdapter.deletes(DataRuntime runtime,
String random,
int batch,
String table,
String column,
Collection<T> values)
delete [入口]
合成 where column in (values) |
default <T> long |
DriverAdapter.deletes(DataRuntime runtime,
String random,
int batch,
String table,
String column,
T... values) |
default <T> long |
DriverAdapter.deletes(DataRuntime runtime,
String random,
String table,
String column,
Collection<T> values) |
default <T> long |
DriverAdapter.deletes(DataRuntime runtime,
String random,
String table,
String column,
T... values) |
StringBuilder |
DriverAdapter.dropColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
删除列引导
|
void |
DriverAdapter.each(DataRuntime runtime,
StringBuilder builder,
Trigger trigger) |
long |
DriverAdapter.execute(DataRuntime runtime,
String random,
int batch,
String sql,
List<Object> values) |
boolean |
DriverAdapter.execute(DataRuntime runtime,
String random,
Procedure procedure)
procedure [执行]
|
long |
DriverAdapter.execute(DataRuntime runtime,
String random,
Run run)
execute [执行]
|
long |
DriverAdapter.execute(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
execute [入口]
|
boolean |
DriverAdapter.exists(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
exists [入口]
|
void |
DriverAdapter.fillDeleteRunContent(DataRuntime runtime,
Run run)
填充 delete 命令内容
构造查询主体 拼接where group等(不含分页 ORDER)
|
void |
DriverAdapter.fillExecuteContent(DataRuntime runtime,
Run run)
填充 execute 命令内容
|
void |
DriverAdapter.fillInsertContent(DataRuntime runtime,
Run run,
String dest,
Collection list,
LinkedHashMap<String,Column> columns)
填充inset命令内容(根据集合类型)
|
void |
DriverAdapter.fillInsertContent(DataRuntime runtime,
Run run,
String dest,
DataSet set,
LinkedHashMap<String,Column> columns)
填充inset命令内容(根据集合类型)
|
void |
DriverAdapter.fillQueryContent(DataRuntime runtime,
Run run)
填充 select 命令内容
构造查询主体 拼接where group等(不含分页 ORDER)
|
<T extends ForeignKey> |
DriverAdapter.foreigns(DataRuntime runtime,
int index,
Table table,
LinkedHashMap<String,T> foreigns,
DataSet set)
根据查询结果集构造PrimaryKey
|
<T extends ForeignKey> |
DriverAdapter.foreigns(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Function> |
DriverAdapter.functions(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> functions,
DataSet set) |
<T extends Function> |
DriverAdapter.functions(DataRuntime runtime,
String random,
boolean recover,
String catalog,
String schema,
String name) |
String |
DriverAdapter.getPrimaryKey(DataRuntime runtime,
Object obj)
获取单主键列名
|
Object |
DriverAdapter.getPrimaryValue(DataRuntime runtime,
Object obj)
获取单主键值
|
StringBuilder |
DriverAdapter.increment(DataRuntime runtime,
StringBuilder builder,
Column column)
递增列
|
<T extends Index> |
DriverAdapter.indexs(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> indexs,
Table table,
boolean unique,
boolean approximate)
解析JDBC getIndex结果
|
<T extends Index> |
DriverAdapter.indexs(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> indexs,
DataSet set)
根据查询结果集构造Index
|
<T extends Index> |
DriverAdapter.indexs(DataRuntime runtime,
String random,
boolean greedy,
Table table,
String name) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
Object data,
boolean checkPrimary,
String... columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
Object data,
String... columns) |
long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
insert [入口]
执行完成后会补齐自增主键值 |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
List<String> columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
String... columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
String... columns) |
long |
DriverAdapter.insert(DataRuntime runtime,
String random,
Object data,
Run run,
String[] pks)
insert [执行]
执行完成后会补齐自增主键值 |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
Object data,
Run run,
String[] pks,
boolean simple)
insert [执行]
有些不支持返回自增的单独执行 执行完成后会补齐自增主键值 |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
Object data,
String... columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
default long |
DriverAdapter.insert(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
boolean |
DriverAdapter.isBooleanColumn(DataRuntime runtime,
Column column)
是否是boolean列
|
boolean |
DriverAdapter.isCharColumn(DataRuntime runtime,
Column column)
是否是字符类型
决定值是否需要加单引号
number boolean 返回false
其他返回true
|
boolean |
DriverAdapter.isIgnorePrecision(DataRuntime runtime,
Column column) |
boolean |
DriverAdapter.isIgnoreScale(DataRuntime runtime,
Column column) |
boolean |
DriverAdapter.isNumberColumn(DataRuntime runtime,
Column column)
是否是数字列
|
Map<String,Object> |
DriverAdapter.map(DataRuntime runtime,
String random,
Run run)
select [执行]
|
List<Map<String,Object>> |
DriverAdapter.maps(DataRuntime runtime,
String random,
ConfigStore configs,
Run run)
select [执行]
|
List<Map<String,Object>> |
DriverAdapter.maps(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
select [入口]
对性能有要求的场景调用,返回java原生map集合,结果中不包含元数据信息 |
String |
DriverAdapter.mergeFinalExists(DataRuntime runtime,
Run run)
合成最终 exists 命令
|
String |
DriverAdapter.mergeFinalQuery(DataRuntime runtime,
Run run)
合成最终 select 命令 包含分页 排序
|
String |
DriverAdapter.mergeFinalTotal(DataRuntime runtime,
Run run)
合成最终 select count 命令
|
<T extends MasterTable> |
DriverAdapter.mtables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types)
根据JDBC
|
<T extends MasterTable> |
DriverAdapter.mtables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
<T extends MasterTable> |
DriverAdapter.mtables(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
StringBuilder |
DriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Function function) |
StringBuilder |
DriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Procedure procedure) |
StringBuilder |
DriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Table table)
构造表名
|
StringBuilder |
DriverAdapter.nullable(DataRuntime runtime,
StringBuilder builder,
Column column)
非空
|
String |
DriverAdapter.objectName(DataRuntime runtime,
String name)
对象名称格式化(大小写转换),在查询系统表时需要
|
StringBuilder |
DriverAdapter.onupdate(DataRuntime runtime,
StringBuilder builder,
Column column)
更新行事件
|
void |
DriverAdapter.parameter(DataRuntime runtime,
StringBuilder builder,
Parameter parameter)
生在输入输出参数
|
StringBuilder |
DriverAdapter.position(DataRuntime runtime,
StringBuilder builder,
Column column)
位置
|
PrimaryKey |
DriverAdapter.primary(DataRuntime runtime,
int index,
Table table,
DataSet set)
根据查询结果集构造PrimaryKey
|
PrimaryKey |
DriverAdapter.primary(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
StringBuilder |
DriverAdapter.primary(DataRuntime runtime,
StringBuilder builder,
Column column)
主键(注意不要跟表定义中的主键重复)
|
StringBuilder |
DriverAdapter.primary(DataRuntime runtime,
StringBuilder builder,
Table table)
创建主键在创建表的DDL结尾部分
|
<T extends Procedure> |
DriverAdapter.procedures(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> procedures,
DataSet set) |
<T extends Procedure> |
DriverAdapter.procedures(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String name) |
List<Map<String,Object>> |
DriverAdapter.process(DataRuntime runtime,
List<Map<String,Object>> list)
JDBC执行完成后的结果处理
|
<T extends PartitionTable> |
DriverAdapter.ptables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
MasterTable master)
根据JDBC
|
<T extends PartitionTable> |
DriverAdapter.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> |
DriverAdapter.ptables(DataRuntime runtime,
String random,
boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
DataSet |
DriverAdapter.querys(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi)
select procedure [入口]
|
DataSet |
DriverAdapter.querys(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
select [入口]
返回DataSet中包含元数据信息,如果性能有要求换成maps |
Object |
DriverAdapter.read(DataRuntime runtime,
Column metadata,
Object value,
Class clazz)
从数据库中读取数据,常用的基本类型可以自动转换,不常用的如json/point/polygon/blob等转换成anyline对应的类型
|
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
List<String> columns) |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
Object data,
boolean checkPrimary,
String... columns) |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
Object data,
List<String> columns) |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
Object data,
String... columns) |
long |
DriverAdapter.save(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
save [入口]
根据是否有主键值确认insert | update 执行完成后会补齐自增主键值 |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
String... columns) |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
default long |
DriverAdapter.save(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
DataSet |
DriverAdapter.select(DataRuntime runtime,
String random,
boolean system,
String table,
ConfigStore configs,
Run run)
select [执行]
|
<T> EntitySet<T> |
DriverAdapter.selects(DataRuntime runtime,
String random,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
select [入口]
|
DataRow |
DriverAdapter.sequence(DataRuntime runtime,
String random,
boolean next,
String... names)
select [执行]
|
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types)
根据驱动内置方法补充
|
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
boolean create,
List<T> tables,
String catalog,
String schema,
String pattern,
String... types) |
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
List<T> tables,
DataSet set) |
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
<T extends Table> |
DriverAdapter.tables(DataRuntime runtime,
String random,
String catalog,
String schema,
String pattern,
String types) |
<T extends Tag> |
DriverAdapter.tags(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tags,
Table table,
String pattern)
解析JDBC get columns结果
|
<T extends Tag> |
DriverAdapter.tags(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> tags,
DataSet set)
根据查询结果集构造Tag
|
<T extends Tag> |
DriverAdapter.tags(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Trigger> |
DriverAdapter.triggers(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> triggers,
DataSet set)
根据查询结果集构造Constraint
|
<T extends Trigger> |
DriverAdapter.triggers(DataRuntime runtime,
String random,
boolean greedy,
Table table,
List<Trigger.EVENT> events) |
int |
DriverAdapter.truncate(DataRuntime runtime,
String random,
String table)
truncate [入口]
|
StringBuilder |
DriverAdapter.type(DataRuntime runtime,
StringBuilder builder,
Column column)
数据类型
|
StringBuilder |
DriverAdapter.type(DataRuntime runtime,
StringBuilder builder,
Column column,
String type,
boolean isIgnorePrecision,
boolean isIgnoreScale)
列数据类型定义
|
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
Object data,
ConfigStore configs,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
Object data,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
Object data,
String... columns) |
long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
UPDATE [入口]
|
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
Object data,
ConfigStore configs,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
Object data,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
Object data,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
String dest,
Object data,
ConfigStore configs,
String... columns) |
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
String dest,
Object data,
List<String> columns) |
long |
DriverAdapter.update(DataRuntime runtime,
String random,
String dest,
Object data,
Run run)
update [执行]
|
default long |
DriverAdapter.update(DataRuntime runtime,
String random,
String dest,
Object data,
String... columns) |
String |
DriverAdapter.value(DataRuntime runtime,
Column column,
DriverAdapter.SQL_BUILD_IN_VALUE value)
内置函数
如果需要引号,方法应该一块返回
|
void |
DriverAdapter.value(DataRuntime runtime,
StringBuilder builder,
Object row,
String key)
在不检测数据库结构时才生效,否则会被convert代替
生成value格式 主要确定是否需要单引号 或 类型转换
有些数据库不提供默认的 隐式转换 需要显示的把String转换成相应的数据类型
如 TO_DATE('')
|
<T extends View> |
DriverAdapter.views(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> views,
String catalog,
String schema,
String pattern,
String... types)
根据JDBC补充
|
<T extends View> |
DriverAdapter.views(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> views,
DataSet set)
根据查询结果集构造View
|
<T extends View> |
DriverAdapter.views(DataRuntime runtime,
String random,
boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
Object |
DriverAdapter.write(DataRuntime runtime,
Column metadata,
Object value,
boolean placeholder)
通过占位符写入数据库前转换成数据库可接受的Java数据类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
StringBuilder |
DefaultDriverAdapter.addColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
添加列引导
|
void |
DefaultDriverAdapter.addRunValue(DataRuntime runtime,
Run run,
Compare compare,
Column column,
Object value)
设置参数值,主要根据数据类型格执行式化,如对象,list,map等插入json列
|
String |
DefaultDriverAdapter.alterColumnKeyword(DataRuntime runtime) |
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
Column column) |
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
Column column,
boolean slice)
添加列
ALTER TABLE HR_USER ADD COLUMN UPT_TIME datetime CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' AFTER ID;
|
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
Constraint constraint)
添加约束
|
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
ForeignKey foreign)
添加外键
|
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
Index index)
添加索引
ADD UNIQUE INDEX `A`(`ID`, `REG_TIME`) USING BTREE COMMENT '索引'
|
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
PrimaryKey primary)
添加主键
|
List<Run> |
DefaultDriverAdapter.buildAddRun(DataRuntime runtime,
Tag tag)
添加标签
ALTER TABLE HR_USER ADD TAG UPT_TIME datetime CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' AFTER ID;
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Column column) |
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Column column,
boolean slice)
修改列 ALTER TABLE HR_USER CHANGE UPT_TIME UPT_TIME datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' AFTER ID;
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Constraint constraint)
修改约束
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
ForeignKey foreign)
添加外键
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Function function)
修改函数
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Index index)
修改索引
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
MasterTable table) |
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
PartitionTable table) |
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
PrimaryKey primary)
修改主键
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Procedure procedure)
修改存储过程
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Table table) |
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Table table,
Collection<Column> columns)
修改列
有可能生成多条SQL,根据数据库类型优先合并成一条执行
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Tag tag)
修改标签 ALTER TABLE HR_USER CHANGE UPT_TIME UPT_TIME datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' AFTER ID;
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
Trigger trigger)
修改触发器
有可能生成多条SQL
|
List<Run> |
DefaultDriverAdapter.buildAlterRun(DataRuntime runtime,
View view) |
List<Run> |
DefaultDriverAdapter.buildAppendCommentRun(DataRuntime runtime,
Column column)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<Run> |
DefaultDriverAdapter.buildAppendCommentRun(DataRuntime runtime,
MasterTable table) |
List<Run> |
DefaultDriverAdapter.buildAppendCommentRun(DataRuntime runtime,
PartitionTable table) |
List<Run> |
DefaultDriverAdapter.buildAppendCommentRun(DataRuntime runtime,
Table table) |
List<Run> |
DefaultDriverAdapter.buildAppendCommentRun(DataRuntime runtime,
View view) |
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Column column)
修改备注
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
MasterTable table) |
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
PartitionTable table) |
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Table table) |
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
Tag tag)
修改备注
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeCommentRun(DataRuntime runtime,
View view) |
List<Run> |
DefaultDriverAdapter.buildChangeDefaultRun(DataRuntime runtime,
Column column)
修改默认值
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeDefaultRun(DataRuntime runtime,
Tag tag)
修改默认值
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeNullableRun(DataRuntime runtime,
Column column)
修改非空限制
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeNullableRun(DataRuntime runtime,
Tag tag)
修改非空限制
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeTypeRun(DataRuntime runtime,
Column column)
修改数据类型
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildChangeTypeRun(DataRuntime runtime,
Tag tag)
修改数据类型
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
Function function)
添加函数
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
MasterTable table)
创建主表
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
PartitionTable table)
创建分区表
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
Procedure procedure)
添加存储过程
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
Table table) |
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
Trigger trigger)
添加触发器
|
List<Run> |
DefaultDriverAdapter.buildCreateRun(DataRuntime runtime,
View view) |
Run |
DefaultDriverAdapter.buildDeleteRun(DataRuntime runtime,
int batch,
String table,
String key,
Object values) |
Run |
DefaultDriverAdapter.buildDeleteRun(DataRuntime runtime,
String dest,
Object obj,
String... columns) |
List<Run> |
DefaultDriverAdapter.buildDropAutoIncrement(DataRuntime runtime,
Column column)
取消自增
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Column column) |
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Column column,
boolean slice)
删除列
ALTER TABLE HR_USER DROP COLUMN NAME;
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Constraint constraint)
删除约束
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
ForeignKey foreign)
删除外键
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Function function)
删除函数
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Index index)
删除索引
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
MasterTable table) |
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
PartitionTable table) |
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
PrimaryKey primary)
删除主键
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Procedure procedure)
删除存储过程
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Table table)
删除表
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Tag tag)
删除标签
ALTER TABLE HR_USER DROP TAG NAME;
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
Trigger trigger)
删除触发器
|
List<Run> |
DefaultDriverAdapter.buildDropRun(DataRuntime runtime,
View view)
删除视图
|
Run |
DefaultDriverAdapter.buildExecuteRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
Run |
DefaultDriverAdapter.buildInsertRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建 insert Run
|
List<Run> |
DefaultDriverAdapter.buildQueryColumnRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的列
|
List<Run> |
DefaultDriverAdapter.buildQueryConstraintRun(DataRuntime runtime,
Table table,
boolean metadata)
查询表上的约束
|
List<Run> |
DefaultDriverAdapter.buildQueryDatabaseRun(DataRuntime runtime) |
List<Run> |
DefaultDriverAdapter.buildQueryDatabaseRun(DataRuntime runtime,
String name) |
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Function function)
查询 Function DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
MasterTable table)
查询 MasterTable DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
PartitionTable table)
查询 PartitionTable DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Procedure procedure)
查询 procedure DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
Table table)
查询表DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryDDLRun(DataRuntime runtime,
View view)
查询 view DDL
|
List<Run> |
DefaultDriverAdapter.buildQueryForeignsRun(DataRuntime runtime,
Table table)
查询表上的外键
|
List<Run> |
DefaultDriverAdapter.buildQueryFunctionRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
List<Run> |
DefaultDriverAdapter.buildQueryIndexRun(DataRuntime runtime,
Table table,
String name)
查询表上的索引
|
List<Run> |
DefaultDriverAdapter.buildQueryMasterTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询主表
|
List<Run> |
DefaultDriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags) |
List<Run> |
DefaultDriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
MasterTable master,
Map<String,Object> tags,
String name) |
List<Run> |
DefaultDriverAdapter.buildQueryPartitionTableRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询分区表
|
List<Run> |
DefaultDriverAdapter.buildQueryPrimaryRun(DataRuntime runtime,
Table table)
查询表上的主键
|
List<Run> |
DefaultDriverAdapter.buildQueryProcedureRun(DataRuntime runtime,
String catalog,
String schema,
String name) |
Run |
DefaultDriverAdapter.buildQueryRun(DataRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查询SQL
|
List<Run> |
DefaultDriverAdapter.buildQuerySequence(DataRuntime runtime,
boolean next,
String... names)
查询序列cur 或 next value
|
List<Run> |
DefaultDriverAdapter.buildQueryTableCommentRun(DataRuntime runtime,
String catalog,
String schema,
String pattern,
String types)
查询表备注
|
List<Run> |
DefaultDriverAdapter.buildQueryTableRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询表
|
List<Run> |
DefaultDriverAdapter.buildQueryTagRun(DataRuntime runtime,
Table table,
boolean metadata) |
List<Run> |
DefaultDriverAdapter.buildQueryTriggerRun(DataRuntime runtime,
Table table,
List<Trigger.EVENT> events)
查询表上的trigger
|
List<Run> |
DefaultDriverAdapter.buildQueryViewRun(DataRuntime runtime,
boolean greedy,
String catalog,
String schema,
String pattern,
String types)
查询表
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Column column)
修改列名
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Constraint constraint)
修改约束名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
ForeignKey foreign)
修改外键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Function function)
修改函数名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Index index)
修改索引名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
MasterTable table) |
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
PartitionTable table) |
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
PrimaryKey primary)
修改主键名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Procedure procedure)
修改存储过程名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Table table)
修改表名
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Tag tag)
修改标签名
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
Trigger trigger)
修改触发器名
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildRenameRun(DataRuntime runtime,
View view)
修改视图名
子类实现
一般不直接调用,如果需要由buildAlterRun内部统一调用
|
List<Run> |
DefaultDriverAdapter.buildTruncateRun(DataRuntime runtime,
String table) |
Run |
DefaultDriverAdapter.buildUpdateRun(DataRuntime runtime,
int batch,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
protected Run |
DefaultDriverAdapter.buildUpdateRunFromCollection(DataRuntime runtime,
int batch,
String dest,
Collection list,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
protected Run |
DefaultDriverAdapter.buildUpdateRunFromDataRow(DataRuntime runtime,
String dest,
DataRow row,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
protected Run |
DefaultDriverAdapter.buildUpdateRunFromEntity(DataRuntime runtime,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns) |
StringBuilder |
DefaultDriverAdapter.charset(DataRuntime runtime,
StringBuilder builder,
Column column)
编码
|
StringBuilder |
DefaultDriverAdapter.checkColumnExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除列时检测是否存在
|
Boolean |
DefaultDriverAdapter.checkIgnorePrecision(DataRuntime runtime,
String type) |
Boolean |
DefaultDriverAdapter.checkIgnoreScale(DataRuntime runtime,
String type) |
LinkedHashMap<String,Column> |
DefaultDriverAdapter.checkMetadata(DataRuntime runtime,
String table,
LinkedHashMap<String,Column> columns)
过滤掉表结构中不存在的列
|
StringBuilder |
DefaultDriverAdapter.checkTableExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除表时检测表是否存在
|
StringBuilder |
DefaultDriverAdapter.checkTagExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除标签之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
DefaultDriverAdapter.checkViewExists(DataRuntime runtime,
StringBuilder builder,
boolean exists)
创建或删除视图时检测视图是否存在
|
Column |
DefaultDriverAdapter.column(DataRuntime runtime,
Column column,
ResultSet rs)
构建Column
|
StringBuilder |
DefaultDriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Column column)
备注
子类实现
|
void |
DefaultDriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Index index)
索引备注
|
StringBuilder |
DefaultDriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
Table table)
备注 不支持创建表时带备注的 在子表中忽略
|
StringBuilder |
DefaultDriverAdapter.comment(DataRuntime runtime,
StringBuilder builder,
View view)
备注 不支持创建视图时带备注的 在子视图中忽略
|
<T extends Table> |
DefaultDriverAdapter.comments(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
表备注
|
<T extends Table> |
DefaultDriverAdapter.comments(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
List<T> tables,
DataSet set) |
LinkedHashMap<String,Column> |
DefaultDriverAdapter.confirmInsertColumns(DataRuntime runtime,
String dest,
Object obj,
List<String> columns,
boolean batch)
确认需要插入的列
|
protected LinkedHashMap<String,Column> |
DefaultDriverAdapter.confirmUpdateColumns(DataRuntime runtime,
String dest,
DataRow row,
ConfigStore configs,
List<String> columns)
确认需要更新的列
|
<T extends Constraint> |
DefaultDriverAdapter.constraints(DataRuntime runtime,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
ResultSet set) |
<T extends Constraint> |
DefaultDriverAdapter.constraints(DataRuntime runtime,
int constraint,
boolean create,
Table table,
LinkedHashMap<String,T> constraints,
DataSet set)
根据查询结果集构造Constraint
|
Object |
DefaultDriverAdapter.convert(DataRuntime runtime,
Column metadata,
Object value) |
boolean |
DefaultDriverAdapter.convert(DataRuntime runtime,
Column metadata,
RunValue run)
根据数据库列属性 类型转换(一般是在更新数据库时调用)
子类先解析(有些同名的类型以子类为准)、失败后再到这里解析
|
Object |
DefaultDriverAdapter.convert(DataRuntime runtime,
ColumnType columnType,
Object value) |
boolean |
DefaultDriverAdapter.convert(DataRuntime runtime,
Map<String,Column> columns,
RunValue value) |
boolean |
DefaultDriverAdapter.convert(DataRuntime runtime,
String catalog,
String schema,
String table,
RunValue value) |
boolean |
DefaultDriverAdapter.convert(DataRuntime runtime,
Table table,
Run run) |
protected Run |
DefaultDriverAdapter.createInsertRun(DataRuntime runtime,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
根据entity创建 INSERT RunPrepare
|
protected Run |
DefaultDriverAdapter.createInsertRunFromCollection(DataRuntime runtime,
int batch,
String dest,
Collection list,
boolean checkPrimary,
List<String> columns)
根据collection创建 INSERT RunPrepare
|
Database |
DefaultDriverAdapter.database(DataRuntime runtime,
int index,
boolean create,
DataSet set) |
LinkedHashMap<String,Database> |
DefaultDriverAdapter.databases(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,Database> databases,
DataSet set) |
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
Function function,
List<String> ddls,
DataSet set)
查询 function DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
MasterTable table,
List<String> ddls,
DataSet set)
查询 MasterTable DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
PartitionTable table,
List<String> ddls,
DataSet set)
查询 PartitionTable DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
Procedure procedure,
List<String> ddls,
DataSet set)
查询 function DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
Table table,
List<String> ddls,
DataSet set)
查询表DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
int index,
View view,
List<String> ddls,
DataSet set)
查询 view DDL
|
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
String random,
Function function) |
List<String> |
DefaultDriverAdapter.ddl(DataRuntime runtime,
String random,
Procedure procedure) |
StringBuilder |
DefaultDriverAdapter.defaultValue(DataRuntime runtime,
StringBuilder builder,
Column column)
默认值
|
StringBuilder |
DefaultDriverAdapter.define(DataRuntime runtime,
StringBuilder builder,
Column column)
定义列
|
StringBuilder |
DefaultDriverAdapter.dropColumnGuide(DataRuntime runtime,
StringBuilder builder,
Column column)
删除列引导
|
void |
DefaultDriverAdapter.each(DataRuntime runtime,
StringBuilder builder,
Trigger trigger) |
void |
DefaultDriverAdapter.fillExecuteContent(DataRuntime runtime,
Run run)
构造查询主体
|
protected void |
DefaultDriverAdapter.fillExecuteContent(DataRuntime runtime,
TableRun run) |
protected void |
DefaultDriverAdapter.fillExecuteContent(DataRuntime runtime,
TextRun run) |
protected void |
DefaultDriverAdapter.fillExecuteContent(DataRuntime runtime,
XMLRun run) |
void |
DefaultDriverAdapter.fillInsertContent(DataRuntime runtime,
Run run,
String dest,
Collection list,
LinkedHashMap<String,Column> columns)
根据Collection创建批量INSERT RunPrepare
|
void |
DefaultDriverAdapter.fillInsertContent(DataRuntime runtime,
Run run,
String dest,
DataSet set,
LinkedHashMap<String,Column> columns)
根据DataSet创建批量INSERT RunPrepare
|
void |
DefaultDriverAdapter.fillQueryContent(DataRuntime runtime,
Run run)
构造查询主体
|
protected void |
DefaultDriverAdapter.fillQueryContent(DataRuntime runtime,
TableRun run) |
protected void |
DefaultDriverAdapter.fillQueryContent(DataRuntime runtime,
TextRun run) |
protected void |
DefaultDriverAdapter.fillQueryContent(DataRuntime runtime,
XMLRun run) |
<T extends ForeignKey> |
DefaultDriverAdapter.foreigns(DataRuntime runtime,
int index,
Table table,
LinkedHashMap<String,T> foreigns,
DataSet set)
根据查询结果集构造PrimaryKey
|
<T extends Function> |
DefaultDriverAdapter.functions(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> functions,
DataSet set) |
String |
DefaultDriverAdapter.getPrimaryKey(DataRuntime runtime,
Object obj) |
Object |
DefaultDriverAdapter.getPrimaryValue(DataRuntime runtime,
Object obj) |
StringBuilder |
DefaultDriverAdapter.increment(DataRuntime runtime,
StringBuilder builder,
Column column)
递增列
子类实现
|
<T extends Index> |
DefaultDriverAdapter.indexs(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> indexs,
Table table,
boolean unique,
boolean approximate) |
<T extends Index> |
DefaultDriverAdapter.indexs(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> indexs,
DataSet set) |
boolean |
DefaultDriverAdapter.isBooleanColumn(DataRuntime runtime,
Column column) |
boolean |
DefaultDriverAdapter.isCharColumn(DataRuntime runtime,
Column column) |
boolean |
DefaultDriverAdapter.isIgnorePrecision(DataRuntime runtime,
Column column) |
boolean |
DefaultDriverAdapter.isIgnoreScale(DataRuntime runtime,
Column column) |
boolean |
DefaultDriverAdapter.isNumberColumn(DataRuntime runtime,
Column column)
是否同数字
|
String |
DefaultDriverAdapter.mergeFinalExists(DataRuntime runtime,
Run run) |
String |
DefaultDriverAdapter.mergeFinalTotal(DataRuntime runtime,
Run run)
求总数SQL
Run 反转调用
|
<T extends MasterTable> |
DefaultDriverAdapter.mtables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types) |
<T extends MasterTable> |
DefaultDriverAdapter.mtables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
从上一步生成的SQL查询结果中 提取表结构
|
StringBuilder |
DefaultDriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Function function) |
StringBuilder |
DefaultDriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Procedure procedure) |
StringBuilder |
DefaultDriverAdapter.name(DataRuntime runtime,
StringBuilder builder,
Table table)
构造完整表名
|
StringBuilder |
DefaultDriverAdapter.nullable(DataRuntime runtime,
StringBuilder builder,
Column column)
编码
|
String |
DefaultDriverAdapter.objectName(DataRuntime runtime,
String name) |
StringBuilder |
DefaultDriverAdapter.onupdate(DataRuntime runtime,
StringBuilder builder,
Column column)
更新行事件
子类实现
|
void |
DefaultDriverAdapter.parameter(DataRuntime runtime,
StringBuilder builder,
Parameter parameter)
生在输入输出参数
|
StringBuilder |
DefaultDriverAdapter.position(DataRuntime runtime,
StringBuilder builder,
Column column)
位置
子类实现
|
PrimaryKey |
DefaultDriverAdapter.primary(DataRuntime runtime,
int index,
Table table,
DataSet set)
根据查询结果集构造PrimaryKey
|
StringBuilder |
DefaultDriverAdapter.primary(DataRuntime runtime,
StringBuilder builder,
Column column)
主键(注意不要跟表定义中的主键重复)
子类实现
|
StringBuilder |
DefaultDriverAdapter.primary(DataRuntime runtime,
StringBuilder builder,
Table table)
主键
|
<T extends Procedure> |
DefaultDriverAdapter.procedures(DataRuntime runtime,
int index,
boolean create,
LinkedHashMap<String,T> procedures,
DataSet set) |
List<Map<String,Object>> |
DefaultDriverAdapter.process(DataRuntime runtime,
List<Map<String,Object>> list)
JDBC执行完成后的结果处理
|
<T extends PartitionTable> |
DefaultDriverAdapter.ptables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
MasterTable master) |
<T extends PartitionTable> |
DefaultDriverAdapter.ptables(DataRuntime runtime,
int total,
int index,
boolean create,
MasterTable master,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set)
根据查询结果集构造Table
|
protected String |
DefaultDriverAdapter.random(DataRuntime runtime) |
Object |
DefaultDriverAdapter.read(DataRuntime runtime,
Column metadata,
Object value,
Class clazz)
从数据库中读取数据
先由子类根据metadata.typeName(CHAR,INT)定位到具体的数据库类型ColumnType 如果定准成功由CoumnType根据class转换(class可不提供) 如果没有定位到ColumnType再根据className(String,BigDecimal)定位到JavaType 如果定准失败或转换失败(返回null)再由父类转换 如果没有提供metadata和class则根据value.class 常用类型jdbc可以自动转换直接返回就可以(一般子类DataType返回null父类原样返回) 不常用的如json/point/polygon/blob等转换成anyline对应的类型 |
<T extends Table> |
DefaultDriverAdapter.tables(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tables,
String catalog,
String schema,
String pattern,
String... types)
根据驱动内置方法补充
|
<T extends Table> |
DefaultDriverAdapter.tables(DataRuntime runtime,
boolean create,
List<T> tables,
String catalog,
String schema,
String pattern,
String... types) |
<T extends Table> |
DefaultDriverAdapter.tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> tables,
DataSet set) |
<T extends Table> |
DefaultDriverAdapter.tables(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
List<T> tables,
DataSet set) |
<T extends Tag> |
DefaultDriverAdapter.tags(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> tags,
Table table,
String pattern) |
<T extends Tag> |
DefaultDriverAdapter.tags(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> tags,
DataSet set)
根据查询结果集构造Tag
|
<T extends Trigger> |
DefaultDriverAdapter.triggers(DataRuntime runtime,
int index,
boolean create,
Table table,
LinkedHashMap<String,T> triggers,
DataSet set)
根据查询结果集构造Constraint
|
StringBuilder |
DefaultDriverAdapter.type(DataRuntime runtime,
StringBuilder builder,
Column column)
数据类型
|
StringBuilder |
DefaultDriverAdapter.type(DataRuntime runtime,
StringBuilder builder,
Column column,
String type,
boolean isIgnorePrecision,
boolean isIgnoreScale)
列数据类型定义
|
long |
DefaultDriverAdapter.update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
UPDATE [入口]
|
String |
DefaultDriverAdapter.value(DataRuntime runtime,
Column column,
DriverAdapter.SQL_BUILD_IN_VALUE value)
内置函数
|
void |
DefaultDriverAdapter.value(DataRuntime runtime,
StringBuilder builder,
Object obj,
String key) |
<T extends View> |
DefaultDriverAdapter.views(DataRuntime runtime,
boolean create,
LinkedHashMap<String,T> views,
String catalog,
String schema,
String pattern,
String... types) |
<T extends View> |
DefaultDriverAdapter.views(DataRuntime runtime,
int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,T> views,
DataSet set) |
Object |
DefaultDriverAdapter.write(DataRuntime runtime,
Column metadata,
Object value,
boolean placeholder)
写入数据库前类型转换
|
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
DDInterceptor.after(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
ExecuteInterceptor.after(DataRuntime runtime,
String random,
Procedure procedure,
boolean success,
boolean result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.after(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi,
boolean success,
Object result,
long millis) |
default ACTION.SWITCH |
ExecuteInterceptor.after(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DeleteInterceptor.after(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
ACTION.SWITCH |
CountInterceptor.after(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.after(DataRuntime runtime,
String random,
Run run,
boolean success,
Object result,
PageNavi navi,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
InsertInterceptor.after(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns,
boolean success,
long result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
UpdateInterceptor.after(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns,
boolean success,
long result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DDInterceptor.before(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs)
在SQL执行之前触发,注意到了这一步,SQL已经创建完成不可修改
|
default ACTION.SWITCH |
ExecuteInterceptor.before(DataRuntime runtime,
String random,
Procedure procedure)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.before(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
default ACTION.SWITCH |
ExecuteInterceptor.before(DataRuntime runtime,
String random,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DeleteInterceptor.before(DataRuntime runtime,
String random,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
ACTION.SWITCH |
CountInterceptor.before(DataRuntime runtime,
String random,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.before(DataRuntime runtime,
String random,
Run run,
PageNavi navi)
合计总数之后调用,行数页数等信息在navi中,到这一步SQL已创建完成
|
default ACTION.SWITCH |
InsertInterceptor.before(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
UpdateInterceptor.before(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DDInterceptor.prepare(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata)
在创建SQL之前触发,如果需要影响SQL创建可以在这一步修改metadata,类型一般是org.anyline.entity.data.Table/Column等
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String table,
ConfigStore configs,
String... conditions) |
default ACTION.SWITCH |
InsertInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
创建update SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
创建delete SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
UpdateInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
创建update SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String table,
Object obj,
String... columns) |
default ACTION.SWITCH |
DeleteInterceptor.prepare(DataRuntime runtime,
String random,
int batch,
String table,
String key,
Collection values) |
default ACTION.SWITCH |
ExecuteInterceptor.prepare(DataRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
QueryInterceptor.prepare(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
default ACTION.SWITCH |
QueryInterceptor.prepare(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查询SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
ExecuteInterceptor.prepare(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建 SQL之前,可以在这一步修改查询条件
|
ACTION.SWITCH |
CountInterceptor.prepare(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建COUNT SQL之前,可以在这一步修改查询条件
|
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
DDListener.afterAdd(DataRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(DataRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Table table,
Collection<Column> columns,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(DataRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlterColumnException(DataRuntime runtime,
String random,
Table table,
Column column,
Exception exception)
修改列之后触发
触发之后如果返回true dao将再执行一次 alter column
一般在此事件中处理 发生类型转换时(DataRuntime runtime, String random, 如String to Number) 修改表内容
|
default ACTION.SWITCH |
DDListener.afterAlterColumnException(DataRuntime runtime,
String random,
Table table,
Column column,
long rows,
Exception exception)
修改列之后触发
触发之后如果返回true dao将再执行一次 alter column
一般在此事件中处理 发生类型转换时(DataRuntime runtime, String random, 如String to Number) 修改表内容
|
default ACTION.SWITCH |
DMListener.afterCount(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis)
count之后调用
|
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(DataRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterDelete(DataRuntime runtime,
String random,
Run run,
boolean success,
long qty,
long millis)
执行删除后调用
|
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(DataRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterExecute(DataRuntime runtime,
String random,
Procedure procedure,
boolean success,
long millis)
执行存储过程之后调用
|
default ACTION.SWITCH |
DMListener.afterExecute(DataRuntime runtime,
String random,
Run run,
boolean success,
long qty,
long millis)
执行SQL之后调用
|
default ACTION.SWITCH |
DMListener.afterExists(DataRuntime runtime,
String random,
Run run,
boolean success,
boolean exists,
long millis)
判断是否存在之后调用
|
default ACTION.SWITCH |
DMListener.afterInsert(DataRuntime runtime,
String random,
Run run,
long count,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns,
boolean success,
long qty,
long millis)
插入之后调用
|
default ACTION.SWITCH |
DMListener.afterQuery(DataRuntime runtime,
String random,
Procedure procedure,
boolean success,
DataSet set,
long millis)
查询存储过程之后调用
|
default ACTION.SWITCH |
DMListener.afterQuery(DataRuntime runtime,
String random,
Run run,
boolean success,
DataSet set,
long millis)
查询之后调用(DataRuntime runtime, String random, 调用service.query或service.querys)
|
default ACTION.SWITCH |
DMListener.afterQuery(DataRuntime runtime,
String random,
Run run,
boolean success,
EntitySet<?> maps,
long millis) |
default ACTION.SWITCH |
DMListener.afterQuery(DataRuntime runtime,
String random,
Run run,
boolean success,
List<?> maps,
long millis)
查询之后调用(DataRuntime runtime, String random, 调用service.map或service.maps)
|
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(DataRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterTotal(DataRuntime runtime,
String random,
Run run,
boolean success,
long total,
long millis)
统计总记录数之后调用
|
default ACTION.SWITCH |
DMListener.afterUpdate(DataRuntime runtime,
String random,
Run run,
long count,
String dest,
Object obj,
List<String> columns,
boolean success,
long qty,
long millis)
更新之前调用
|
default ACTION.SWITCH |
DDListener.beforeAdd(DataRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(DataRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Table table,
Collection<Column> columns) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(DataRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeCount(DataRuntime runtime,
String random,
Run run)
count之前调用
|
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(DataRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeDelete(DataRuntime runtime,
String random,
Run run)
执行删除前调用
|
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(DataRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeExecute(DataRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DMListener.beforeExecute(DataRuntime runtime,
String random,
Run run)
执行SQL之前调用
|
default ACTION.SWITCH |
DMListener.beforeExists(DataRuntime runtime,
String random,
Run run)
判断是否存在之前调用
|
default ACTION.SWITCH |
DMListener.beforeInsert(DataRuntime runtime,
String random,
Run run,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建insert sql之前调用
|
default ACTION.SWITCH |
DMListener.beforeQuery(DataRuntime runtime,
String random,
Procedure procedure)
查询存过程之前调用
|
default ACTION.SWITCH |
DMListener.beforeQuery(DataRuntime runtime,
String random,
Run run,
long total)
查询之前调用
不满足查询条件的不会走到这一步(DataRuntime runtime, String random, 如必须参数未提供) 只有确定执行查询时才会到这一步,到了这一步已经不能修改查询条件 要修改查询条件可以在prepareQuery实现 |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(DataRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeTotal(DataRuntime runtime,
String random,
Run run)
统计总记录数之前调用
|
default ACTION.SWITCH |
DMListener.beforeUpdate(DataRuntime runtime,
String random,
Run run,
String dest,
Object obj,
List<String> columns)
更新之前调用
|
default ACTION.SWITCH |
DDListener.parepareAlter(DataRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareAdd(DataRuntime runtime,
String random,
Column column)
准备添加列
|
default ACTION.SWITCH |
DDListener.prepareAdd(DataRuntime runtime,
String random,
Constraint constraint)
创建constraint之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(DataRuntime runtime,
String random,
ForeignKey foreign)
创建 foreign 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(DataRuntime runtime,
String random,
Index index)
创建 index 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(DataRuntime runtime,
String random,
PrimaryKey primary)
创建 primary 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareAlter(DataRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
Function function)
创建 function 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
MasterTable table)
创建 MasterTable 之前调用
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
PartitionTable table)
创建 PartitionTable 之前调用
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
Procedure procedure)
创建procedure之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
Table table)
创建 table 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
Trigger trigger)
创建 trigger 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(DataRuntime runtime,
String random,
View view)
创建 view 之前调用
|
default ACTION.SWITCH |
DMListener.prepareDelete(DataRuntime runtime,
String random,
int batch,
String dest,
Object obj,
String... columns)
创建删除SQL前调用(DataRuntime runtime, String random, 根据Entity/DataRow),修改删除条件可以在这一步实现
注意不是beforeDelete 注意prepareDelete有两个函数需要实现 service.delete(DataRuntime runtime, String random, DataRow/Entity){return SWITCH.CONTINUE;} |
default ACTION.SWITCH |
DMListener.prepareDelete(DataRuntime runtime,
String random,
int batch,
String table,
String key,
Object values)
创建删除SQL前调用(DataRuntime runtime, String random, 根据条件),修改删除条件可以在这一步实现
注意不是beforeDelete 注意prepareDelete有两个函数需要实现 service.delete(DataRuntime runtime, String random, "CRM_USER", "ID", "1", "2", "3"){return SWITCH.CONTINUE;} |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareDrop(DataRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DMListener.prepareExecute(DataRuntime runtime,
String random,
Procedure procedure)
执行存储过程之前调用
|
default ACTION.SWITCH |
DMListener.prepareInsert(DataRuntime runtime,
String random,
int batch,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建插入相关的SQL之前调用
要修改插入内容可以在这一步实现,注意不是在beforeInsert |
default ACTION.SWITCH |
DMListener.prepareQuery(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查相关的SQL之前调用,包括slect exists count等
要修改查询条件可以在这一步实现,注意不是在beforeQuery |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareRename(DataRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DMListener.prepareUpdate(DataRuntime runtime,
String random,
int batch,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns)
创建更新相关的SQL之前调用
要修改更新内容或条件可以在这一步实现,注意不是在beforeUpdate |
default ACTION.SWITCH |
DMListener.slow(DataRuntime runtime,
String random,
ACTION.DML action,
Run run,
String sql,
List inputs,
List outputs,
boolean success,
Object result,
long millis)
执行SQL时间超限时触发
|
| 限定符和类型 | 方法和说明 |
|---|---|
ACTION.SWITCH |
DefaultDDListener.afterAlterColumnException(DataRuntime runtime,
String random,
Table table,
Column column,
Exception exception)
ddl异常触发
|
ACTION.SWITCH |
DefaultDDListener.exeAfterException(DataRuntime runtime,
Table table,
Column column,
Exception exception) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
Condition.getRunText(String prefix,
DataRuntime runtime)
运行时文本
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
DefaultAutoConditionChain.getRunText(String prefix,
DataRuntime runtime) |
String |
DefaultAutoCondition.getRunText(String prefix,
DataRuntime runtime)
运行时文本
|
String |
DefaultAutoCondition.getRunText(String prefix,
DataRuntime runtime,
Object val,
Compare compare) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
DefaultXMLConditionChain.getRunText(String prefix,
DataRuntime runtime) |
String |
DefaultXMLCondition.getRunText(String prefix,
DataRuntime runtime) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataRuntime |
BasicRun.runtime |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Run.setRuntime(DataRuntime runtime) |
void |
BasicRun.setRuntime(DataRuntime runtime) |
| 构造器和说明 |
|---|
TableRun(DataRuntime runtime,
String table) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<String,DataRuntime> |
RuntimeHolder.runtimes |
| 限定符和类型 | 方法和说明 |
|---|---|
static DataRuntime |
RuntimeHolder.getRuntime() |
static DataRuntime |
RuntimeHolder.getRuntime(String datasource) |
abstract DataRuntime |
RuntimeHolder.regTemporary(String key,
Object datasource,
String database,
DriverAdapter adapter) |
DataRuntime |
RuntimeHolder.temporary(String key,
Object datasource,
String database,
DriverAdapter adapter)
注册数据源 子类覆盖 生成简单的DataRuntime不注册到spring
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RuntimeHolder.reg(String key,
DataRuntime runtime) |
| 限定符和类型 | 方法和说明 |
|---|---|
static DriverAdapter |
DriverAdapterHolder.getAdapter(String datasource,
DataRuntime runtime)
定准适配器
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DataRuntime |
RuntimeHolderProxy.temporary(String key,
Object datasource,
String database,
DriverAdapter adapter)
临时数据源
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ACTION.SWITCH |
InterceptorProxy.after(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs,
boolean result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterCount(DataRuntime runtime,
String random,
Run run,
boolean exe,
long result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterDelete(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterExecute(DataRuntime runtime,
String random,
Procedure procedure,
boolean success,
boolean result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterExecute(DataRuntime runtime,
String random,
Run run,
boolean success,
long result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterInsert(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns,
boolean success,
long result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterQuery(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi,
boolean success,
Object result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterQuery(DataRuntime runtime,
String random,
Run run,
boolean exe,
Object result,
PageNavi navi,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterUpdate(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns,
boolean success,
long result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.before(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs) |
static ACTION.SWITCH |
InterceptorProxy.beforeCount(DataRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeDelete(DataRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeExecute(DataRuntime runtime,
String random,
Procedure procedure) |
static ACTION.SWITCH |
InterceptorProxy.beforeExecute(DataRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeInsert(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.beforeQuery(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.beforeQuery(DataRuntime runtime,
String random,
Run run,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.beforeUpdate(DataRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.prepare(DataRuntime runtime,
String random,
ACTION.DDL action,
Object metadata)
DDL
|
static ACTION.SWITCH |
InterceptorProxy.prepareCount(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(DataRuntime runtime,
String random,
int batch,
String table,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(DataRuntime runtime,
String random,
int batch,
String dest,
Object obj,
String... columns) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(DataRuntime runtime,
String random,
int batch,
String table,
String key,
Collection values) |
static ACTION.SWITCH |
InterceptorProxy.prepareExecute(DataRuntime runtime,
String random,
Procedure procedure) |
static ACTION.SWITCH |
InterceptorProxy.prepareExecute(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareInsert(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.prepareQuery(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.prepareQuery(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
DML
|
static ACTION.SWITCH |
InterceptorProxy.prepareUpdate(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
Copyright © 2023. All rights reserved.