类 AbstractDriverAdapter
java.lang.Object
org.anyline.data.adapter.init.AbstractDriverAdapter
- 所有已实现的接口:
DriverAdapter
- 直接已知子类:
TemplateAdapter
-
嵌套类概要
从接口继承的嵌套类/接口 org.anyline.data.adapter.DriverAdapter
DriverAdapter.SQL_BUILD_IN_VALUE -
字段概要
字段修饰符和类型字段说明protected DriverActuatorprotected DDListenerprotected Stringprotected Stringprotected DMListenerprotected PrimaryGeneratorprotected Map<Class<?>,MetadataFieldRefer> 从接口继承的字段 org.anyline.data.adapter.DriverAdapter
BR, BR_TAB, log, TAB -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanadd(DataRuntime runtime, Column meta) column[调用入口]
添加列,执行的命令通过meta.ddls()返回booleanadd(DataRuntime runtime, Constraint meta) constraint[调用入口]
添加约束booleanadd(DataRuntime runtime, ForeignKey meta) foreign[调用入口] 添加外键booleanadd(DataRuntime runtime, Index meta) index[调用入口]
添加索引booleanadd(DataRuntime runtime, PrimaryKey meta) primary[调用入口]
添加主键booleanadd(DataRuntime runtime, Tag meta) tag[调用入口]
添加标签booleanadd(DataRuntime runtime, Trigger meta) trigger[调用入口]
添加触发器addColumnClose(DataRuntime runtime, StringBuilder builder, Column meta) addColumnGuide(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
添加列引导
alter table sso_user [add column] type_code intvoidaddRunValue(DataRuntime runtime, Run run, Compare compare, Column column, Object value) 设置参数值,主要根据数据类型格执行式化,如对象,list,map等插入json列aggregation(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
定义列:聚合类型alias()数据类型别名protected voidalias(String key, TypeMetadata value) protected voidalias(String key, TypeMetadata value, boolean override) protected voidbooleanalter(DataRuntime runtime, Catalog meta) catalog[调用入口]
修改Catalog,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, Column meta) column[调用入口]
修改列,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, Constraint meta) constraint[调用入口]
修改约束booleanalter(DataRuntime runtime, Database meta) database[调用入口]
修改Database,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, ForeignKey meta) foreign[调用入口] 修改外键booleanalter(DataRuntime runtime, Function meta) function[调用入口] 修改函数booleanalter(DataRuntime runtime, Index meta) index[调用入口]
修改索引booleanalter(DataRuntime runtime, MasterTable meta) master table[调用入口]
修改主表,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, PartitionTable meta) partition table[调用入口]
修改分区表,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, PrimaryKey meta) primary[调用入口]
修改主键booleanalter(DataRuntime runtime, Procedure meta) procedure[调用入口]
修改存储过程booleanalter(DataRuntime runtime, Schema meta) schema[调用入口]
修改Schema,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, Sequence meta) sequence[调用入口] 修改序列booleanalter(DataRuntime runtime, Table meta) table[调用入口]
修改表,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, Table table, Column meta, boolean trigger) column[调用入口]
修改列,执行的命令通过meta.ddls()返回booleanalter(DataRuntime runtime, Table table, Constraint meta) constraint[调用入口]
修改约束booleanalter(DataRuntime runtime, Table table, ForeignKey meta) foreign[调用入口] 修改外键booleanalter(DataRuntime runtime, Table table, Index meta) index[调用入口]
修改索引booleanalter(DataRuntime runtime, Table table, PrimaryKey origin, PrimaryKey meta) primary[调用入口]
修改Table最后修改主键,注意不要与列上的主键标识重复,如果列上支持标识主键,这里不需要实现booleanalter(DataRuntime runtime, Table table, Tag meta, boolean trigger) tag[调用入口]
修改标签booleanalter(DataRuntime runtime, Tag meta) tag[调用入口]
修改标签booleanalter(DataRuntime runtime, Trigger meta) trigger[调用入口]
修改触发器booleanalter(DataRuntime runtime, View meta) view[调用入口]
修改视图,执行的命令通过meta.ddls()返回alterColumnKeyword(DataRuntime runtime) column[命令合成-子流程]
修改表的关键字insert [命令合成-子流程]
批量插入数据时,多行数据之间分隔符body(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
创建表 body部分包含column indexbuildAddCommentRun(DataRuntime runtime, Catalog catalog) catalog[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)buildAddCommentRun(DataRuntime runtime, Database database) database[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)buildAddCommentRun(DataRuntime runtime, Schema schema) schema[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)buildAddRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成]
添加列buildAddRun(DataRuntime runtime, Constraint meta) constraint[命令合成]
添加约束buildAddRun(DataRuntime runtime, ForeignKey meta) foreign[命令合成]
添加外键buildAddRun(DataRuntime runtime, Index meta) index[命令合成]
添加索引buildAddRun(DataRuntime runtime, PrimaryKey meta, boolean slice) primary[命令合成]
添加主键buildAddRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
添加标签buildAlterPositions(DataRuntime runtime, Table meta) 统一更新列顺序buildAlterRun(DataRuntime runtime, Catalog meta) catalog[命令合成]
修改CatalogbuildAlterRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成]
修改列 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Constraint meta) constraint[命令合成]
修改约束 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Database meta) database[命令合成]
修改DatabasebuildAlterRun(DataRuntime runtime, ForeignKey meta) foreign[命令合成]
修改外键buildAlterRun(DataRuntime runtime, Function meta) function[命令合成]
修改函数 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Index meta) index[命令合成]
修改索引 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, MasterTable meta) master table[命令合成-子流程]
修改主表buildAlterRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成]
修改分区表buildAlterRun(DataRuntime runtime, PrimaryKey origin, PrimaryKey meta, boolean slice) primary[命令合成]
修改主键 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Procedure meta) procedure[命令合成]
修改存储过程 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Schema meta) schema[命令合成]
修改SchemabuildAlterRun(DataRuntime runtime, Sequence meta) sequence[命令合成]
修改序列 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Table meta) table[命令合成]
修改表 只生成修改表本身属性 不生成关于列及索引的buildAlterRun(DataRuntime runtime, Table meta, Collection<Column> columns, boolean slice) table[命令合成]
修改列 有可能生成多条SQL,根据数据库类型优先合并成一条执行buildAlterRun(DataRuntime runtime, Table meta, Table update) table[命令合成]
修改表 只生成修改表本身属性 不生成关于列及索引的buildAlterRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改标签 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, Trigger meta) trigger[命令合成]
修改触发器 有可能生成多条SQLbuildAlterRun(DataRuntime runtime, View meta) view[命令合成]
修改视图buildAppendColumnCommentRun(DataRuntime runtime, Catalog meta) catalog[命令合成-子流程]
创建Catalog完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现buildAppendColumnCommentRun(DataRuntime runtime, Database meta) database[命令合成-子流程]
创建Database完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现buildAppendColumnCommentRun(DataRuntime runtime, Schema meta) schema[命令合成-子流程]
创建Schema完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现buildAppendColumnCommentRun(DataRuntime runtime, Table meta) table[命令合成-子流程]
创建表完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现buildAppendCommentRun(DataRuntime runtime, Catalog meta) catalog[命令合成-子流程]
创建Catalog完成后追加Catalog备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Catalog meta)二选一实现buildAppendCommentRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现buildAppendCommentRun(DataRuntime runtime, Database meta) database[命令合成-子流程]
创建Database完成后追加Database备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Database meta)二选一实现buildAppendCommentRun(DataRuntime runtime, MasterTable meta) master table[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现buildAppendCommentRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现buildAppendCommentRun(DataRuntime runtime, Schema meta) schema[命令合成-子流程]
创建Schema完成后追加Schema备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Schema meta)二选一实现buildAppendCommentRun(DataRuntime runtime, Table meta) table[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现buildAppendCommentRun(DataRuntime runtime, View meta) view[命令合成-子流程]
添加视图备注(视图创建完成后调用,创建过程能添加备注的不需要实现)buildAppendIndexRun(DataRuntime runtime, Table meta) index[命令合成]
创建表过程添加索引,表创建完成后添加索引,于表内索引index(DataRuntime, StringBuilder, Table)二选一buildChangeCommentRun(DataRuntime runtime, Catalog catalog) catalog[命令合成-子流程]
修改备注buildChangeCommentRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
修改备注 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeCommentRun(DataRuntime runtime, Database database) database[命令合成-子流程]
修改备注buildChangeCommentRun(DataRuntime runtime, MasterTable meta) master table[命令合成-子流程]
修改主表备注buildChangeCommentRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成-子流程]
修改分区表备注buildChangeCommentRun(DataRuntime runtime, Schema schema) schema[命令合成-子流程]
修改备注buildChangeCommentRun(DataRuntime runtime, Table meta) table[命令合成-子流程]
修改备注buildChangeCommentRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改备注 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeCommentRun(DataRuntime runtime, View meta) view[命令合成-子流程]
修改备注buildChangeDefaultRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
修改默认值 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeDefaultRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改默认值 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeNullableRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
修改非空限制 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeNullableRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改非空限制 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeTypeRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
修改数据类型 一般不直接调用,如果需要由buildAlterRun内部统一调用buildChangeTypeRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改数据类型 一般不直接调用,如果需要由buildAlterRun内部统一调用buildCreateRun(DataRuntime runtime, Role role) role[命令合成]
创建角色buildCreateRun(DataRuntime runtime, User user) user[命令合成]
创建用户buildCreateRun(DataRuntime runtime, Catalog meta) catalog[命令合成]
创建Catalog
其中1.x三选一 不要重复buildCreateRun(DataRuntime runtime, Database meta) database[命令合成]
创建Database
其中1.x三选一 不要重复buildCreateRun(DataRuntime runtime, Function meta) function[命令合成]
添加函数buildCreateRun(DataRuntime runtime, MasterTable meta) master table[命令合成]
创建主表buildCreateRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成]
创建分区表buildCreateRun(DataRuntime runtime, Procedure meta) procedure[命令合成]
添加存储过程buildCreateRun(DataRuntime runtime, Schema meta) schema[命令合成]
创建Schema
其中1.x三选一 不要重复buildCreateRun(DataRuntime runtime, Sequence meta) sequence[命令合成]
添加序列buildCreateRun(DataRuntime runtime, Table meta) table[命令合成]
创建表
关于创建主键的几个环节
1.1.定义列时 标识 primary(DataRuntime runtime, StringBuilder builder, Column column)
1.2.定义表时 标识 primary(DataRuntime runtime, StringBuilder builder, Table table)
1.3.定义完表DDL后,单独创建 primary(DataRuntime runtime, PrimaryKey primary)根据三选一情况调用buildCreateRun
2.单独创建 buildCreateRun(DataRuntime runtime, PrimaryKey primary)
其中1.x三选一 不要重复buildCreateRun(DataRuntime runtime, Trigger meta) trigger[命令合成]
添加触发器buildCreateRun(DataRuntime runtime, View meta) view[命令合成]
创建视图buildCreateRunHead(DataRuntime runtime, StringBuilder builder, View meta) view[命令合成-子流程]
创建视图头部buildCreateRunOption(DataRuntime runtime, StringBuilder builder, View meta) view[命令合成-子流程]
创建视图选项buildDeleteRun(DataRuntime runtime, int batch, Table table, ConfigStore configs, Boolean placeholder, Boolean unicode, String key, Object values) delete[命令合成]
合成 where column in (values)buildDeleteRun(DataRuntime runtime, Table dest, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... columns) delete[命令合成]
合成 where k1 = v1 and k2 = v2buildDeleteRunFromEntity(DataRuntime runtime, Table table, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... columns) delete[命令合成-子流程]
合成 where k1 = v1 and k2 = v2buildDeleteRunFromTable(DataRuntime runtime, int batch, Table table, ConfigStore configs, Boolean placeholder, Boolean unicode, String column, Object values) delete[命令合成-子流程]
合成 where column in (values)buildDropAutoIncrement(DataRuntime runtime, Column meta, boolean slice) column[命令合成-子流程]
取消自增buildDropRun(DataRuntime runtime, Role role) role[命令合成]
删除角色buildDropRun(DataRuntime runtime, User user) user[命令合成]
删除用户buildDropRun(DataRuntime runtime, Catalog meta) catalog[命令合成]
删除CatalogbuildDropRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成]
删除列buildDropRun(DataRuntime runtime, Constraint meta) constraint[命令合成]
删除约束buildDropRun(DataRuntime runtime, Database meta) database[命令合成]
删除DatabasebuildDropRun(DataRuntime runtime, ForeignKey meta) foreign[命令合成]
删除外键buildDropRun(DataRuntime runtime, Function meta) function[命令合成]
删除函数buildDropRun(DataRuntime runtime, Index meta) index[命令合成]
删除索引buildDropRun(DataRuntime runtime, MasterTable meta) master table[命令合成]
删除主表buildDropRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成-]
删除分区表buildDropRun(DataRuntime runtime, PrimaryKey meta, boolean slice) primary[命令合成]
删除主键buildDropRun(DataRuntime runtime, Procedure meta) procedure[命令合成]
删除存储过程buildDropRun(DataRuntime runtime, Schema meta) schema[命令合成]
删除SchemabuildDropRun(DataRuntime runtime, Sequence meta) sequence[命令合成]
删除序列buildDropRun(DataRuntime runtime, Table meta) table[命令合成]
删除表buildDropRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
删除标签buildDropRun(DataRuntime runtime, Trigger meta) trigger[命令合成]
删除触发器buildDropRun(DataRuntime runtime, View meta) view[命令合成]
删除视图buildExecuteRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) execute [命令合成]
创建执行SQLbuildGrantRun(DataRuntime runtime, Role role, Privilege... privileges) grant[命令合成]
授权buildGrantRun(DataRuntime runtime, User user, Privilege... privileges) grant[命令合成]
授权buildGrantRun(DataRuntime runtime, User user, Role... roles) grant[命令合成]
授权buildInsertRun(DataRuntime runtime, int batch, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成]
填充inset命令内容(创建批量INSERT RunPrepare)buildInsertRun(DataRuntime runtime, Table dest, RunPrepare prepare, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... conditions) insert [命令合成]
填充inset命令内容(创建批量INSERT RunPrepare)buildRenameRun(DataRuntime runtime, Role origin, Role update) role[命令合成]
角色重命名buildRenameRun(DataRuntime runtime, User origin, User update) user[命令合成]
用户重命名buildRenameRun(DataRuntime runtime, Catalog meta) catalog[命令合成]
重命名buildRenameRun(DataRuntime runtime, Column meta, boolean slice) column[命令合成]
修改列名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Constraint meta) constraint[命令合成]
修改约束名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Database meta) database[命令合成]
重命名buildRenameRun(DataRuntime runtime, ForeignKey meta) foreign[命令合成]
修改外键名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Function meta) function[命令合成]
修改函数名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Index meta) index[命令合成]
修改索引名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, MasterTable meta) master table[命令合成-子流程]
主表重命名buildRenameRun(DataRuntime runtime, PartitionTable meta) partition table[命令合成]
分区表重命名buildRenameRun(DataRuntime runtime, PrimaryKey meta) primary[命令合成]
修改主键名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Procedure meta) procedure[命令合成]
修改存储过程名
一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Schema meta) schema[命令合成]
重命名buildRenameRun(DataRuntime runtime, Sequence meta) sequence[命令合成]
修改序列名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Table meta) table[命令合成]
重命名 子类实现buildRenameRun(DataRuntime runtime, Tag meta, boolean slice) tag[命令合成]
修改标签名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, Trigger meta) trigger[命令合成]
修改触发器名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRenameRun(DataRuntime runtime, View meta) view[命令合成]
重命名 一般不直接调用,如果需要由buildAlterRun内部统一调用buildRevokeRun(DataRuntime runtime, Role role, Privilege... privileges) grant[命令合成]
撤销授权buildRevokeRun(DataRuntime runtime, User user, Privilege... privileges) grant[命令合成]
撤销授权buildRevokeRun(DataRuntime runtime, User user, Role... roles) grant[命令合成]
撤销授权buildSelectCatalogRun(DataRuntime runtime, String random) catalog[命令合成]
查询当前catalogbuildSelectCatalogsRun(DataRuntime runtime, boolean greedy, Catalog query) catalog[命令合成]
查询全部catalogbuildSelectColumnsRun(DataRuntime runtime, boolean metadata, Collection<? extends Table> tables, Column query, ConfigStore configs) column[命令合成]
(方法1)
查询多个表的列buildSelectColumnsRun(DataRuntime runtime, boolean metadata, Column query, ConfigStore configs) column[命令合成]
查询表上的列buildSelectConstraintsRun(DataRuntime runtime, boolean greedy, Constraint query) constraint[命令合成]
查询表上的约束buildSelectDatabasesRun(DataRuntime runtime, boolean greedy, Database query) database[命令合成]
查询全部数据库buildSelectDdlRun(DataRuntime runtime, Function meta) function[命令合成]
查询函数DDLbuildSelectDdlRun(DataRuntime runtime, EdgeTable meta) edge[命令合成]
查询表DDLbuildSelectDdlRun(DataRuntime runtime, VertexTable vertex) vertex[命令合成]
查询表DDLbuildSelectDdlRun(DataRuntime runtime, MasterTable master) master[命令合成]
查询表DDLbuildSelectDdlRun(DataRuntime runtime, PartitionTable table) partition table[命令合成]
查询 PartitionTable DDLbuildSelectDdlRun(DataRuntime runtime, Procedure procedure) procedure[命令合成]
查询存储DDLbuildSelectDdlRun(DataRuntime runtime, Sequence meta) sequence[命令合成]
查询序列DDLbuildSelectDdlRun(DataRuntime runtime, Table table) table[命令合成]
查询表DDLbuildSelectDdlRun(DataRuntime runtime, View view) view[命令合成]
查询视图DDLbuildSelectEdgesCommentRun(DataRuntime runtime, EdgeTable<T> query, int types) edge[命令合成]
查询表备注buildSelectEdgesRun(DataRuntime runtime, boolean greedy, EdgeTable<T> query, int types, ConfigStore configs) edge[命令合成]
查询表,不是查表中的数据buildSelectForeignsRun(DataRuntime runtime, boolean greedy, ForeignKey query) foreign[命令合成]
查询表上的外键buildSelectFunctionsRun(DataRuntime runtime, boolean greedy, Function query) function[命令合成]
查询表上的 FunctionbuildSelectIndexesRun(DataRuntime runtime, boolean greedy, Collection<? extends Table> tables) index[命令合成]
查询表上的索引buildSelectIndexesRun(DataRuntime runtime, boolean greedy, Index query) index[命令合成]
查询表上的索引buildSelectLengthRun(DataRuntime runtime, String cn, ConfigStore configs) 计算字符串在当前数据库中占用字节长度<T extends MasterTable<T>>
List<Run>buildSelectMasterTablesCommentRun(DataRuntime runtime, MasterTable<T> query, int types) master[命令合成]
查询表备注<T extends MasterTable<T>>
List<Run>buildSelectMasterTablesRun(DataRuntime runtime, boolean greedy, MasterTable<T> query, int types, ConfigStore configs) master[命令合成]
查询表,不是查表中的数据buildSelectParametersRun(DataRuntime runtime, Procedure procedure) procedure[命令合成]
查询存储参数<T extends PartitionTable<T>>
List<Run>buildSelectPartitionTablesRun(DataRuntime runtime, boolean greedy, PartitionTable<T> query, int types) partition table[命令合成]
查询分区表buildSelectPrimaryRun(DataRuntime runtime, boolean greedy, PrimaryKey query) primary[命令合成]
查询表上的主键buildSelectPrivilegesRun(DataRuntime runtime, boolean regreedy, Privilege query) privilege[命令合成]
查询用户权限buildSelectProceduresRun(DataRuntime runtime, boolean greedy, Procedure query) procedure[命令合成]
查询表上的 TriggerbuildSelectProductRun(DataRuntime runtime) database[命令合成]
查询当前数据源 数据库产品说明(产品名称+版本号)buildSelectRolesRun(DataRuntime runtime) 查询当前用户角色 注意返回结构要与元数据查询中的MetadataFieldRefer对应buildSelectRolesRun(DataRuntime runtime, boolean greedy, Role query) role[命令合成]
查询角色buildSelectRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) select[命令合成]
最终可执行命令
创建查询SQLbuildSelectSchemaRun(DataRuntime runtime, String random) schema[命令合成]
查询当前schemabuildSelectSchemasRun(DataRuntime runtime, boolean greedy, Schema query) catalog[命令合成]
查询全部数据库buildSelectSequence(DataRuntime runtime, boolean next, String... names) 查询序列cur 或 next valuebuildSelectSequencesRun(DataRuntime runtime, boolean greedy, Sequence query) sequence[命令合成]
查询表上的 SequencebuildSelectTablePartitionRun(DataRuntime runtime, Table table) partition table[命令合成]
查询表分区方式及分片buildSelectTablesCommentRun(DataRuntime runtime, Table<T> query, int types) table[命令合成]
查询表备注buildSelectTablesRun(DataRuntime runtime, boolean greedy, Table<T> query, int types, ConfigStore configs) table[命令合成]
查询表,不是查表中的数据buildSelectTagsRun(DataRuntime runtime, boolean greedy, Tag query) tag[命令合成]
查询表上的列buildSelectTriggersRun(DataRuntime runtime, boolean greedy, Trigger query) trigger[命令合成]
查询表上的 TriggerbuildSelectUsersRun(DataRuntime runtime, boolean greedy, User query) user[命令合成]
查询用户buildSelectVersionRun(DataRuntime runtime) database[命令合成]
查询当前数据源 数据库版本 版本号比较复杂 不是全数字<T extends VertexTable<T>>
List<Run>buildSelectVertexCommentRun(DataRuntime runtime, VertexTable<T> query, int types) vertex[命令合成]
查询表备注<T extends VertexTable<T>>
List<Run>buildSelectVertexesRun(DataRuntime runtime, boolean greedy, VertexTable<T> query, int types, ConfigStore configs) vertex[命令合成]
查询表,不是查表中的数据buildSelectViewsCommentRun(DataRuntime runtime, View query, int types) view[命令合成]
查询视图备注buildSelectViewsRun(DataRuntime runtime, boolean greedy, View query, int types, ConfigStore configs) view[命令合成]
查询视图,不是查视图中的数据buildTruncateRun(DataRuntime runtime, Table table) delete[命令合成]
合成 where column in (values)buildUpdateRun(DataRuntime runtime, int batch, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) update [命令合成]buildUpdateRun(DataRuntime runtime, RunPrepare prepare, DataRow data, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) 多表关联更新buildUpdateRunFromCollection(DataRuntime runtime, int batch, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]buildUpdateRunFromDataRow(DataRuntime runtime, Table dest, DataRow row, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]buildUpdateRunFromEntity(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]buildUpdateRunLimit(DataRuntime runtime, Run run) update [命令合成]<T extends Catalog>
T根据 name检测catalogs集合中是否存在catalog(DataRuntime runtime, boolean create, Catalog meta) catalog[结果集封装]
当前catalog 根据驱动内置接口补充catalog(DataRuntime runtime, int index, boolean create, Catalog meta, DataSet<DataRow> set) catalog[结果集封装]
当前catalog 根据查询结果集catalog(DataRuntime runtime, String random) catalog[调用入口]
当前Catalog<T extends Catalog>
LinkedHashMap<String,T> catalogs(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous) catalog[结果集封装]
根据驱动内置接口补充 catalogcatalogs(DataRuntime runtime, boolean create, List<T> previous) catalog[结果集封装]
根据驱动内置接口补充 catalog<T extends Catalog>
LinkedHashMap<String,T> catalogs(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Catalog query, DataSet<DataRow> set) catalog[结果集封装]
根据查询结果集构造 Databasecatalogs(DataRuntime runtime, int index, boolean create, List<T> previous, Catalog query, DataSet<DataRow> set) catalog[结果集封装]
根据查询结果集构造 Databasecatalogs(DataRuntime runtime, String random, boolean greedy, Catalog query) catalog[调用入口]<T extends Catalog>
LinkedHashMap<String,T> catalogs(DataRuntime runtime, String random, Catalog query) catalog[调用入口]charset(DataRuntime runtime, StringBuilder builder, Catalog meta) catalog[命令合成-子流程]
编码charset(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:编码charset(DataRuntime runtime, StringBuilder builder, Database meta) database[命令合成-子流程]
编码charset(DataRuntime runtime, StringBuilder builder, Schema meta) schema[命令合成-子流程]
编码charset(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
编码checkAutoIncrement(DataRuntime runtime, String random, Table table, boolean slice) 修改主键前先 根据主键检测自增 如果数据库要求自增必须在主键上时才需要执行checkCatalogExists(DataRuntime runtime, StringBuilder builder, boolean exists) catalog[命令合成-子流程]
创建或删除Catalog之前 检测Catalog是否存在 IF NOT EXISTSprotected LinkedHashMap<String,Column> checkColumnAction(DataRuntime runtime, Table meta) 检测列的执行命令,all drop alter等checkColumnExists(DataRuntime runtime, StringBuilder builder, boolean exists) column[命令合成-子流程]
列定义:创建或删除列之前 检测表是否存在 IF NOT EXISTScheckDatabaseExists(DataRuntime runtime, StringBuilder builder, boolean exists) database[命令合成-子流程]
创建或删除Database之前 检测Database是否存在 IF NOT EXISTScheckIndexExists(DataRuntime runtime, StringBuilder builder, boolean exists) table[命令合成-子流程]
创建或删除表之前 检测表是否存在 IF NOT EXISTScheckMetadata(DataRuntime runtime, Table table, ConfigStore configs, LinkedHashMap<String, Column> columns) 过滤掉表结构中不存在的列<T extends Metadata>
TcheckName(DataRuntime runtime, String random, T meta) 检测name,name中可能包含catalog.schema.name
如果有一项或三项,在父类中解析
如果只有两项,需要根据不同数据库区分出最前一项是catalog还是schema,如果区分不出来的抛出异常protected BooleancheckOverride(Object obj, ConfigStore configs) 有主键值的情况下 检测覆盖protected BooleancheckOverrideSync(Object obj, ConfigStore configs) voidcheckPrimary(DataRuntime runtime, Table table) table[命令合成-子流程]
检测表主键(在没有显式设置主键时根据其他条件判断如自增),同时根据主键对象给相关列设置主键标识protected PrimaryGeneratorcheckPrimaryGenerator(DatabaseType type, String table) 检测针对表的主键生成器检测主键值checkSchemaExists(DataRuntime runtime, StringBuilder builder, boolean exists) schema[命令合成-子流程]
创建或删除Schema之前 检测Schema是否存在 IF NOT EXISTScheckTableExists(DataRuntime runtime, StringBuilder builder, boolean exists) table[命令合成-子流程]
创建或删除表之前 检测表是否存在 IF NOT EXISTScheckTagExists(DataRuntime runtime, StringBuilder builder, boolean exists) tag[命令合成]
创建或删除标签之前 检测表是否存在 IF NOT EXISTSprotected voidcheckTypeMetadata(DataRuntime runtime, Table meta) checkViewExists(DataRuntime runtime, StringBuilder builder, boolean exists) view[命令合成-子流程]
创建或删除视图之前 检测视图是否存在 IF NOT EXISTSprotected voidvoidclear(TypeMetadataAlias alias) columnFieldLengthRefer(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
元数据数字有效位数列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值columnFieldPrecisionRefer(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
元数据长度列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值columnFieldScaleRefer(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
元数据数字有效位数列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值intcolumnMetadataIgnoreLength(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
是否忽略长度
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值intcolumnMetadataIgnorePrecision(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
是否忽略有效位数
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值intcolumnMetadataIgnoreScale(DataRuntime runtime, TypeMetadata meta) column[结果集封装]
(方法1)
是否忽略小数位
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值<T extends Column>
LinkedHashMap<String,T> columns(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Column query) column[结果集封装]
解析JDBC get columns结果<T extends Column>
LinkedHashMap<String,T> columns(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table table, Column query, DataSet<DataRow> set) column[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Columncolumns(DataRuntime runtime, int index, boolean create, List<T> previous, Collection<? extends Table> tables, Column query, DataSet<DataRow> set) column[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Column,并分配到各自的表中columns(DataRuntime runtime, int index, boolean create, List<T> previous, Column query, DataSet<DataRow> set) column[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Columncolumns(DataRuntime runtime, StringBuilder builder, Table table) table[命令合成-子流程]
创建表 columns部分columns(DataRuntime runtime, String random, boolean greedy, Collection<? extends Table> tables, Column query, ConfigStore configs) column[调用入口]
(方法1)
查询多个表列,并分配到每个表中,需要保持所有表的catalog,schema相同<T extends Column>
LinkedHashMap<String,T> columns(DataRuntime runtime, String random, boolean greedy, Table table, Column query, boolean primary, ConfigStore configs) column[调用入口]
查询表结构(多方法合成)comment(DataRuntime runtime, StringBuilder builder, Catalog meta) catalog[命令合成-子流程]
Catalog备注comment(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:备注comment(DataRuntime runtime, StringBuilder builder, Database meta) database[命令合成-子流程]
Database备注comment(DataRuntime runtime, StringBuilder builder, Index meta) index[命令合成-子流程]
索引备注comment(DataRuntime runtime, StringBuilder builder, Schema meta) schema[命令合成-子流程]
Schema备注comment(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
备注 创建表的完整DDL拼接COMMENT部分,与buildAppendCommentRun二选一实现comment(DataRuntime runtime, StringBuilder builder, View meta) view[命令合成-子流程]
视图备注<T extends Table<T>>
LinkedHashMap<String,T> comments(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table<T> query, DataSet<DataRow> set) table[结果集封装]
表备注comments(DataRuntime runtime, int index, boolean create, List<T> previous, Table<T> query, DataSet<DataRow> set) table[结果集封装]
表备注对应的兼容模式,有些数据库会兼容oracle或pg,需要分别提供两个JDBCAdapter或者直接依赖oracle/pg的adapter 参考DefaultJDBCAdapterUtil定位adapter的方法protected Stringprotected StringconfirmInsertColumns(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, List<String> columns, boolean batch) insert [命令合成-子流程]
确认需要插入的列confirmUpdateColumns(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, List<String> columns) 确认需要更新的列confirmUpdateColumns(DataRuntime runtime, Table dest, DataRow row, ConfigStore configs, List<String> columns) 确认需要更新的列<T extends Constraint>
LinkedHashMap<String,T> constraints(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Constraint query, DataSet<DataRow> set) constraint[结果集封装]
根据查询结果集构造Constraint<T extends Constraint>
List<T>constraints(DataRuntime runtime, int index, boolean create, List<T> previous, Constraint query, DataSet<DataRow> set) constraint[结果集封装]
根据查询结果集构造Constraint<T extends Constraint>
List<T>constraints(DataRuntime runtime, String random, boolean greedy, Constraint query) constraint[调用入口]<T extends Constraint>
LinkedHashMap<String,T> constraints(DataRuntime runtime, String random, Constraint query) constraint[调用入口]convert(DataRuntime runtime, StringBuilder builder, Object value, Column column, Boolean placeholder, Boolean unicode, ConfigStore configs) 生成insert update 命令时 类型转换 如 ?boolean数据类型转换booleanconvert(DataRuntime runtime, ConfigStore configs, Run run) 参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换boolean参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换convert(DataRuntime runtime, Column metadata, Object value) 数据类型转换,没有提供column的根据value类型booleanconvert(DataRuntime runtime, Column metadata, RunValue run) 根据数据库列属性 类型转换(一般是在更新数据库时调用) 子类先解析(有些同名的类型以子类为准)、失败后再到这里解析booleanconvert(DataRuntime runtime, Table table, Run run) 参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换convert(DataRuntime runtime, TypeMetadata meta, Object value) 数据类型转换,没有提供column的根据value类型longcount(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) count [调用入口]longcount(DataRuntime runtime, String random, Run run) count [命令执行]booleancreate(DataRuntime runtime, List<Role> roles) booleancreate(DataRuntime runtime, Role role) role[调用入口]
创建角色booleancreate(DataRuntime runtime, User user) user[调用入口]
创建用户booleancreate(DataRuntime runtime, Catalog meta) catalog[调用入口]
创建Catalog,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, Database meta) database[调用入口]
创建Database,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, Function meta) function[调用入口] 添加函数booleancreate(DataRuntime runtime, MasterTable meta) master table[调用入口]
创建主表,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, PartitionTable meta) partition table[调用入口]
创建分区表,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, Procedure meta) procedure[调用入口]
添加存储过程booleancreate(DataRuntime runtime, Schema meta) schema[调用入口]
创建Schema,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, Sequence meta) sequence[调用入口] 添加序列booleancreate(DataRuntime runtime, Table meta) table[调用入口]
创建表,执行的命令通过meta.ddls()返回booleancreate(DataRuntime runtime, View meta) view[调用入口]
创建视图,执行的命令通过meta.ddls()返回createConditionIn(DataRuntime runtime, StringBuilder builder, Compare compare, Object value, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造(NOT) IN 查询条件createConditionLike(DataRuntime runtime, StringBuilder builder, Compare compare, Object value, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造 LIKE 查询条件 如果不需要占位符 返回null 否则原样返回valueprotected RuncreateInsertRun(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成-子流程]
根据entity创建 INSERT RunPrepare由buildInsertRun调用protected RuncreateInsertRunFromCollection(DataRuntime runtime, int batch, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成-子流程]
根据collection创建 INSERT RunPrepare由buildInsertRun调用<T extends Database>
T根据 name检测databases集合中是否存在database(DataRuntime runtime, boolean create, Database meta) database[结果集封装]
当前database 根据驱动内置接口补充database(DataRuntime runtime, int index, boolean create, Database meta, DataSet<DataRow> set) database[结果集封装]
当前database 根据查询结果集database(DataRuntime runtime, String random) database[调用入口]
当前数据库<T extends Database>
LinkedHashMap<String,T> databases(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Database query, DataSet<DataRow> set) database[结果集封装]databases(DataRuntime runtime, int index, boolean create, List<T> previous, Database query, DataSet<DataRow> set) database[结果集封装]databases(DataRuntime runtime, String random, boolean greedy, Database query) database[调用入口]<T extends Database>
LinkedHashMap<String,T> databases(DataRuntime runtime, String random, Database query) database[调用入口]function[结果集封装]
查询 Function DDLedge[结果集封装]
查询表DDLddl(DataRuntime runtime, int index, VertexTable vertex, List<String> ddls, DataSet<DataRow> set) vertex[结果集封装]
查询表DDLddl(DataRuntime runtime, int index, MasterTable master, List<String> ddls, DataSet<DataRow> set) master[结果集封装]
查询表DDLddl(DataRuntime runtime, int index, PartitionTable table, List<String> ddls, DataSet<DataRow> set) partition table[结果集封装]
查询 MasterTable DDLprocedure[结果集封装]
查询 Procedure DDLsequence[结果集封装]
查询 Sequence DDLtable[结果集封装]
查询表DDLview[结果集封装]
查询视图DDLddl(DataRuntime runtime, String random, Function meta) function[调用入口]ddl(DataRuntime runtime, String random, EdgeTable meta, boolean init) edge[调用入口]ddl(DataRuntime runtime, String random, VertexTable vertex, boolean init) vertex[调用入口]ddl(DataRuntime runtime, String random, MasterTable meta, boolean init) master[调用入口]ddl(DataRuntime runtime, String random, PartitionTable table) partition table[调用入口]ddl(DataRuntime runtime, String random, Procedure procedure) procedure[调用入口]ddl(DataRuntime runtime, String random, Sequence meta) sequence[调用入口]ddl(DataRuntime runtime, String random, Table table, boolean init) table[调用入口]ddl(DataRuntime runtime, String random, View view, boolean init) view[调用入口]defaultValue(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:默认值define(DataRuntime runtime, StringBuilder builder, Column meta, ACTION.DDL action) column[命令合成-子流程]
定义列,依次拼接下面几个属性注意不同数据库可能顺序不一样longdelete(DataRuntime runtime, String random, ConfigStore configs, Run run) delete[命令执行]longdelete(DataRuntime runtime, String random, Table dest, ConfigStore configs, Object obj, String... columns) delete [调用入口]
合成 where k1 = v1 and k2 = v2longdelete(DataRuntime runtime, String random, Table table, ConfigStore configs, String... conditions) delete [调用入口]
根据configs和conditions过滤条件<T> longdeletes(DataRuntime runtime, String random, int batch, Table table, ConfigStore configs, String key, Collection<T> values) delete [调用入口]
合成 where column in (values)delimiter(StringBuilder builder, String src) delimiter(StringBuilder builder, String src, boolean check) 拼接界定符delimiter(StringBuilder builder, List<String> list) 拼接界定符detail(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataRow row) partition table[结果集封装]
根据查询结果集构造Table.Partition<T extends Privilege>
Tdetail(DataRuntime runtime, int index, T meta, Privilege query, DataRow row) privilege[结果集封装]
根据查询结果封装Privilege对象,更多属性<T extends Role>
Tdetail(DataRuntime runtime, int index, T meta, Role query, DataRow row) role[结果集封装]
根据查询结果封装 role 对象,更多属性<T extends User>
Tdetail(DataRuntime runtime, int index, T meta, User query, DataRow row) user[结果集封装]
根据查询结果封装 user 对象,更多属性<T extends Catalog>
Tdetail(DataRuntime runtime, int index, T meta, Catalog query, DataRow row) catalog[结果集封装]
根据查询结果封装 catalog 对象,更多属性<T extends Tag>
Tdetail(DataRuntime runtime, int index, T meta, Catalog catalog, Schema schema, DataRow row) tag[结果集封装]
列详细属性<T extends Column>
Tdetail(DataRuntime runtime, int index, T meta, Column query, DataRow row) column[结果集封装]
(方法1)
列详细属性<T extends Constraint>
Tdetail(DataRuntime runtime, int index, T meta, Constraint query, DataRow row) catalog[结果集封装]
根据查询结果封装Constraint对象,更多属性<T extends Database>
Tdetail(DataRuntime runtime, int index, T meta, Database query, DataRow row) database[结果集封装]
根据查询结果封装 database 对象,更多属性<T extends ForeignKey>
Tdetail(DataRuntime runtime, int index, T meta, ForeignKey query, DataRow row) foreign[结构集封装]
根据查询结果集构造ForeignKey更多属性<T extends Function>
Tdetail(DataRuntime runtime, int index, T meta, Function query, DataRow row) function[结果集封装]
根据查询结果封装function对象,更多属性<T extends EdgeTable<T>>
Tdetail(DataRuntime runtime, int index, T meta, EdgeTable<T> query, DataRow row) edge[结果集封装]
根据查询结果封装EdgeTable对象,更多属性<T extends VertexTable<T>>
Tdetail(DataRuntime runtime, int index, T meta, VertexTable<T> query, DataRow row) vertex[结果集封装]
根据查询结果封装VertexTable对象,更多属性<T extends Index>
Tdetail(DataRuntime runtime, int index, T meta, Index query, DataRow row) index[结构集封装]
根据查询结果集构造index更多属性(column,order, position)<T extends MasterTable<T>>
Tdetail(DataRuntime runtime, int index, T meta, MasterTable<T> query, DataRow row) master[结果集封装]
根据查询结果封装MasterTable对象,更多属性<T extends PartitionTable<T>>
Tdetail(DataRuntime runtime, int index, T meta, PartitionTable<T> query, DataRow row) partition table[结果集封装]
根据查询结果封装PartitionTable对象,更多属性<T extends PrimaryKey>
Tdetail(DataRuntime runtime, int index, T meta, PrimaryKey query, DataSet<DataRow> set) primary[结构集封装]
根据查询结果集构造PrimaryKey更多属性<T extends Procedure>
Tdetail(DataRuntime runtime, int index, T meta, Procedure query, DataRow row) procedure[结果集封装]
根据查询结果封装procedure对象,更多属性<T extends Schema>
Tdetail(DataRuntime runtime, int index, T meta, Schema query, DataRow row) schema[结果集封装]
根据查询结果封装 schema 对象,更多属性<T extends Sequence>
Tdetail(DataRuntime runtime, int index, T meta, Sequence query, DataRow row) sequence[结果集封装]
根据查询结果封装sequence对象,更多属性<T extends Table<T>>
Tdetail(DataRuntime runtime, int index, T meta, Table<T> query, DataRow row) table[结果集封装]
根据查询结果封装Table对象,更多属性<T extends Trigger>
Tdetail(DataRuntime runtime, int index, T meta, Trigger query, DataRow row) trigger[结果集封装]
根据查询结果封装trigger对象,更多属性<T extends View>
Tdetail(DataRuntime runtime, int index, T meta, View query, DataRow row) view[结果集封装]
根据查询结果封装View对象,更多属性distribution(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
分桶方式booleandrop(DataRuntime runtime, Role role) role[调用入口]
删除角色booleandrop(DataRuntime runtime, User user) user[调用入口]
删除用户booleandrop(DataRuntime runtime, Catalog meta) catalog[调用入口]
删除Catalog,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, Column meta) column[调用入口]
删除列,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, Constraint meta) constraint[调用入口]
删除约束booleandrop(DataRuntime runtime, Database meta) database[调用入口]
删除Database,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, ForeignKey meta) foreign[调用入口] 删除外键booleandrop(DataRuntime runtime, Function meta) function[调用入口] 删除函数booleandrop(DataRuntime runtime, Index meta) index[调用入口]
删除索引booleandrop(DataRuntime runtime, MasterTable meta) master table[调用入口]
删除主表,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, PartitionTable meta) partition table[调用入口]
删除分区表,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, PrimaryKey meta) primary[调用入口]
删除主键booleandrop(DataRuntime runtime, Procedure meta) procedure[调用入口]
删除存储过程booleandrop(DataRuntime runtime, Schema meta) schema[调用入口]
删除Schema,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, Sequence meta) sequence[调用入口] 删除序列booleandrop(DataRuntime runtime, Table meta) table[调用入口]
删除表,执行的命令通过meta.ddls()返回booleandrop(DataRuntime runtime, Tag meta) tag[调用入口]
删除标签booleandrop(DataRuntime runtime, Trigger meta) trigger[调用入口]
删除触发器booleandrop(DataRuntime runtime, View meta) view[调用入口]
删除视图,执行的命令通过meta.ddls()返回dropColumnGuide(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
删除列引导
alter table sso_user [drop column] type_codeeach(DataRuntime runtime, StringBuilder builder, Trigger meta) trigger[命令合成-子流程]
触发级别(行或整个命令)protected <T extends EdgeTable<T>>
voidedgeMap(DataRuntime runtime, String random, boolean greedy, EdgeTable<T> query, ConfigStore configs) edge[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写<T extends EdgeTable<T>>
LinkedHashMap<String,T> edges(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, EdgeTable<T> query, int types) edge[结果集封装]
根据驱动内置方法补充edges(DataRuntime runtime, boolean create, List<T> previous, EdgeTable<T> query, int types) edge[结果集封装]
根据驱动内置方法补充<T extends EdgeTable<T>>
LinkedHashMap<String,T> edges(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, EdgeTable<T> query, DataSet<DataRow> set) edge[结果集封装]
根据查询结果集构造EdgeTableedges(DataRuntime runtime, int index, boolean create, List<T> previous, EdgeTable<T> query, DataSet<DataRow> set) edge[结果集封装]
根据查询结果集构造EdgeTableedges(DataRuntime runtime, String random, boolean greedy, EdgeTable<T> query, int types, int struct, ConfigStore configs) edge[调用入口]<T extends EdgeTable<T>>
LinkedHashMap<String,T> edges(DataRuntime runtime, String random, EdgeTable<T> query, int types, int struct, ConfigStore configs) edge[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写engine(DataRuntime runtime, StringBuilder builder, Catalog meta) catalog[命令合成-子流程]
创建Catalog engineengine(DataRuntime runtime, StringBuilder builder, Database meta) database[命令合成-子流程]
创建Database engineengine(DataRuntime runtime, StringBuilder builder, Schema meta) schema[命令合成-子流程]
创建Schema engineengine(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
创建表 enginelongexecute(DataRuntime runtime, String random, int batch, int vol, ConfigStore configs, RunPrepare prepare, Collection<Object> values) execute [调用入口]longexecute(DataRuntime runtime, String random, int batch, ConfigStore configs, RunPrepare prepare, Collection<Object> values) execute [调用入口]longexecute(DataRuntime runtime, String random, List<RunPrepare> prepares, ConfigStore configs) longexecute(DataRuntime runtime, String random, ConfigStore configs, List<Run> runs) execute [命令执行]longexecute(DataRuntime runtime, String random, ConfigStore configs, Run run) execute [命令执行]longexecute(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) execute [调用入口]booleanexecute(DataRuntime runtime, String random, Metadata meta, ACTION.Authorize action, List<Run> runs) booleanexecute(DataRuntime runtime, String random, Metadata meta, ACTION.Authorize action, Run run) 执行命令booleanexecute(DataRuntime runtime, String random, Metadata meta, ACTION.DDL action, List<Run> runs) 执行命令booleanexecute(DataRuntime runtime, String random, Metadata meta, ACTION.DDL action, Run run) ddl [执行命令]booleanexecute(DataRuntime runtime, String random, Procedure procedure) procedure [命令执行]booleanexists(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) exists [调用入口]voidfillDeleteRunContent(DataRuntime runtime, Run run, Boolean placeholder, Boolean unicode) delete[命令合成-子流程]
构造查询主体 拼接where group等(不含分页 ORDER)voidfillExecuteContent(DataRuntime runtime, Run run, Boolean placeholder, Boolean unicode) execute [命令合成-子流程]
填充 execute 命令内容protected voidfillExecuteContent(DataRuntime runtime, TableRun run, Boolean placeholder, Boolean unicode) execute [命令合成]
填充execute命令protected voidfillExecuteContent(DataRuntime runtime, TextRun run, Boolean placeholder, Boolean unicode) execute [命令合成]
填充execute命令protected voidfillExecuteContent(DataRuntime runtime, XMLRun run) execute [命令合成]
填充execute命令voidfillInsertContent(DataRuntime runtime, Run run, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) insert [命令合成-子流程]
填充inset命令内容(创建批量INSERT RunPrepare)voidfillInsertContent(DataRuntime runtime, Run run, Table dest, DataSet<DataRow> set, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) insert [命令合成-子流程]
填充inset命令内容(创建批量INSERT RunPrepare)voidfillInsertCreateTemplate(DataRuntime runtime, Run run, PartitionTable dest, ConfigStore configs) 插入子表前 检测并创建子表fillJoinTableContent(DataRuntime runtime, StringBuilder builder, TableRun run, RunPrepare prepare) 关联表fillMasterTableContent(DataRuntime runtime, StringBuilder builder, TableRun run, RunPrepare prepare) 主表fillSelectContent(DataRuntime runtime, StringBuilder builder, Run run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体protected RunfillSelectContent(DataRuntime runtime, StringBuilder builder, TableRun run, Boolean placeholder, Boolean unicode) 有些非JDBC环境也需要用到SQLprotected RunfillSelectContent(DataRuntime runtime, StringBuilder builder, TextRun run, Boolean placeholder, Boolean unicode) protected RunfillSelectContent(DataRuntime runtime, StringBuilder builder, XMLRun run, Boolean placeholder, Boolean unicode) fillSelectContent(DataRuntime runtime, Run run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体, 中间过程有可能转换类型protected RunfillSelectContent(DataRuntime runtime, TableRun run, Boolean placeholder, Boolean unicode) protected RunfillSelectContent(DataRuntime runtime, TextRun run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体protected RunfillSelectContent(DataRuntime runtime, XMLRun run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体protected RunfillSelectContentGroup(DataRuntime runtime, StringBuilder builder, TableRun run, Boolean placeholder, Boolean unicode) voidfillUpdateContent(DataRuntime runtime, TableRun run, StringBuilder builder, DataRow data, ConfigStore configs, Boolean placeholder, Boolean unicode) 多表关联更新<T extends ForeignKey>
LinkedHashMap<String,T> foreigns(DataRuntime runtime, int index, LinkedHashMap<String, T> previous, ForeignKey query, DataSet<DataRow> set) foreign[结构集封装]
根据查询结果集构造PrimaryKey<T extends ForeignKey>
LinkedHashMap<String,T> foreigns(DataRuntime runtime, String random, boolean greedy, ForeignKey query) foreign[调用入口]
查询外键<T extends Function>
LinkedHashMap<String,T> functions(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Function query) function[结果集封装]
根据驱动内置接口补充 Functionfunctions(DataRuntime runtime, boolean create, List<T> previous, Function query) function[结果集封装]
根据驱动内置接口补充 Function<T extends Function>
LinkedHashMap<String,T> functions(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Function query, DataSet<DataRow> set) function[结果集封装]
根据查询结果集构造 Functionfunctions(DataRuntime runtime, int index, boolean create, List<T> previous, Function query, DataSet<DataRow> set) function[结果集封装]
根据查询结果集构造 Functionfunctions(DataRuntime runtime, String random, boolean greedy, Function query) function[调用入口]<T extends Function>
LinkedHashMap<String,T> functions(DataRuntime runtime, String random, Function query) function[调用入口]insert [after]
执行insert后返回自增主键的key<T extends Metadata>
Tprotected BooleangetBoolean(DataRow row, MetadataFieldRefer refer, String key, Boolean def) protected DategetDate(DataRow row, MetadataFieldRefer refer, String key) protected DategetDate(DataRow row, MetadataFieldRefer refer, String key, Date def) 界定符(分隔符)protected IntegergetInt(DataRow row, MetadataFieldRefer refer, String key) protected IntegergetInt(DataRow row, MetadataFieldRefer refer, String key, Integer def) protected DMListenerprotected LonggetLong(DataRow row, MetadataFieldRefer refer, String key) protected LonggetLong(DataRow row, MetadataFieldRefer refer, String key, Long def) protected StringgetString(DataRow row, MetadataFieldRefer refer, String key) protected StringgetString(DataRow row, MetadataFieldRefer refer, String key, String def) booleangrant(DataRuntime runtime, Role role, Privilege... privileges) grant[调用入口]
授权booleangrant(DataRuntime runtime, User user, Privilege... privileges) grant[调用入口]
授权booleangrant(DataRuntime runtime, User user, Role... roles) grant[调用入口]
授权intignoreLength(DataRuntime runtime, TypeMetadata type) column[命令合成-子流程]
定义列:是否忽略有长度
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值intignorePrecision(DataRuntime runtime, TypeMetadata type) column[命令合成-子流程]
定义列:是否忽略有效位数
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值intignoreScale(DataRuntime runtime, TypeMetadata type) column[命令合成-子流程]
定义列:定义列:是否忽略小数位
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值increment(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:递增列,需要通过serial实现递增的在type(DataRuntime runtime, StringBuilder builder, Column meta)中实现<T extends Index>
LinkedHashMap<String,T> indexes(DataRuntime runtime, boolean create, LinkedHashMap<String, T> indexes, Index query) index[结果集封装]
根据驱动内置接口indexes(DataRuntime runtime, boolean create, List<T> indexes, Index query) index[结果集封装]
根据驱动内置接口indexes(DataRuntime runtime, int index, boolean create, Collection<? extends Table> tables, List<T> previous, Index query, DataSet<DataRow> set) index[结果集封装]
根据查询结果集构造Index<T extends Index>
LinkedHashMap<String,T> indexes(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Index query, DataSet<DataRow> set) index[结果集封装]
根据查询结果集构造Indexindexes(DataRuntime runtime, int index, boolean create, List<T> previous, Index query, DataSet<DataRow> set) index[结果集封装]
根据查询结果集构造Indexindexes(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
创建表 索引部分,与buildAppendIndexRun二选一indexes(DataRuntime runtime, String random, boolean greedy, Collection<? extends Table> tables, Index query) index[调用入口]indexes(DataRuntime runtime, String random, boolean greedy, Index query) index[调用入口]<T extends Index>
LinkedHashMap<String,T> indexes(DataRuntime runtime, String random, Index query) index[调用入口]inherit(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
继承自table.getInheritinit(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataRow row) partition table[结果集封装]
根据查询结果集构造Table.Partition<T extends Privilege>
Tinit(DataRuntime runtime, int index, T meta, Privilege query, DataRow row) privilege[结果集封装]
根据查询结果封装Privilege对象,只封装catalog,schema,name等基础属性<T extends Role>
Tinit(DataRuntime runtime, int index, T meta, Role query, DataRow row) role[结果集封装]
根据查询结果封装 role 对象,只封装catalog,schema,name等基础属性<T extends User>
Tinit(DataRuntime runtime, int index, T meta, User query, DataRow row) user[结果集封装]
根据查询结果封装 user 对象,只封装catalog,schema,name等基础属性<T extends Catalog>
Tinit(DataRuntime runtime, int index, T meta, Catalog query, DataRow row) catalog[结果集封装]
根据查询结果封装 catalog 对象,只封装catalog,schema,name等基础属性<T extends Column>
Tinit(DataRuntime runtime, int index, T meta, Column query, DataRow row) column[结果集封装]
(方法1)<T extends Constraint>
Tinit(DataRuntime runtime, int index, T meta, Constraint query, DataRow row) catalog[结果集封装]
根据查询结果封装Constraint对象,只封装catalog,schema,name等基础属性<T extends Database>
Tinit(DataRuntime runtime, int index, T meta, Database query, DataRow row) schema[结果集封装]
根据查询结果封装 schema 对象,只封装catalog,schema,name等基础属性<T extends ForeignKey>
Tinit(DataRuntime runtime, int index, T meta, ForeignKey query, DataRow row) foreign[结构集封装]
根据查询结果集构造ForeignKey基础属性<T extends Function>
Tinit(DataRuntime runtime, int index, T meta, Function query, DataRow row) function[结果集封装]
根据查询结果封装function对象,只封装catalog,schema,name等基础属性<T extends EdgeTable<T>>
Tinit(DataRuntime runtime, int index, T meta, EdgeTable<T> query, DataRow row) edge[结果集封装]
根据查询结果封装EdgeTable对象,只封装catalog,schema,name等基础属性<T extends VertexTable<T>>
Tinit(DataRuntime runtime, int index, T meta, VertexTable<T> query, DataRow row) vertex[结果集封装]
根据查询结果封装VertexTable对象,只封装catalog,schema,name等基础属性<T extends Index>
Tinit(DataRuntime runtime, int index, T meta, Index query, DataRow row) index[结构集封装]
根据查询结果集构造index基础属性(name,table,schema,catalog)<T extends MasterTable<T>>
Tinit(DataRuntime runtime, int index, T meta, MasterTable<T> query, DataRow row) master[结果集封装]
根据查询结果封装MasterTable对象,只封装catalog,schema,name等基础属性<T extends PartitionTable<T>>
Tinit(DataRuntime runtime, int index, T meta, PartitionTable<T> query, DataRow row) partition table[结果集封装]
根据查询结果封装PartitionTable对象,只封装catalog,schema,name等基础属性<T extends PrimaryKey>
Tinit(DataRuntime runtime, int index, T meta, PrimaryKey query, DataSet<DataRow> set) primary[结构集封装]
根据查询结果集构造PrimaryKey基础属性<T extends Procedure>
Tinit(DataRuntime runtime, int index, T meta, Procedure query, DataRow row) procedure[结果集封装]
根据查询结果封装procedure对象,只封装catalog,schema,name等基础属性<T extends Schema>
Tinit(DataRuntime runtime, int index, T meta, Schema query, DataRow row) schema[结果集封装]
根据查询结果封装 schema 对象,只封装catalog,schema,name等基础属性<T extends Sequence>
Tinit(DataRuntime runtime, int index, T meta, Sequence query, DataRow row) sequence[结果集封装]
根据查询结果封装sequence对象,只封装catalog,schema,name等基础属性<T extends Table<T>>
Tinit(DataRuntime runtime, int index, T meta, Table<T> query, DataRow row) table[结果集封装]
根据查询结果封装Table对象,只封装catalog,schema,name等基础属性<T extends Tag>
Tinit(DataRuntime runtime, int index, T meta, Table table, DataRow row) tag[结果集封装]
列基础属性<T extends Trigger>
Tinit(DataRuntime runtime, int index, T meta, Trigger query, DataRow row) trigger[结果集封装]
根据查询结果封装trigger对象,只封装catalog,schema,name等基础属性<T extends View>
Tinit(DataRuntime runtime, int index, T meta, View query, DataRow row) view[结果集封装]
根据查询结果封装View对象,只封装catalog,schema,name等基础属性voidinit(DataRuntime runtime, Run run, ConfigStore configs, String... conditions) query run初始化,检测占位符、忽略不存在的列等 select[命令合成]Catalog[结果集封装]
Catalog 属性与结果集对应关系Column[结果集封装]
Column 属性与结果集对应关系constraint[结果集封装]
Constraint 属性与结果集对应关系database[结果集封装]
database 属性与结果集对应关系Column[结果集封装]
数据类型 属性与结果集对应关系edge[结果集封装]
EdgeTable 属性与结果集对应关系foreign[结果集封装]
ForeignKey 属性与结果集对应关系Function[结果集封装]
Function 属性与结果集对应关系Index[结果集封装]
Index 属性与结果集对应关系master[结果集封装]
MasterTable 属性与结果集对应关系partition table[结果集封装]
PartitionTable 属性与结果集对应关系primary[结果集封装]
PrimaryKey 属性与结果集对应关系privilege[结果集封装]
Privilege 属性与结果集对应关系procedure[结果集封装]
Procedure 属性与结果集对应关系procedure[结果集封装]
Procedure 属性与结果集对应关系role[结果集封装]
Role 属性与结果集对应关系Schema[结果集封装]
Schema 属性与结果集对应关系sequence[结果集封装]
Sequence 属性与结果集对应关系Table[结果集封装]
TableComment 属性与结果集对应关系Table[结果集封装]
Table 属性与结果集对应关系partition table[结果集封装]
Table.Partition 属性与结果集对应关系partition table[结果集封装]
Table.Partition.Slice 属性与结果集对应关系tag[结果集封装]
tag 属性与结果集对应关系trigger[结果集封装]
trigger 属性与结果集对应关系User[结果集封装]
User 属性与结果集对应关系vertex[结果集封装]
VertexTable 属性与结果集对应关系Column[结果集封装]
Column 属性与结果集对应关系View[结果集封装]
View 属性与结果集对应关系longinsert(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) insert [调用入口]
执行前根据主键生成器补充主键值,执行完成后会补齐自增主键值longinsert(DataRuntime runtime, String random, Object data, ConfigStore configs, Run run, String[] pks) insert [命令执行]
执行完成后会补齐自增主键值longinsert(DataRuntime runtime, String random, Table dest, RunPrepare prepare, ConfigStore configs, Object obj, String... conditions) insert into table select * from table 与query参数一致booleanisBooleanColumn(DataRuntime runtime, Column column) 是否是boolean列booleanisCharColumn(DataRuntime runtime, Column column) 是否是字符类型 决定值是否需要加单引号 number boolean 返回false 其他返回trueprotected booleanisMultipleValue(DataRuntime runtime, TableRun run, String key) 是否是可以接收数组类型的值protected booleanisMultipleValue(Column column) 是否支持集合值booleanisNumberColumn(DataRuntime runtime, Column column) 是否同数字keyHolders(DataRuntime runtime, ConfigStore configs) 自增主键值keyskeys(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
数据模型intlength(DataRuntime runtime, String random, String cn, ConfigStore configs) 计算字符串在当前数据库中占用字节长度map(DataRuntime runtime, String random, ConfigStore configs, Run run) select [命令执行]maps(DataRuntime runtime, String random, ConfigStore configs, Run run) select [命令执行]maps(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) query [调用入口]
对性能有要求的场景调用,返回java原生map集合,结果中不包含元数据信息protected <T extends MasterTable<T>>
voidmasterMap(DataRuntime runtime, String random, boolean greedy, MasterTable<T> query, ConfigStore configs) master[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写<T extends MasterTable<T>>
LinkedHashMap<String,T> masters(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, MasterTable<T> query, int types) master[结果集封装]
根据驱动内置方法补充<T extends MasterTable<T>>
List<T>masters(DataRuntime runtime, boolean create, List<T> previous, MasterTable<T> query, int types) master[结果集封装]
根据驱动内置方法补充<T extends MasterTable<T>>
LinkedHashMap<String,T> masters(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, MasterTable<T> query, DataSet<DataRow> set) master[结果集封装]
根据查询结果集构造MasterTable<T extends MasterTable<T>>
List<T>masters(DataRuntime runtime, int index, boolean create, List<T> previous, MasterTable<T> query, DataSet<DataRow> set) master[结果集封装]
根据查询结果集构造MasterTable<T extends MasterTable<T>>
List<T>masters(DataRuntime runtime, String random, boolean greedy, MasterTable<T> query, int types, int struct, ConfigStore configs) master[调用入口]<T extends MasterTable<T>>
LinkedHashMap<String,T> masters(DataRuntime runtime, String random, MasterTable<T> query, int types, int struct, ConfigStore configs) master[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写protected BooleanmatchBoolean(DataRow row, String[] cols, String[] vals) parse booleanprotected BooleanmatchBoolean(DataRow row, MetadataFieldRefer refer, String key, String value) materialize(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
物化视图merge(DataRuntime runtime, Table meta, List<Run> slices) 合关DDL片段mergeFinalExists(DataRuntime runtime, Run run) exists [命令合成]mergeFinalSelect(DataRuntime runtime, Run run) select[命令合成-子流程]
合成最终 select 命令 包含分页 排序mergeFinalTotal(DataRuntime runtime, Run run) count [命令合成]
合成最终 select count 命令metadata(DataRuntime runtime, RunPrepare prepare, boolean comment) 根据结果集对象获取列结构,如果有表名应该调用metadata().columns(table);或metadata().table(table).getColumns()name(DataRuntime runtime, StringBuilder builder, Column meta) 拼接完整列名name(DataRuntime runtime, StringBuilder builder, Metadata meta) 构造完整表名合成完整名称nullable(DataRuntime runtime, StringBuilder builder, Column meta, ACTION.DDL action) column[命令合成-子流程]
列定义:非空objectName(DataRuntime runtime, String name) 对象名称格式化(大小写转换),在查询系统表时需要onupdate(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:更新行事件option(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
扩展属性parameter(DataRuntime runtime, StringBuilder builder, Parameter parameter) procedure[命令合成-子流程]
生在输入输出参数<T extends Parameter>
LinkedHashMap<String,T> parameters(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Procedure procedure, DataSet<DataRow> set) procedure[结果集封装]
根据查询结果集构造 存储过程参数<T extends Metadata>
Tparse(DataRuntime runtime, Class<T> type, String ddl, ConfigStore configs) 解析DDLvoidparsePlaceholder(DataRuntime runtime, Run run) 解析文本中的占位符partition(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataSet<DataRow> set) partition table[结果集封装]
根据查询结果集构造Tablepartition(DataRuntime runtime, String random, Table table) 表分区方式及分片partitionBy(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
主表设置分区依据(根据哪几列分区)partitionFor(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
子表执行分区依据(分区依据值)如CREATE TABLE hr_usr_fi PARTITION OF hr_usr FOR VALUES IN ('FI')partitionOf(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
子表执行分区依据(相关主表)
如CREATE TABLE hr_usr_fi PARTITION OF hr_usr FOR VALUES IN ('FI')<T extends PartitionTable<T>>
LinkedHashMap<String,T> partitions(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, PartitionTable<T> query) partition table[结果集封装]
根据驱动内置接口<T extends PartitionTable<T>>
LinkedHashMap<String,T> partitions(DataRuntime runtime, int total, int index, boolean create, LinkedHashMap<String, T> previous, PartitionTable<T> query, DataSet<DataRow> set) partition table[结果集封装]
根据查询结果集构造Table<T extends PartitionTable<T>>
LinkedHashMap<String,T> partitions(DataRuntime runtime, String random, boolean greedy, PartitionTable<T> query) partition table[调用入口]
查询主表position(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:位置primary(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:定义列的主键标识(注意不要跟表定义中的主键重复) primary(DataRuntime runtime, StringBuilder builder, Table meta)primary(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
定义表的主键标识,在创建表的DDL结尾部分(注意不要跟列定义中的主键重复) primary(DataRuntime runtime, StringBuilder builder, Column meta)primary(DataRuntime runtime, String random, boolean greedy, PrimaryKey query) primary[调用入口]
查询主键primary(DataRuntime runtime, PrimaryKey query) primary[结构集封装]
根据驱动内置接口补充PrimaryKeyprivileges(DataRuntime runtime, int index, boolean create, List<T> previous, Privilege query, DataSet<DataRow> set) privilege[结果集封装]
根据查询结果集构造 Triggerprivileges(DataRuntime runtime, String random, boolean greedy, Privilege query) privilege[调用入口]
查询用户权限<T extends Procedure>
Tprocedure(DataRuntime runtime, String random, boolean greedy, Procedure query) procedure[调用入口]<T extends Procedure>
LinkedHashMap<String,T> procedures(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Procedure query) procedure[结果集封装]
根据驱动内置接口补充 Procedureprocedures(DataRuntime runtime, boolean create, List<T> previous, Procedure query) procedure[结果集封装]
根据驱动内置接口补充 Procedure<T extends Procedure>
LinkedHashMap<String,T> procedures(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Procedure query, DataSet<DataRow> set) procedure[结果集封装]
根据查询结果集构造 Triggerprocedures(DataRuntime runtime, int index, boolean create, List<T> previous, Procedure query, DataSet<DataRow> set) procedure[结果集封装]
根据查询结果集构造 Triggerprocedures(DataRuntime runtime, String random, boolean greedy, Procedure query) procedure[调用入口]<T extends Procedure>
LinkedHashMap<String,T> procedures(DataRuntime runtime, String random, Procedure query) procedure[调用入口]select [结果集封装-子流程]
JDBC执行完成后的结果处理product(DataRuntime runtime, boolean create, String product) database[结果集封装]
根据JDBC内置接口 productproduct(DataRuntime runtime, int index, boolean create, String product, DataSet<DataRow> set) database[结果集封装]
根据查询结果集构造 productproduct(DataRuntime runtime, String random) database[调用入口]
当前数据源 数据库描述(产品名称+版本号)property(DataRuntime runtime, StringBuilder builder, Catalog meta) catalog[命令合成-子流程]
扩展属性property(DataRuntime runtime, StringBuilder builder, Database meta) database[命令合成-子流程]
扩展属性property(DataRuntime runtime, StringBuilder builder, Index meta) index[命令合成-子流程]
索引属性property(DataRuntime runtime, StringBuilder builder, Schema meta) schema[命令合成-子流程]
扩展属性property(DataRuntime runtime, StringBuilder builder, Table meta) table[命令合成-子流程]
扩展属性<T> EntitySet<T>queries(DataRuntime runtime, String random, RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions) query [调用入口]protected <T> EntitySet<T>query(DataRuntime runtime, String random, Class<T> clazz, Table table, ConfigStore configs, Run run) select [命令执行-子流程]
DataRow转换成Entityprotected Stringrandom(DataRuntime runtime) read(DataRuntime runtime, Column metadata, Object value, Class clazz) 从数据库中读取数据
先由子类根据metadata.typeName(CHAR,INT)定位到具体的数据库类型ColumnType
如果定位成功由ColumnType根据class转换(class可不提供)
如果没有定位到ColumnType再根据className(String,BigDecimal)定位到JavaType
如果定位失败或转换失败(返回null)再由父类转换
如果没有提供metadata和class则根据value.class
常用类型jdbc可以自动转换直接返回就可以(一般子类DataType返回null父类原样返回)
不常用的如json/point/polygon/blob等转换成anyline对应的类型refer(DataRuntime runtime, Class<?> type) 元数据[结构集封装-依据]
读取元数据结果集的依据(元数据属性与数据库列的对应关系)reg(String type, TypeMetadata.Refer refer) 注册数据类型配置 要从配置项中取出每个属性检测合并,不要整个覆盖voidreg(MetadataFieldRefer refer) reg(TypeMetadataAlias alias, boolean override) 注册数据类型别名(包含对应的标准类型、length/precision/scale等配置)reg(TypeMetadata type, TypeMetadata.Refer refer) 注册数据类型配置 要从配置项中取出每个属性检测合并,不要整个覆盖booleanrename(DataRuntime runtime, Role origin, Role update) role[调用入口]
角色重命名booleanrename(DataRuntime runtime, User origin, User update) user[调用入口]
用户重命名booleanrename(DataRuntime runtime, Catalog origin, String name) catalog[调用入口]
重命名Catalog,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, Column origin, String name) column[调用入口]
重命名列,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, Constraint origin, String name) constraint[调用入口]
重命名约束booleanrename(DataRuntime runtime, Database origin, String name) database[调用入口]
重命名Database,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, ForeignKey origin, String name) foreign[调用入口] 重命名外键booleanrename(DataRuntime runtime, Function origin, String name) function[调用入口] 重命名函数booleanrename(DataRuntime runtime, Index origin, String name) index[调用入口]
重命名索引booleanrename(DataRuntime runtime, MasterTable origin, String name) master table[调用入口]
重命名主表,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, PartitionTable origin, String name) partition table[调用入口]
创建分区表,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, PrimaryKey origin, String name) primary[调用入口]
添加主键booleanrename(DataRuntime runtime, Procedure origin, String name) procedure[调用入口]
重命名存储过程booleanrename(DataRuntime runtime, Schema origin, String name) schema[调用入口]
重命名Schema,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, Sequence origin, String name) sequence[调用入口] 重命名序列booleanrename(DataRuntime runtime, Table origin, String name) table[调用入口]
重命名表,执行的命令通过meta.ddls()返回booleanrename(DataRuntime runtime, Tag origin, String name) tag[调用入口]
重命名标签booleanrename(DataRuntime runtime, Trigger origin, String name) trigger[调用入口]
重命名触发器booleanrename(DataRuntime runtime, View origin, String name) view[调用入口]
重命名视图,执行的命令通过meta.ddls()返回booleanrevoke(DataRuntime runtime, Role role, Privilege... privileges) grant[调用入口]
撤销授权booleanrevoke(DataRuntime runtime, User user, Privilege... privileges) grant[调用入口]
撤销授权booleanrevoke(DataRuntime runtime, User user, Role... roles) grant[调用入口]
撤销授权roles(DataRuntime runtime, int index, boolean create, List<T> previous, Role query, DataSet<DataRow> set) role[结果集封装]
根据查询结果集构造 role<T extends Role>
LinkedHashMap<String,T> roles(DataRuntime runtime, String random) 当前用户角色
查询角色roles(DataRuntime runtime, String random, boolean greedy, Role query) role[调用入口]
查询角色longsave(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, List<String> columns) save [调用入口]
根据是否有主键值确认insert | update
执行完成后会补齐自增主键值protected longsaveCollection(DataRuntime runtime, String random, Table dest, Collection<?> data, ConfigStore configs, List<String> columns) protected longsaveObject(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, List<String> columns) <T extends Schema>
T根据 catalog, name检测schemas集合中是否存在schema(DataRuntime runtime, boolean create, Schema meta) schema[结果集封装]
当前schema 根据驱动内置接口补充schema(DataRuntime runtime, int index, boolean create, Schema meta, DataSet<DataRow> set) schema[结果集封装]
当前schema 根据查询结果集schema(DataRuntime runtime, String random) schema[调用入口]
当前Schema<T extends Schema>
LinkedHashMap<String,T> schemas(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Schema query) schema[结果集封装]
根据驱动内置接口补充 Schemaschemas(DataRuntime runtime, boolean create, List<T> previous, Schema query) schema[结果集封装]
根据驱动内置接口补充 Schema<T extends Schema>
LinkedHashMap<String,T> schemas(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Schema query, DataSet<DataRow> set) schema[结果集封装]
根据查询结果集构造 Schemaschemas(DataRuntime runtime, int index, boolean create, List<T> previous, Schema query, DataSet<DataRow> set) schema[结果集封装]
根据查询结果集构造 Schemaschemas(DataRuntime runtime, String random, boolean greedy, Schema query) schema[调用入口]<T extends Schema>
LinkedHashMap<String,T> schemas(DataRuntime runtime, String random, Schema query) schema[调用入口]<T extends Metadata>
T<T extends Metadata>
T<T extends Metadata>
T<T extends Metadata>
T根据 catalog, schema, name检测tables集合中是否存在selectMetadata(DataRuntime runtime, String random, Run run) selects(DataRuntime runtime, String random, boolean system, Table table, ConfigStore configs, Run run) select [命令执行]selects(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) query [调用入口]
返回DataSet中包含元数据信息,如果性能有要求换成mapsselects(DataRuntime runtime, String random, Procedure procedure, PageNavi navi) query procedure [调用入口]sequence(DataRuntime runtime, String random, boolean next, String... names) select [命令执行]<T extends Sequence>
LinkedHashMap<String,T> sequences(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Sequence query) sequence[结果集封装]
根据驱动内置接口补充 Sequencesequences(DataRuntime runtime, boolean create, List<T> previous, Sequence query) sequence[结果集封装]
根据驱动内置接口补充 Sequence<T extends Sequence>
LinkedHashMap<String,T> sequences(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Sequence query, DataSet<DataRow> set) sequence[结果集封装]
根据查询结果集构造 Sequencesequences(DataRuntime runtime, int index, boolean create, List<T> previous, Sequence query, DataSet<DataRow> set) sequence[结果集封装]
根据查询结果集构造 Sequencesequences(DataRuntime runtime, String random, boolean greedy, Sequence query) sequence[调用入口]<T extends Sequence>
LinkedHashMap<String,T> sequences(DataRuntime runtime, String random, Sequence query) sequence[调用入口]voidsetActuator(DriverActuator actuator) voidsetDelimiter(String delimiter) voidsetGenerator(PrimaryGenerator generator) voidsetListener(DDListener listener) voidsetListener(DMListener listener) protected voidsetPrimaryValue(Object obj, Object value) insert [命令合成-子流程]
设置主键值数据类型拼写兼容booleaninsert [命令合成-子流程]
插入数据时是否支持占位符booleansupportKeyHolder(DataRuntime runtime, ConfigStore configs) 是否支持返回自增主键值protected voidsync(DatabaseType database) 根据系统环境动态补充数据类型映射 解决中央库更新不及时的问题 如果不需要可以把ConfigTable.METADATA_CONFIG_SYNC_HOST置空protected <T extends Table<T>>
voidtableMap(DataRuntime runtime, String random, boolean greedy, Table<T> query, ConfigStore configs) table[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写<T extends Table<T>>
LinkedHashMap<String,T> tables(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Table<T> query, int types) table[结果集封装]
根据驱动内置方法补充tables(DataRuntime runtime, boolean create, List<T> previous, Table<T> query, int types) table[结果集封装]
根据驱动内置方法补充<T extends Table<T>>
LinkedHashMap<String,T> tables(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table<T> query, DataSet<DataRow> set) table[结果集封装]
根据查询结果集构造Tabletables(DataRuntime runtime, int index, boolean create, List<T> previous, Table<T> query, DataSet<DataRow> set) table[结果集封装]
根据查询结果集构造Tabletables(DataRuntime runtime, String random, boolean greedy, Table<T> query, int types, int struct, ConfigStore configs) table[调用入口]<T extends Table<T>>
LinkedHashMap<String,T> tables(DataRuntime runtime, String random, Table<T> query, int types, int struct, ConfigStore configs) table[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写<T extends Tag>
LinkedHashMap<String,T> tags(DataRuntime runtime, boolean create, LinkedHashMap<String, T> tags, Tag query) tag[结果集封装]
解析JDBC get columns结果<T extends Tag>
LinkedHashMap<String,T> tags(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Tag query, DataSet<DataRow> set) tag[结果集封装]
根据查询结果集构造Tag<T extends Tag>
LinkedHashMap<String,T> tags(DataRuntime runtime, String random, boolean greedy, Table table, Tag query) tag[调用入口]
查询表结构<T extends Trigger>
LinkedHashMap<String,T> triggers(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Trigger query, DataSet<DataRow> set) trigger[结果集封装]
根据查询结果集构造 Trigger<T extends Trigger>
LinkedHashMap<String,T> triggers(DataRuntime runtime, String random, boolean greedy, Trigger query) trigger[调用入口]longtruncate(DataRuntime runtime, String random, Table table) truncate [调用入口]type(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:数据类型type(DataRuntime runtime, StringBuilder builder, Column meta, String type, int ignoreLength, int ignorePrecision, int ignoreScale, int maxLength, int maxPrecision, int maxScale, int supportTimeZone, int supportLocalTimeZone) column[命令合成-子流程]
列定义:数据类型定义type(DataRuntime runtime, StringBuilder builder, Index meta) index[命令合成-子流程]
索引类型typeMetadata(DataRuntime runtime, String type) 转换成相应数据库类型
把编码时输入的数据类型如(long)转换成具体数据库中对应的数据类型,如有些数据库中用bigint有些数据库中有longtypeMetadata(DataRuntime runtime, Column meta) typeMetadata(DataRuntime runtime, DataTypeDefine meta) 转换成相应数据库类型
把编码时输入的数据类型如(long)转换成具体数据库中对应的数据类型
同时解析长度、有效位数、精度
如有些数据库中用bigint有些数据库中有longunique(DataRuntime runtime, StringBuilder builder, Column meta) column[命令合成-子流程]
列定义:唯一索引longupdate(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) UPDATE [调用入口]longupdate(DataRuntime runtime, String random, RunPrepare prepare, DataRow data, ConfigStore configs, String... conditions) 多表关联更新longupdate(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, Run run) update [命令执行]users(DataRuntime runtime, int index, boolean create, List<T> previous, User query, DataSet<DataRow> set) user[结果集封装]
根据查询结果集构造 userusers(DataRuntime runtime, String random, boolean greedy, User query) user[调用入口]
查询用户voidvalue(DataRuntime runtime, StringBuilder builder, Object obj, String key) 在不检测数据库结构时才生效,否则会被convert代替 生成value格式 主要确定是否需要单引号 或 类型转换 有些数据库不提供默认的 隐式转换 需要显示的把String转换成相应的数据类型 如 TO_DATE('')value(DataRuntime runtime, Column column, DriverAdapter.SQL_BUILD_IN_VALUE value) 内置函数version(DataRuntime runtime, boolean create, String version) database[结果集封装]
根据JDBC内置接口 versionversion(DataRuntime runtime, int index, boolean create, String version, DataSet<DataRow> set) database[结果集封装]
根据查询结果集构造 versionversion(DataRuntime runtime, String random) database[调用入口]
当前数据源 数据库类型<T extends VertexTable<T>>
LinkedHashMap<String,T> vertexes(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, VertexTable<T> query, int types) vertex[结果集封装]
根据驱动内置方法补充<T extends VertexTable<T>>
List<T>vertexes(DataRuntime runtime, boolean create, List<T> previous, VertexTable<T> query, int types) vertex[结果集封装]
根据驱动内置方法补充<T extends VertexTable<T>>
LinkedHashMap<String,T> vertexes(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, VertexTable<T> query, DataSet<DataRow> set) vertex[结果集封装]
根据查询结果集构造VertexTable<T extends VertexTable<T>>
List<T>vertexes(DataRuntime runtime, int index, boolean create, List<T> previous, VertexTable<T> query, DataSet<DataRow> set) vertex[结果集封装]
根据查询结果集构造VertexTable<T extends VertexTable<T>>
List<T>vertexes(DataRuntime runtime, String random, boolean greedy, VertexTable<T> query, int types, int struct, ConfigStore configs) vertex[调用入口]<T extends VertexTable<T>>
LinkedHashMap<String,T> vertexes(DataRuntime runtime, String random, VertexTable<T> query, int types, int struct, ConfigStore configs) vertex[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写protected <T extends VertexTable<T>>
voidvertexMap(DataRuntime runtime, String random, boolean greedy, VertexTable<T> query, ConfigStore configs) vertex[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写protected voidviewMap(DataRuntime runtime, String random, boolean greedy, View query, ConfigStore configs) view[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写<T extends View>
LinkedHashMap<String,T> views(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, View query, int types) view[结果集封装]
根据驱动内置方法补充views(DataRuntime runtime, boolean create, List<T> previous, View query, int types) view[结果集封装]
根据驱动内置方法补充<T extends View>
LinkedHashMap<String,T> views(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, View query, DataSet<DataRow> set) view[结果集封装]
根据查询结果集构造Viewviews(DataRuntime runtime, int index, boolean create, List<T> previous, View query, DataSet<DataRow> set) view[结果集封装]
根据查询结果集构造Viewviews(DataRuntime runtime, String random, boolean greedy, View query, int types, int struct, ConfigStore configs) view[调用入口]<T extends View>
LinkedHashMap<String,T> views(DataRuntime runtime, String random, View query, int types, int struct, ConfigStore configs) view[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写virtual(DataRuntime runtime, StringBuilder builder, Column column) column[命令合成-子流程]
定义列:虚拟列写入数据库前类型转换从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.anyline.data.adapter.DriverAdapter
alter, alter, alter, buildAddCommentRun, buildAlterRun, buildAlterRun, buildAlterRun, buildAppendPrimaryRun, buildChangeTypeRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRun, buildDeleteRunFromConfig, buildDeleteRunFromConfig, buildDeleteRunFromEntity, buildDeleteRunFromEntity, buildDeleteRunFromEntity, buildDeleteRunFromTable, buildDeleteRunFromTable, buildDeleteRunFromTable, buildDropRun, buildExecuteRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildInsertRun, buildRunPrepare, buildSelectCatalogsRun, buildSelectCatalogsRun, buildSelectConstraintsRun, buildSelectDatabaseRun, buildSelectDatabaseRun, buildSelectDatabaseRun, buildSelectDatabasesRun, buildSelectEdgesCommentRun, buildSelectEdgesRun, buildSelectForeignsRun, buildSelectFunctionsRun, buildSelectIndexesRun, buildSelectMasterTablesCommentRun, buildSelectMasterTablesRun, buildSelectPartitionTablesRun, buildSelectPartitionTablesRun, buildSelectPartitionTablesRun, buildSelectPartitionTablesRun, buildSelectPartitionTablesRun, buildSelectPrimaryRun, buildSelectPrivilegesRun, buildSelectProceduresRun, buildSelectRolesRun, buildSelectRun, buildSelectSchemasRun, buildSelectSchemasRun, buildSelectSchemasRun, buildSelectSequencesRun, buildSelectTablesCommentRun, buildSelectTablesRun, buildSelectTriggersRun, buildSelectUsersRun, buildSelectVertexCommentRun, buildSelectVertexesRun, buildSelectViewsCommentRun, buildSelectViewsRun, buildTruncateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRun, buildUpdateRunFromCollection, buildUpdateRunFromCollection, buildUpdateRunFromCollection, buildUpdateRunFromDataRow, buildUpdateRunFromDataRow, buildUpdateRunFromDataRow, buildUpdateRunFromEntity, buildUpdateRunFromEntity, buildUpdateRunFromEntity, catalog, catalogs, catalogs, checkDefaultBuildInValue, checkSchema, columnAliasGuide, columns, columns, columns, columns, comments, comments, compareFormula, compressCondition, concat, conditionHead, confirmInsertColumns, confirmUpdateColumns, confirmUpdateColumns, constraints, constraints, constraints, constraints, convert, correctSchemaFromJDBC, correctSchemaFromJDBC, correctSchemaFromJDBC, create, createConditionEmpty, createConditionEmpty, createConditionExists, createConditionExists, createConditionFindInSet, createConditionFindInSet, createConditionIn, createConditionJsonContains, createConditionJsonContains, createConditionJsonContainsPath, createConditionJsonContainsPath, createConditionJsonOverlaps, createConditionJsonOverlaps, createConditionJsonSearch, createConditionJsonSearch, createConditionLike, database, databases, databases, dataTypeMetadataRefer, ddl, ddl, ddl, defaultValue, delete, delete, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, deletes, detail, detail, detail, detail, drop, edges, edges, edges, edges, edges, edges, edges, edges, edges, edges, edges, edges, edges, edges, empty, empty, equals, equals, equals, exeMatch, fillDeleteRunContent, fillExecuteContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillInsertContent, fillSelectContent, fillSelectContent, fillUpdateContent, fillUpdateContent, fillUpdateContent, foreigns, foreigns, formula, functions, functions, functions, functions, grant, id, in, indexes, indexes, indexes, indexes, indexes, indexes, init, init, init, init, initFunctionParameterFieldRefer, initSelectRun, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, keyword, masters, masters, masters, masters, masters, masters, masters, masters, masters, masters, masters, masters, masters, masters, match, match, matchByAdapter, matchByAdapter, name, names, nullDefault, orderNullSet, origin, partitions, partitions, partitions, primary, primary, priority, privileges, privileges, privileges, procedures, procedures, reader, reg, reg, reg, reg, reg, rename, revoke, roles, roles, roles, roles, save, save, save, save, save, save, save, schema, schemas, schemas, schemas, schemas, schemas, schemas, selects, sequences, sequences, slice, slice, sort, supportAlterColumnPosition, supportAlterColumnPositions, supportCatalog, supportEmptyTable, supportPlaceholder, supportSchema, supportSqlVarPlaceholderRegexExt, tableAliasGuide, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tags, triggers, triggers, truncate, type, types, unicodeGuide, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, users, users, users, users, version, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, vertexes, views, views, views, views, views, views, views, views, views, views, views, views, views, views, writer
-
字段详细资料
-
dmListener
-
ddListener
-
-
actuator
-
delimiterFr
-
delimiterTo
-
spells
-
refers
-
-
构造器详细资料
-
AbstractDriverAdapter
public AbstractDriverAdapter()
-
-
方法详细资料
-
getListener
-
setListener
- 指定者:
setListener在接口中DriverAdapter
-
getDMListener
- 指定者:
getDMListener在接口中DriverAdapter
-
setListener
- 指定者:
setListener在接口中DriverAdapter
-
getDDListener
- 指定者:
getDDListener在接口中DriverAdapter
-
setGenerator
- 指定者:
setGenerator在接口中DriverAdapter
-
getPrimaryGenerator
-
setActuator
- 指定者:
setActuator在接口中DriverAdapter
-
getActuator
- 指定者:
getActuator在接口中DriverAdapter
-
getDelimiterFr
从接口复制的说明:DriverAdapter界定符(分隔符)- 指定者:
getDelimiterFr在接口中DriverAdapter- 返回:
- String
-
getDelimiterTo
- 指定者:
getDelimiterTo在接口中DriverAdapter
-
setDelimiter
- 指定者:
setDelimiter在接口中DriverAdapter
-
compatible
对应的兼容模式,有些数据库会兼容oracle或pg,需要分别提供两个JDBCAdapter或者直接依赖oracle/pg的adapter 参考DefaultJDBCAdapterUtil定位adapter的方法- 指定者:
compatible在接口中DriverAdapter- 返回:
- DatabaseType
-
sync
根据系统环境动态补充数据类型映射 解决中央库更新不及时的问题 如果不需要可以把ConfigTable.METADATA_CONFIG_SYNC_HOST置空 -
refer
从接口复制的说明:DriverAdapter元数据[结构集封装-依据]
读取元数据结果集的依据(元数据属性与数据库列的对应关系)- 指定者:
refer在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端type- Table Column等元数据类- 返回:
- MetadataRefer
-
reg
- 指定者:
reg在接口中DriverAdapter
-
alias
从接口复制的说明:DriverAdapter数据类型别名- 指定者:
alias在接口中DriverAdapter- 返回:
- LinkedHashMap
-
reg
注册数据类型别名(包含对应的标准类型、length/precision/scale等配置)- 指定者:
reg在接口中DriverAdapter- 参数:
alias- 数据类型别名override- 是否覆盖 根据TypeMetadataAlias配置时默认不要覆盖 明确需要覆盖时才用true- 返回:
- Config
-
alias
-
alias
-
alias
-
clear
- 指定者:
clear在接口中DriverAdapter
-
clear
-
reg
注册数据类型配置 要从配置项中取出每个属性检测合并,不要整个覆盖- 指定者:
reg在接口中DriverAdapter- 参数:
type- 数据类型refer- 配置项 主要包括数据类型规则以及是否忽略长度、精度- 返回:
- Config
-
reg
注册数据类型配置 要从配置项中取出每个属性检测合并,不要整个覆盖- 指定者:
reg在接口中DriverAdapter- 参数:
type- 类型名称或别名refer- 配置项- 返回:
- TypeMetadata.Config
-
insert
public long insert(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) insert [调用入口]
执行前根据主键生成器补充主键值,执行完成后会补齐自增主键值- 指定者:
insert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源data- 需要插入入的数据columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须插入
-:表示必须不插入
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- 影响行数
-
insert
public long insert(DataRuntime runtime, String random, Table dest, RunPrepare prepare, ConfigStore configs, Object obj, String... conditions) insert into table select * from table 与query参数一致- 指定者:
insert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 插入表prepare- 查询表configs- 查询条件及相关配置obj- 查询条件conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- 影响行数
-
buildInsertRun
public Run buildInsertRun(DataRuntime runtime, int batch, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成]
填充inset命令内容(创建批量INSERT RunPrepare)- 指定者:
buildInsertRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源obj- 需要插入的数据configs- configsplaceholder- 占位符unicode- 编码columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildInsertRun
public Run buildInsertRun(DataRuntime runtime, Table dest, RunPrepare prepare, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... conditions) insert [命令合成]
填充inset命令内容(创建批量INSERT RunPrepare)- 指定者:
buildInsertRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源prepare- 查询configs- 过滤条件及相关配置- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
fillInsertContent
public void fillInsertContent(DataRuntime runtime, Run run, Table dest, DataSet<DataRow> set, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) insert [命令合成-子流程]
填充inset命令内容(创建批量INSERT RunPrepare)- 指定者:
fillInsertContent在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源set- 需要插入的数据集合columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响
-
fillInsertContent
public void fillInsertContent(DataRuntime runtime, Run run, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) insert [命令合成-子流程]
填充inset命令内容(创建批量INSERT RunPrepare)- 指定者:
fillInsertContent在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)dest- 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源list- 需要插入的数据集合configs- configsplaceholder- 占位符unicode- 编码columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响
-
fillInsertCreateTemplate
public void fillInsertCreateTemplate(DataRuntime runtime, Run run, PartitionTable dest, ConfigStore configs) 插入子表前 检测并创建子表- 指定者:
fillInsertCreateTemplate在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)dest- 表configs- ConfigStore
-
confirmInsertColumns
public LinkedHashMap<String,Column> confirmInsertColumns(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, List<String> columns, boolean batch) insert [命令合成-子流程]
确认需要插入的列- 指定者:
confirmInsertColumns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源obj- Entity或DataRowbatch- 是否批量,批量时不检测值是否为空columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须插入
-:表示必须不插入
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- List
-
batchInsertSeparator
insert [命令合成-子流程]
批量插入数据时,多行数据之间分隔符- 指定者:
batchInsertSeparator在接口中DriverAdapter- 返回:
- String
-
supportInsertPlaceholder
public boolean supportInsertPlaceholder()insert [命令合成-子流程]
插入数据时是否支持占位符- 指定者:
supportInsertPlaceholder在接口中DriverAdapter- 返回:
- boolean
-
setPrimaryValue
insert [命令合成-子流程]
设置主键值- 参数:
obj- objvalue- value
-
createInsertRun
protected Run createInsertRun(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成-子流程]
根据entity创建 INSERT RunPrepare由buildInsertRun调用- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源obj- 数据columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
createInsertRunFromCollection
protected Run createInsertRunFromCollection(DataRuntime runtime, int batch, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) insert [命令合成-子流程]
根据collection创建 INSERT RunPrepare由buildInsertRun调用- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源list- 对象集合columns- 需要插入的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
generatedKey
insert [after]
执行insert后返回自增主键的key- 指定者:
generatedKey在接口中DriverAdapter- 返回:
- String
-
insert
public long insert(DataRuntime runtime, String random, Object data, ConfigStore configs, Run run, String[] pks) insert [命令执行]
执行完成后会补齐自增主键值- 指定者:
insert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令data- datarun- 最终待执行的命令和参数(如JDBC环境中的SQL)pks- 需要返回的主键- 返回:
- 影响行数
-
supportKeyHolder
是否支持返回自增主键值- 指定者:
supportKeyHolder在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端configs- configs中也可能禁用返回- 返回:
- boolean
-
keyHolders
自增主键值keys- 指定者:
keyHolders在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端configs- configs中也可能禁用返回- 返回:
- keys
-
update
public long update(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns) UPDATE [调用入口]- 指定者:
update在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源data- 数据configs- 条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须更新
-:表示必须不更新
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- 影响行数
-
update
public long update(DataRuntime runtime, String random, RunPrepare prepare, DataRow data, ConfigStore configs, String... conditions) 多表关联更新- 指定者:
update在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 一般通过TableBuilder生成data- K-VariableValue 更新值key:需要更新的列 value:通常是关联表的列用VariableValue表示,也可以是常量- 返回:
- 影响行数
-
buildUpdateRun
public Run buildUpdateRun(DataRuntime runtime, RunPrepare prepare, DataRow data, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) 多表关联更新- 指定者:
buildUpdateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 一般通过TableBuilder生成data- K-VariableValue 更新值key:需要更新的列 value:通常是关联表的列用VariableValue表示,也可以是常量- 返回:
- 影响行数
-
fillUpdateContent
public void fillUpdateContent(DataRuntime runtime, TableRun run, StringBuilder builder, DataRow data, ConfigStore configs, Boolean placeholder, Boolean unicode) 从接口复制的说明:DriverAdapter多表关联更新- 指定者:
fillUpdateContent在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
buildUpdateRun
public Run buildUpdateRun(DataRuntime runtime, int batch, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, List<String> columns) update [命令合成]- 指定者:
buildUpdateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源obj- Entity或DtaRowconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须更新
-:表示必须不更新
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildUpdateRunLimit
update [命令合成]- 指定者:
buildUpdateRunLimit在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- Run
-
buildUpdateRunFromEntity
public Run buildUpdateRunFromEntity(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]- 指定者:
buildUpdateRunFromEntity在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源obj- Entity或DtaRowconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run
-
buildUpdateRunFromDataRow
public Run buildUpdateRunFromDataRow(DataRuntime runtime, Table dest, DataRow row, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]- 指定者:
buildUpdateRunFromDataRow在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源row- DtaRowconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run
-
buildUpdateRunFromCollection
public Run buildUpdateRunFromCollection(DataRuntime runtime, int batch, Table dest, Collection list, ConfigStore configs, Boolean placeholder, Boolean unicode, LinkedHashMap<String, Column> columns) update [命令合成]- 指定者:
buildUpdateRunFromCollection在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源list- Collectionconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响- 返回:
- Run
-
confirmUpdateColumns
public LinkedHashMap<String,Column> confirmUpdateColumns(DataRuntime runtime, Table dest, DataRow row, ConfigStore configs, List<String> columns) 确认需要更新的列- 指定者:
confirmUpdateColumns在接口中DriverAdapter- 参数:
dest- 表row- DataRowconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须更新
-:表示必须不更新
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- List
-
confirmUpdateColumns
public LinkedHashMap<String,Column> confirmUpdateColumns(DataRuntime runtime, Table dest, Object obj, ConfigStore configs, List<String> columns) 确认需要更新的列- 指定者:
confirmUpdateColumns在接口中DriverAdapter- 参数:
dest- 表obj- Objectconfigs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须更新
-:表示必须不更新
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- List
-
update
public long update(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, Run run) update [命令执行]- 指定者:
update在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源data- 数据run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- 影响行数
-
save
public long save(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, List<String> columns) save [调用入口]
根据是否有主键值确认insert | update
执行完成后会补齐自增主键值- 指定者:
save在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源data- 数据configs- 更新条件columns- 需要插入或更新的列,如果不指定则根据data或configs获取注意会受到ConfigTable中是否插入更新空值的几个配置项影响 列可以加前缀
+:表示必须更新
-:表示必须不更新
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列- 返回:
- 影响行数
-
saveCollection
protected long saveCollection(DataRuntime runtime, String random, Table dest, Collection<?> data, ConfigStore configs, List<String> columns) - 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表data- 保存的数据configs- ConfigStorecolumns- 指定列- 返回:
- long 影响行数
-
saveObject
protected long saveObject(DataRuntime runtime, String random, Table dest, Object data, ConfigStore configs, List<String> columns) - 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令dest- 表data- 保存的数据configs- ConfigStorecolumns- 指定列- 返回:
- long 影响行数
-
checkOverride
有主键值的情况下 检测覆盖- 参数:
obj- Object- 返回:
- boolean
null:正常执行update
true或false:检测数据库中是否存在
如果数据库中存在匹配的数据
true:执行更新
false:跳过更新
-
checkOverrideSync
-
checkPv
检测主键值- 参数:
obj- Object- 返回:
- Map
-
isMultipleValue
是否是可以接收数组类型的值- 参数:
run- 最终待执行的命令和参数(如JDBC环境中的SQL)key- key- 返回:
- boolean
-
isMultipleValue
是否支持集合值- 参数:
column- Column 根据column的数据类型- 返回:
- boolean
-
checkMetadata
public LinkedHashMap<String,Column> checkMetadata(DataRuntime runtime, Table table, ConfigStore configs, LinkedHashMap<String, Column> columns) 过滤掉表结构中不存在的列- 参数:
table- 表columns- columns- 返回:
- List
-
selects
public DataSet<DataRow> selects(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) query [调用入口]
返回DataSet中包含元数据信息,如果性能有要求换成maps- 指定者:
selects在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- DataSet
-
queries
public <T> EntitySet<T> queries(DataRuntime runtime, String random, RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions) query [调用入口]- 指定者:
queries在接口中DriverAdapter- 类型参数:
T- Entity- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令clazz- 类prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- EntitySet
-
query
protected <T> EntitySet<T> query(DataRuntime runtime, String random, Class<T> clazz, Table table, ConfigStore configs, Run run) select [命令执行-子流程]
DataRow转换成Entity- 类型参数:
T- entity.class- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端clazz- entity classtable- tablerun- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- EntitySet
-
maps
public List<Map<String,Object>> maps(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) query [调用入口]
对性能有要求的场景调用,返回java原生map集合,结果中不包含元数据信息- 指定者:
maps在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- maps 返回map集合
-
buildSelectRun
public Run buildSelectRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) select[命令合成]
最终可执行命令
创建查询SQL- 指定者:
buildSelectRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
init
query run初始化,检测占位符、忽略不存在的列等 select[命令合成]- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件
-
parsePlaceholder
解析文本中的占位符- 指定者:
parsePlaceholder在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
buildSelectSequence
查询序列cur 或 next value- 指定者:
buildSelectSequence在接口中DriverAdapter- 参数:
next- 是否生成返回下一个序列 false:cur true:nextnames- 序列名runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- String
-
fillSelectContent
select[命令合成-子流程]
构造查询主体, 中间过程有可能转换类型- 指定者:
fillSelectContent在接口中DriverAdapter- 参数:
run- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
fillSelectContent
public Run fillSelectContent(DataRuntime runtime, StringBuilder builder, Run run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体- 指定者:
fillSelectContent在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, XMLRun run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- XMLRun
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, StringBuilder builder, XMLRun run, Boolean placeholder, Boolean unicode) - 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- TextRun
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, TextRun run, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造查询主体- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- TextRun
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, StringBuilder builder, TextRun run, Boolean placeholder, Boolean unicode) - 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- TextRun
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, TableRun run, Boolean placeholder, Boolean unicode) - 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- TextRun
-
fillSelectContent
protected Run fillSelectContent(DataRuntime runtime, StringBuilder builder, TableRun run, Boolean placeholder, Boolean unicode) 有些非JDBC环境也需要用到SQL- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
fillSelectContentGroup
protected Run fillSelectContentGroup(DataRuntime runtime, StringBuilder builder, TableRun run, Boolean placeholder, Boolean unicode) -
fillMasterTableContent
public Run fillMasterTableContent(DataRuntime runtime, StringBuilder builder, TableRun run, RunPrepare prepare) 主表- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- 最终待执行的命令和参数(如JDBC环境中的SQL)prepare- TablePrepare- 返回:
- Run
-
fillJoinTableContent
public Run fillJoinTableContent(DataRuntime runtime, StringBuilder builder, TableRun run, RunPrepare prepare) 关联表- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- 有可能合个run合成一个 所以提供一个共用builderrun- 最终待执行的命令和参数(如JDBC环境中的SQL)prepare- TablePrepare- 返回:
- Run
-
mergeFinalSelect
select[命令合成-子流程]
合成最终 select 命令 包含分页 排序- 指定者:
mergeFinalSelect在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- String
-
createConditionLike
public RunValue createConditionLike(DataRuntime runtime, StringBuilder builder, Compare compare, Object value, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造 LIKE 查询条件 如果不需要占位符 返回null 否则原样返回value- 指定者:
createConditionLike在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildercompare- 比较方式 默认 equal 多个值默认 invalue- value- 返回:
- value 有占位符时返回占位值,没有占位符返回null
-
createConditionIn
public List<RunValue> createConditionIn(DataRuntime runtime, StringBuilder builder, Compare compare, Object value, Boolean placeholder, Boolean unicode) select[命令合成-子流程]
构造(NOT) IN 查询条件- 指定者:
createConditionIn在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildercompare- 比较方式 默认 equal 多个值默认 invalue- value- 返回:
- builder
-
selects
public DataSet<DataRow> selects(DataRuntime runtime, String random, boolean system, Table table, ConfigStore configs, Run run) select [命令执行]- 指定者:
selects在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令system- 系统表不检测列属性table- 表run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- DataSet
-
maps
public List<Map<String,Object>> maps(DataRuntime runtime, String random, ConfigStore configs, Run run) select [命令执行]- 指定者:
maps在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- maps
-
map
select [命令执行]- 指定者:
map在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- map
-
sequence
select [命令执行]- 指定者:
sequence在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令next- 是否查下一个序列值names- 存储过程名称s- 返回:
- DataRow 保存序列查询结果 以存储过程name作为key
-
process
select [结果集封装-子流程]
JDBC执行完成后的结果处理- 指定者:
process在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端list- JDBC执行返回的结果集- 返回:
- maps
-
count
public long count(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) count [调用入口]- 指定者:
count在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 过滤条件及相关配置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- long
-
mergeFinalTotal
count [命令合成]
合成最终 select count 命令- 指定者:
mergeFinalTotal在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- String
-
count
count [命令执行]- 指定者:
count在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- long
-
length
计算字符串在当前数据库中占用字节长度- 指定者:
length在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令cn- 字符串configs- 过滤条件及相关配置- 返回:
- int
-
buildSelectLengthRun
计算字符串在当前数据库中占用字节长度- 指定者:
buildSelectLengthRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端cn- 字符串configs- 过滤条件及相关配置- 返回:
- Run
-
exists
public boolean exists(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) exists [调用入口]- 指定者:
exists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 查询条件及相关设置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- boolean
-
mergeFinalExists
exists [命令合成]- 指定者:
mergeFinalExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- String
-
execute
public long execute(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions) execute [调用入口]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 查询条件及相关设置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- 影响行数
-
execute
public long execute(DataRuntime runtime, String random, List<RunPrepare> prepares, ConfigStore configs) - 指定者:
execute在接口中DriverAdapter
-
execute
public long execute(DataRuntime runtime, String random, int batch, ConfigStore configs, RunPrepare prepare, Collection<Object> values) execute [调用入口]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令batch- 批量执行每批最多数量prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 查询条件及相关设置values- values- 返回:
- 影响行数
-
execute
public long execute(DataRuntime runtime, String random, int batch, int vol, ConfigStore configs, RunPrepare prepare, Collection<Object> values) execute [调用入口]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令batch- 批量执行每批最多数量vol- 批量执行每行参数数量prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 查询条件及相关设置values- values- 返回:
- 影响行数
-
execute
procedure [命令执行]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端procedure- 存储过程random- random- 返回:
- 影响行数
-
buildExecuteRun
public Run buildExecuteRun(DataRuntime runtime, RunPrepare prepare, ConfigStore configs, Boolean placeholder, Boolean unicode, String... conditions) execute [命令合成]
创建执行SQL- 指定者:
buildExecuteRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs- 查询条件及相关设置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
fillExecuteContent
execute [命令合成]
填充execute命令- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- XMLRun
-
fillExecuteContent
protected void fillExecuteContent(DataRuntime runtime, TextRun run, Boolean placeholder, Boolean unicode) execute [命令合成]
填充execute命令- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- XMLRun
-
fillExecuteContent
protected void fillExecuteContent(DataRuntime runtime, TableRun run, Boolean placeholder, Boolean unicode) execute [命令合成]
填充execute命令- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- XMLRun
-
fillExecuteContent
execute [命令合成-子流程]
填充 execute 命令内容- 指定者:
fillExecuteContent在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端run- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
execute
execute [命令执行]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- 影响行数
-
execute
execute [命令执行]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令runs- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- 影响行数
-
deletes
public <T> long deletes(DataRuntime runtime, String random, int batch, Table table, ConfigStore configs, String key, Collection<T> values) delete [调用入口]
合成 where column in (values)- 指定者:
deletes在接口中DriverAdapter- 类型参数:
T- T- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源values- 列对应的值key- 列- 返回:
- 影响行数
-
delete
public long delete(DataRuntime runtime, String random, Table dest, ConfigStore configs, Object obj, String... columns) delete [调用入口]
合成 where k1 = v1 and k2 = v2- 指定者:
delete在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令obj- entity或DataRowcolumns- 删除条件的列或属性,根据columns取obj值并合成删除条件dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源- 返回:
- 影响行数
-
delete
public long delete(DataRuntime runtime, String random, Table table, ConfigStore configs, String... conditions) delete [调用入口]
根据configs和conditions过滤条件- 指定者:
delete在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- 表configs- 查询条件及相关设置conditions- 查询条件 支持k:v k:v::type 以及原生sql形式(包含ORDER、GROUP、HAVING)默认忽略空值条件- 返回:
- 影响行数
-
truncate
truncate [调用入口]- 指定者:
truncate在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- 表- 返回:
- 1表示成功执行
-
buildDeleteRun
public List<Run> buildDeleteRun(DataRuntime runtime, Table dest, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... columns) delete[命令合成]
合成 where k1 = v1 and k2 = v2- 指定者:
buildDeleteRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端dest- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源obj- entity或DataRowcolumns- 删除条件的列或属性,根据columns取obj值并合成删除条件- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildDeleteRun
public List<Run> buildDeleteRun(DataRuntime runtime, int batch, Table table, ConfigStore configs, Boolean placeholder, Boolean unicode, String key, Object values) delete[命令合成]
合成 where column in (values)- 指定者:
buildDeleteRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源key- 列values- values- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildTruncateRun
delete[命令合成]
合成 where column in (values)- 指定者:
buildTruncateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildDeleteRunFromTable
public List<Run> buildDeleteRunFromTable(DataRuntime runtime, int batch, Table table, ConfigStore configs, Boolean placeholder, Boolean unicode, String column, Object values) delete[命令合成-子流程]
合成 where column in (values)- 指定者:
buildDeleteRunFromTable在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源column- 列values- values- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
buildDeleteRunFromEntity
public List<Run> buildDeleteRunFromEntity(DataRuntime runtime, Table table, ConfigStore configs, Object obj, Boolean placeholder, Boolean unicode, String... columns) delete[命令合成-子流程]
合成 where k1 = v1 and k2 = v2- 指定者:
buildDeleteRunFromEntity在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表 如果不提供表名则根据data解析,表名可以事实前缀<数据源名>表示切换数据源 如果为空 可以根据obj解析obj- entity或DataRowcolumns- 删除条件的列或属性,根据columns取obj值并合成删除条件- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
fillDeleteRunContent
public void fillDeleteRunContent(DataRuntime runtime, Run run, Boolean placeholder, Boolean unicode) delete[命令合成-子流程]
构造查询主体 拼接where group等(不含分页 ORDER)- 指定者:
fillDeleteRunContent在接口中DriverAdapter- 参数:
run- 最终待执行的命令和参数(如JDBC环境中的SQL)
-
delete
delete[命令执行]- 指定者:
delete在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令configs- 查询条件及相关设置run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- 影响行数
-
roles
public <T extends Role> LinkedHashMap<String,T> roles(DataRuntime runtime, String random) throws Exception 当前用户角色
查询角色- 指定者:
roles在接口中DriverAdapter- 返回:
- List
- 抛出:
Exception
-
buildSelectRolesRun
查询当前用户角色 注意返回结构要与元数据查询中的MetadataFieldRefer对应- 指定者:
buildSelectRolesRun在接口中DriverAdapter- 返回:
- List
- 抛出:
Exception
-
database
database[调用入口]
当前数据库- 指定者:
database在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令- 返回:
- Database
-
product
database[调用入口]
当前数据源 数据库描述(产品名称+版本号)- 指定者:
product在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令- 返回:
- String
-
version
database[调用入口]
当前数据源 数据库类型- 指定者:
version在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令- 返回:
- String
-
databases
public <T extends Database> List<T> databases(DataRuntime runtime, String random, boolean greedy, Database query) database[调用入口]- 指定者:
databases在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
databases
public <T extends Database> LinkedHashMap<String,T> databases(DataRuntime runtime, String random, Database query) database[调用入口]- 指定者:
databases在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectProductRun
database[命令合成]
查询当前数据源 数据库产品说明(产品名称+版本号)- 指定者:
buildSelectProductRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- runs
- 抛出:
Exception- 异常
-
buildSelectVersionRun
database[命令合成]
查询当前数据源 数据库版本 版本号比较复杂 不是全数字- 指定者:
buildSelectVersionRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- runs
- 抛出:
Exception- 异常
-
buildSelectDatabasesRun
public List<Run> buildSelectDatabasesRun(DataRuntime runtime, boolean greedy, Database query) throws Exception database[命令合成]
查询全部数据库- 指定者:
buildSelectDatabasesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据- 返回:
- runs
- 抛出:
Exception- 异常
-
initDatabaseFieldRefer
database[结果集封装]
database 属性与结果集对应关系- 指定者:
initDatabaseFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
databases
public <T extends Database> LinkedHashMap<String,T> databases(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Database query, DataSet<DataRow> set) throws Exceptiondatabase[结果集封装]- 指定者:
databases在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception
-
databases
public <T extends Database> List<T> databases(DataRuntime runtime, int index, boolean create, List<T> previous, Database query, DataSet<DataRow> set) throws Exception database[结果集封装]- 指定者:
databases在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- List
- 抛出:
Exception- 异常
-
database
public Database database(DataRuntime runtime, int index, boolean create, Database meta, DataSet<DataRow> set) throws Exception database[结果集封装]
当前database 根据查询结果集- 指定者:
database在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果set- 查询结果集- 返回:
- database
- 抛出:
Exception- 异常
-
database
database[结果集封装]
当前database 根据驱动内置接口补充- 指定者:
database在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果- 返回:
- database
- 抛出:
Exception- 异常
-
product
public String product(DataRuntime runtime, int index, boolean create, String product, DataSet<DataRow> set) database[结果集封装]
根据查询结果集构造 product- 指定者:
product在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建product- 上一步查询结果set- 查询结果集- 返回:
- product
-
product
database[结果集封装]
根据JDBC内置接口 product- 指定者:
product在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建product- 上一步查询结果- 返回:
- product
-
version
public String version(DataRuntime runtime, int index, boolean create, String version, DataSet<DataRow> set) database[结果集封装]
根据查询结果集构造 version- 指定者:
version在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建version- 上一步查询结果set- 查询结果集- 返回:
- version
-
version
database[结果集封装]
根据JDBC内置接口 version- 指定者:
version在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建version- 上一步查询结果- 返回:
- version
-
init
public <T extends Database> T init(DataRuntime runtime, int index, T meta, Database query, DataRow row) schema[结果集封装]
根据查询结果封装 schema 对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Database
-
detail
public <T extends Database> T detail(DataRuntime runtime, int index, T meta, Database query, DataRow row) database[结果集封装]
根据查询结果封装 database 对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Table
-
catalog
catalog[调用入口]
当前Catalog- 指定者:
catalog在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令- 返回:
- Catalog
-
catalogs
public <T extends Catalog> LinkedHashMap<String,T> catalogs(DataRuntime runtime, String random, Catalog query) catalog[调用入口]- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
catalogs
public <T extends Catalog> List<T> catalogs(DataRuntime runtime, String random, boolean greedy, Catalog query) catalog[调用入口]- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectCatalogRun
catalog[命令合成]
查询当前catalog- 指定者:
buildSelectCatalogRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- runs
- 抛出:
Exception- 异常
-
buildSelectCatalogsRun
public List<Run> buildSelectCatalogsRun(DataRuntime runtime, boolean greedy, Catalog query) throws Exception catalog[命令合成]
查询全部catalog- 指定者:
buildSelectCatalogsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据- 返回:
- runs
- 抛出:
Exception- 异常
-
initCatalogFieldRefer
Catalog[结果集封装]
Catalog 属性与结果集对应关系- 指定者:
initCatalogFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
catalogs
public <T extends Catalog> LinkedHashMap<String,T> catalogs(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Catalog query, DataSet<DataRow> set) throws Exceptioncatalog[结果集封装]
根据查询结果集构造 Database- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- databases
- 抛出:
Exception- 异常
-
catalogs
public <T extends Catalog> List<T> catalogs(DataRuntime runtime, int index, boolean create, List<T> previous, Catalog query, DataSet<DataRow> set) throws Exception catalog[结果集封装]
根据查询结果集构造 Database- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- databases
- 抛出:
Exception- 异常
-
catalogs
public <T extends Catalog> LinkedHashMap<String,T> catalogs(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous) throws Exceptioncatalog[结果集封装]
根据驱动内置接口补充 catalog- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- catalogs
- 抛出:
Exception- 异常
-
catalogs
public <T extends Catalog> List<T> catalogs(DataRuntime runtime, boolean create, List<T> previous) throws Exception catalog[结果集封装]
根据驱动内置接口补充 catalog- 指定者:
catalogs在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- catalogs
- 抛出:
Exception- 异常
-
catalog
public Catalog catalog(DataRuntime runtime, int index, boolean create, Catalog meta, DataSet<DataRow> set) throws Exception catalog[结果集封装]
当前catalog 根据查询结果集- 指定者:
catalog在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果set- 查询结果集- 返回:
- Catalog
- 抛出:
Exception- 异常
-
catalog
catalog[结果集封装]
当前catalog 根据驱动内置接口补充- 指定者:
catalog在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果- 返回:
- Catalog
- 抛出:
Exception- 异常
-
init
public <T extends Catalog> T init(DataRuntime runtime, int index, T meta, Catalog query, DataRow row) catalog[结果集封装]
根据查询结果封装 catalog 对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Catalog
-
detail
public <T extends Catalog> T detail(DataRuntime runtime, int index, T meta, Catalog query, DataRow row) catalog[结果集封装]
根据查询结果封装 catalog 对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Table
-
schema
schema[调用入口]
当前Schema- 指定者:
schema在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令- 返回:
- Schema
-
selectMetadata
-
schemas
public <T extends Schema> LinkedHashMap<String,T> schemas(DataRuntime runtime, String random, Schema query) schema[调用入口]- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
schemas
public <T extends Schema> List<T> schemas(DataRuntime runtime, String random, boolean greedy, Schema query) schema[调用入口]- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectSchemaRun
schema[命令合成]
查询当前schema- 指定者:
buildSelectSchemaRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- runs
- 抛出:
Exception- 异常
-
buildSelectSchemasRun
public List<Run> buildSelectSchemasRun(DataRuntime runtime, boolean greedy, Schema query) throws Exception catalog[命令合成]
查询全部数据库- 指定者:
buildSelectSchemasRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据- 返回:
- runs
- 抛出:
Exception- 异常
-
initSchemaFieldRefer
Schema[结果集封装]
Schema 属性与结果集对应关系- 指定者:
initSchemaFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
schemas
public <T extends Schema> LinkedHashMap<String,T> schemas(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Schema query, DataSet<DataRow> set) throws Exceptionschema[结果集封装]
根据查询结果集构造 Schema- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- databases
- 抛出:
Exception- 异常
-
schemas
public <T extends Schema> List<T> schemas(DataRuntime runtime, int index, boolean create, List<T> previous, Schema query, DataSet<DataRow> set) throws Exception schema[结果集封装]
根据查询结果集构造 Schema- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDatabaseRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- databases
- 抛出:
Exception- 异常
-
schemas
public <T extends Schema> LinkedHashMap<String,T> schemas(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Schema query) throws Exceptionschema[结果集封装]
根据驱动内置接口补充 Schema- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- databases
- 抛出:
Exception- 异常
-
schemas
public <T extends Schema> List<T> schemas(DataRuntime runtime, boolean create, List<T> previous, Schema query) throws Exception schema[结果集封装]
根据驱动内置接口补充 Schema- 指定者:
schemas在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- databases
- 抛出:
Exception- 异常
-
schema
public Schema schema(DataRuntime runtime, int index, boolean create, Schema meta, DataSet<DataRow> set) throws Exception schema[结果集封装]
当前schema 根据查询结果集- 指定者:
schema在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectSchemaRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果set- 查询结果集- 返回:
- schema
- 抛出:
Exception- 异常
-
schema
schema[结果集封装]
当前schema 根据驱动内置接口补充- 指定者:
schema在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果- 返回:
- schema
- 抛出:
Exception- 异常
-
metadata
public LinkedHashMap<String,Column> metadata(DataRuntime runtime, RunPrepare prepare, boolean comment) throws Exception 根据结果集对象获取列结构,如果有表名应该调用metadata().columns(table);或metadata().table(table).getColumns()- 指定者:
metadata在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端prepare- 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等comment- 是否需要查询列注释- 返回:
- LinkedHashMap
- 抛出:
Exception
-
checkName
public <T extends Metadata> T checkName(DataRuntime runtime, String random, T meta) throws RuntimeException 检测name,name中可能包含catalog.schema.name
如果有一项或三项,在父类中解析
如果只有两项,需要根据不同数据库区分出最前一项是catalog还是schema,如果区分不出来的抛出异常- 指定者:
checkName在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- 表,视图等- 返回:
- T
- 抛出:
Exception- 如果区分不出来的抛出异常RuntimeException
-
init
schema[结果集封装]
根据查询结果封装 schema 对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Schema
-
detail
public <T extends Schema> T detail(DataRuntime runtime, int index, T meta, Schema query, DataRow row) schema[结果集封装]
根据查询结果封装 schema 对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Table
-
tables
public <T extends Table<T>> List<T> tables(DataRuntime runtime, String random, boolean greedy, Table<T> query, int types, int struct, ConfigStore configs) table[调用入口]- 指定者:
tables在接口中DriverAdapter- 类型参数:
T- Table- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和struct- 查询的属性 参考Metadata.TYPE 多个属性相加算出总和 true:表示查询全部- 返回:
- List
-
tableMap
protected <T extends Table<T>> void tableMap(DataRuntime runtime, String random, boolean greedy, Table<T> query, ConfigStore configs) table[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
tables
public <T extends Table<T>> LinkedHashMap<String,T> tables(DataRuntime runtime, String random, Table<T> query, int types, int struct, ConfigStore configs) table[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 指定者:
tables在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
buildSelectTablesRun
public <T extends Table<T>> List<Run> buildSelectTablesRun(DataRuntime runtime, boolean greedy, Table<T> query, int types, ConfigStore configs) throws Exception table[命令合成]
查询表,不是查表中的数据- 指定者:
buildSelectTablesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
initTableFieldRefer
Table[结果集封装]
Table 属性与结果集对应关系- 指定者:
initTableFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
initTableCommentFieldRefer
Table[结果集封装]
TableComment 属性与结果集对应关系- 指定者:
initTableCommentFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
buildSelectTablesCommentRun
public <T extends Table<T>> List<Run> buildSelectTablesCommentRun(DataRuntime runtime, Table<T> query, int types) throws Exception table[命令合成]
查询表备注- 指定者:
buildSelectTablesCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
tables
public <T extends Table<T>> LinkedHashMap<String,T> tables(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table<T> query, DataSet<DataRow> set) throws Exceptiontable[结果集封装]
根据查询结果集构造Table- 指定者:
tables在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
tables
public <T extends Table<T>> List<T> tables(DataRuntime runtime, int index, boolean create, List<T> previous, Table<T> query, DataSet<DataRow> set) throws Exception table[结果集封装]
根据查询结果集构造Table- 指定者:
tables在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
tables
public <T extends Table<T>> LinkedHashMap<String,T> tables(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Table<T> query, int types) throws Exceptiontable[结果集封装]
根据驱动内置方法补充- 指定者:
tables在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- tables
- 抛出:
Exception- 异常
-
tables
public <T extends Table<T>> List<T> tables(DataRuntime runtime, boolean create, List<T> previous, Table<T> query, int types) throws Exception table[结果集封装]
根据驱动内置方法补充- 指定者:
tables在接口中DriverAdapter- 类型参数:
T- Table- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- tables
- 抛出:
Exception- 异常
-
init
public <T extends Table<T>> T init(DataRuntime runtime, int index, T meta, Table<T> query, DataRow row) table[结果集封装]
根据查询结果封装Table对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- Table- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Table
-
detail
public <T extends Table<T>> T detail(DataRuntime runtime, int index, T meta, Table<T> query, DataRow row) table[结果集封装]
根据查询结果封装Table对象,更多属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- Table- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Table
-
comments
public <T extends Table<T>> LinkedHashMap<String,T> comments(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table<T> query, DataSet<DataRow> set) throws Exceptiontable[结果集封装]
表备注- 指定者:
comments在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
comments
public <T extends Table<T>> List<T> comments(DataRuntime runtime, int index, boolean create, List<T> previous, Table<T> query, DataSet<DataRow> set) throws Exception table[结果集封装]
表备注- 指定者:
comments在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
ddl
table[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- 表init- 是否还原初始状态 如自增状态- 返回:
- List
-
buildSelectDdlRun
table[命令合成]
查询表DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, Table table, List<String> ddls, DataSet<DataRow> set) table[结果集封装]
查询表DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序table- 表set- sql执行的结果集- 返回:
- List
-
vertexes
public <T extends VertexTable<T>> List<T> vertexes(DataRuntime runtime, String random, boolean greedy, VertexTable<T> query, int types, int struct, ConfigStore configs) vertex[调用入口]- 指定者:
vertexes在接口中DriverAdapter- 类型参数:
T- VertexTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和struct- 查询的属性 参考Metadata.TYPE 多个属性相加算出总和 true:表示查询全部- 返回:
- List
-
vertexMap
protected <T extends VertexTable<T>> void vertexMap(DataRuntime runtime, String random, boolean greedy, VertexTable<T> query, ConfigStore configs) vertex[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
vertexes
public <T extends VertexTable<T>> LinkedHashMap<String,T> vertexes(DataRuntime runtime, String random, VertexTable<T> query, int types, int struct, ConfigStore configs) vertex[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 指定者:
vertexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
buildSelectVertexesRun
public <T extends VertexTable<T>> List<Run> buildSelectVertexesRun(DataRuntime runtime, boolean greedy, VertexTable<T> query, int types, ConfigStore configs) throws Exception vertex[命令合成]
查询表,不是查表中的数据- 指定者:
buildSelectVertexesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
initVertexFieldRefer
vertex[结果集封装]
VertexTable 属性与结果集对应关系- 指定者:
initVertexFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
buildSelectVertexCommentRun
public <T extends VertexTable<T>> List<Run> buildSelectVertexCommentRun(DataRuntime runtime, VertexTable<T> query, int types) throws Exception vertex[命令合成]
查询表备注- 指定者:
buildSelectVertexCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
vertexes
public <T extends VertexTable<T>> LinkedHashMap<String,T> vertexes(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, VertexTable<T> query, DataSet<DataRow> set) throws Exceptionvertex[结果集封装]
根据查询结果集构造VertexTable- 指定者:
vertexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectVertexesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- vertexes
- 抛出:
Exception- 异常
-
vertexes
public <T extends VertexTable<T>> List<T> vertexes(DataRuntime runtime, int index, boolean create, List<T> previous, VertexTable<T> query, DataSet<DataRow> set) throws Exception vertex[结果集封装]
根据查询结果集构造VertexTable- 指定者:
vertexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectVertexesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- vertexes
- 抛出:
Exception- 异常
-
vertexes
public <T extends VertexTable<T>> LinkedHashMap<String,T> vertexes(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, VertexTable<T> query, int types) throws Exceptionvertex[结果集封装]
根据驱动内置方法补充- 指定者:
vertexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- vertexes
- 抛出:
Exception- 异常
-
vertexes
public <T extends VertexTable<T>> List<T> vertexes(DataRuntime runtime, boolean create, List<T> previous, VertexTable<T> query, int types) throws Exception vertex[结果集封装]
根据驱动内置方法补充- 指定者:
vertexes在接口中DriverAdapter- 类型参数:
T- VertexTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- vertexes
- 抛出:
Exception- 异常
-
ddl
vertex[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令vertex- 表init- 是否还原初始状态 如自增状态- 返回:
- List
-
buildSelectDdlRun
vertex[命令合成]
查询表DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端vertex- 表- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, VertexTable vertex, List<String> ddls, DataSet<DataRow> set) vertex[结果集封装]
查询表DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序vertex- 表set- sql执行的结果集- 返回:
- List
-
init
public <T extends VertexTable<T>> T init(DataRuntime runtime, int index, T meta, VertexTable<T> query, DataRow row) vertex[结果集封装]
根据查询结果封装VertexTable对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- VertexTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- VertexTable
-
detail
public <T extends VertexTable<T>> T detail(DataRuntime runtime, int index, T meta, VertexTable<T> query, DataRow row) vertex[结果集封装]
根据查询结果封装VertexTable对象,更多属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- VertexTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- VertexTable
-
edges
public <T extends EdgeTable<T>> List<T> edges(DataRuntime runtime, String random, boolean greedy, EdgeTable<T> query, int types, int struct, ConfigStore configs) edge[调用入口]- 指定者:
edges在接口中DriverAdapter- 类型参数:
T- EdgeTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和struct- 查询的属性 参考Metadata.TYPE 多个属性相加算出总和 true:表示查询全部- 返回:
- List
-
edgeMap
protected <T extends EdgeTable<T>> void edgeMap(DataRuntime runtime, String random, boolean greedy, EdgeTable<T> query, ConfigStore configs) edge[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
edges
public <T extends EdgeTable<T>> LinkedHashMap<String,T> edges(DataRuntime runtime, String random, EdgeTable<T> query, int types, int struct, ConfigStore configs) edge[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 指定者:
edges在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
buildSelectEdgesRun
public <T extends EdgeTable<T>> List<Run> buildSelectEdgesRun(DataRuntime runtime, boolean greedy, EdgeTable<T> query, int types, ConfigStore configs) throws Exception edge[命令合成]
查询表,不是查表中的数据- 指定者:
buildSelectEdgesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
initEdgeFieldRefer
edge[结果集封装]
EdgeTable 属性与结果集对应关系- 指定者:
initEdgeFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
buildSelectEdgesCommentRun
public <T extends EdgeTable<T>> List<Run> buildSelectEdgesCommentRun(DataRuntime runtime, EdgeTable<T> query, int types) throws Exception edge[命令合成]
查询表备注- 指定者:
buildSelectEdgesCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
edges
public <T extends EdgeTable<T>> LinkedHashMap<String,T> edges(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, EdgeTable<T> query, DataSet<DataRow> set) throws Exceptionedge[结果集封装]
根据查询结果集构造EdgeTable- 指定者:
edges在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectEdgesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- edges
- 抛出:
Exception- 异常
-
edges
public <T extends EdgeTable<T>> List<T> edges(DataRuntime runtime, int index, boolean create, List<T> previous, EdgeTable<T> query, DataSet<DataRow> set) throws Exception edge[结果集封装]
根据查询结果集构造EdgeTable- 指定者:
edges在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectEdgesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- edges
- 抛出:
Exception- 异常
-
edges
public <T extends EdgeTable<T>> LinkedHashMap<String,T> edges(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, EdgeTable<T> query, int types) throws Exceptionedge[结果集封装]
根据驱动内置方法补充- 指定者:
edges在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- edges
- 抛出:
Exception- 异常
-
edges
public <T extends EdgeTable<T>> List<T> edges(DataRuntime runtime, boolean create, List<T> previous, EdgeTable<T> query, int types) throws Exception edge[结果集封装]
根据驱动内置方法补充- 指定者:
edges在接口中DriverAdapter- 类型参数:
T- EdgeTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- edges
- 抛出:
Exception- 异常
-
init
public <T extends EdgeTable<T>> T init(DataRuntime runtime, int index, T meta, EdgeTable<T> query, DataRow row) edge[结果集封装]
根据查询结果封装EdgeTable对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- EdgeTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- EdgeTable
-
detail
public <T extends EdgeTable<T>> T detail(DataRuntime runtime, int index, T meta, EdgeTable<T> query, DataRow row) edge[结果集封装]
根据查询结果封装EdgeTable对象,更多属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- EdgeTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- EdgeTable
-
ddl
edge[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- 表init- 是否还原初始状态 如自增状态- 返回:
- List
-
buildSelectDdlRun
edge[命令合成]
查询表DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, EdgeTable meta, List<String> ddls, DataSet<DataRow> set) edge[结果集封装]
查询表DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序meta- 表set- sql执行的结果集- 返回:
- List
-
views
public <T extends View> List<T> views(DataRuntime runtime, String random, boolean greedy, View query, int types, int struct, ConfigStore configs) view[调用入口]- 指定者:
views在接口中DriverAdapter- 类型参数:
T- View- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和struct- 查询的属性 参考Metadata.TYPE 多个属性相加算出总和 true:表示查询全部- 返回:
- List
-
viewMap
protected void viewMap(DataRuntime runtime, String random, boolean greedy, View query, ConfigStore configs) view[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
views
public <T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, String random, View query, int types, int struct, ConfigStore configs) view[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 指定者:
views在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
buildSelectViewsRun
public List<Run> buildSelectViewsRun(DataRuntime runtime, boolean greedy, View query, int types, ConfigStore configs) throws Exception view[命令合成]
查询视图,不是查视图中的数据- 指定者:
buildSelectViewsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
initViewFieldRefer
View[结果集封装]
View 属性与结果集对应关系- 指定者:
initViewFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
buildSelectViewsCommentRun
public List<Run> buildSelectViewsCommentRun(DataRuntime runtime, View query, int types) throws Exception view[命令合成]
查询视图备注- 指定者:
buildSelectViewsCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
views
public <T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, View query, DataSet<DataRow> set) throws Exceptionview[结果集封装]
根据查询结果集构造View- 指定者:
views在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectViewsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- views
- 抛出:
Exception- 异常
-
views
public <T extends View> List<T> views(DataRuntime runtime, int index, boolean create, List<T> previous, View query, DataSet<DataRow> set) throws Exception view[结果集封装]
根据查询结果集构造View- 指定者:
views在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectViewsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- views
- 抛出:
Exception- 异常
-
views
public <T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, View query, int types) throws Exceptionview[结果集封装]
根据驱动内置方法补充- 指定者:
views在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- views
- 抛出:
Exception- 异常
-
views
public <T extends View> List<T> views(DataRuntime runtime, boolean create, List<T> previous, View query, int types) throws Exception view[结果集封装]
根据驱动内置方法补充- 指定者:
views在接口中DriverAdapter- 类型参数:
T- View- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- views
- 抛出:
Exception- 异常
-
init
view[结果集封装]
根据查询结果封装View对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- View- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- View
-
detail
view[结果集封装]
根据查询结果封装View对象,更多属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- View- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- View
-
ddl
view[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令view- 视图init- 是否还原初始状态 如自增状态- 返回:
- List
-
buildSelectDdlRun
view[命令合成]
查询视图DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端view- 视图- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, View view, List<String> ddls, DataSet<DataRow> set) view[结果集封装]
查询视图DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序view- 视图set- sql执行的结果集- 返回:
- List
-
masters
public <T extends MasterTable<T>> List<T> masters(DataRuntime runtime, String random, boolean greedy, MasterTable<T> query, int types, int struct, ConfigStore configs) master[调用入口]- 指定者:
masters在接口中DriverAdapter- 类型参数:
T- MasterTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和struct- 查询的属性 参考Metadata.TYPE 多个属性相加算出总和 true:表示查询全部- 返回:
- List
-
masterMap
protected <T extends MasterTable<T>> void masterMap(DataRuntime runtime, String random, boolean greedy, MasterTable<T> query, ConfigStore configs) master[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
masters
public <T extends MasterTable<T>> LinkedHashMap<String,T> masters(DataRuntime runtime, String random, MasterTable<T> query, int types, int struct, ConfigStore configs) master[结果集封装-子流程]
查出所有key并以大写缓存 用来实现忽略大小写- 指定者:
masters在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性
-
buildSelectMasterTablesRun
public <T extends MasterTable<T>> List<Run> buildSelectMasterTablesRun(DataRuntime runtime, boolean greedy, MasterTable<T> query, int types, ConfigStore configs) throws Exception master[命令合成]
查询表,不是查表中的数据- 指定者:
buildSelectMasterTablesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
initMasterTableFieldRefer
master[结果集封装]
MasterTable 属性与结果集对应关系- 指定者:
initMasterTableFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
buildSelectMasterTablesCommentRun
public <T extends MasterTable<T>> List<Run> buildSelectMasterTablesCommentRun(DataRuntime runtime, MasterTable<T> query, int types) throws Exception master[命令合成]
查询表备注- 指定者:
buildSelectMasterTablesCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception- Exception
-
masters
public <T extends MasterTable<T>> LinkedHashMap<String,T> masters(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, MasterTable<T> query, DataSet<DataRow> set) throws Exceptionmaster[结果集封装]
根据查询结果集构造MasterTable- 指定者:
masters在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- masters
- 抛出:
Exception- 异常
-
masters
public <T extends MasterTable<T>> List<T> masters(DataRuntime runtime, int index, boolean create, List<T> previous, MasterTable<T> query, DataSet<DataRow> set) throws Exception master[结果集封装]
根据查询结果集构造MasterTable- 指定者:
masters在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- masters
- 抛出:
Exception- 异常
-
masters
public <T extends MasterTable<T>> LinkedHashMap<String,T> masters(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, MasterTable<T> query, int types) throws Exceptionmaster[结果集封装]
根据驱动内置方法补充- 指定者:
masters在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- masters
- 抛出:
Exception- 异常
-
masters
public <T extends MasterTable<T>> List<T> masters(DataRuntime runtime, boolean create, List<T> previous, MasterTable<T> query, int types) throws Exception master[结果集封装]
根据驱动内置方法补充- 指定者:
masters在接口中DriverAdapter- 类型参数:
T- MasterTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- masters
- 抛出:
Exception- 异常
-
init
public <T extends MasterTable<T>> T init(DataRuntime runtime, int index, T meta, MasterTable<T> query, DataRow row) master[结果集封装]
根据查询结果封装MasterTable对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- MasterTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- MasterTable
-
detail
public <T extends MasterTable<T>> T detail(DataRuntime runtime, int index, T meta, MasterTable<T> query, DataRow row) master[结果集封装]
根据查询结果封装MasterTable对象,更多属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- MasterTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- MasterTable
-
ddl
master[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- 表init- 是否还原初始状态 如自增状态- 返回:
- List
-
buildSelectDdlRun
master[命令合成]
查询表DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端master- 表- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, MasterTable master, List<String> ddls, DataSet<DataRow> set) master[结果集封装]
查询表DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序master- 表set- sql执行的结果集- 返回:
- List
-
partition
表分区方式及分片- 指定者:
partition在接口中DriverAdapter- 参数:
table- 主表- 返回:
- Partition
-
buildSelectTablePartitionRun
partition table[命令合成]
查询表分区方式及分片- 指定者:
buildSelectTablePartitionRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表- 返回:
- String
-
partition
public Table.Partition partition(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataSet<DataRow> set) throws Exception partition table[结果集封装]
根据查询结果集构造Table- 指定者:
partition在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果table- 表set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
init
public Table.Partition init(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataRow row) throws Exception partition table[结果集封装]
根据查询结果集构造Table.Partition- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果table- 表row- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
detail
public Table.Partition detail(DataRuntime runtime, int index, boolean create, Table.Partition meta, Table table, DataRow row) throws Exception partition table[结果集封装]
根据查询结果集构造Table.Partition- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建meta- 上一步查询结果table- 表row- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
initTablePartitionFieldRefer
partition table[结果集封装]
Table.Partition 属性与结果集对应关系- 指定者:
initTablePartitionFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
initTablePartitionSliceFieldRefer
partition table[结果集封装]
Table.Partition.Slice 属性与结果集对应关系- 指定者:
initTablePartitionSliceFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
partitions
public <T extends PartitionTable<T>> LinkedHashMap<String,T> partitions(DataRuntime runtime, String random, boolean greedy, PartitionTable<T> query) partition table[调用入口]
查询主表- 指定者:
partitions在接口中DriverAdapter- 类型参数:
T- MasterTable- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:查询权限范围内尽可能多的数据 false:只查当前catalog/schema/database范围内数据query- 查询条件 根据metadata属性- 返回:
- List
-
buildSelectPartitionTablesRun
public <T extends PartitionTable<T>> List<Run> buildSelectPartitionTablesRun(DataRuntime runtime, boolean greedy, PartitionTable<T> query, int types) throws Exception partition table[命令合成]
查询分区表- 指定者:
buildSelectPartitionTablesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性types- 查询的类型 参考 Table.TYPE 多个类型相加算出总和- 返回:
- String
- 抛出:
Exception
-
initPartitionTableFieldRefer
partition table[结果集封装]
PartitionTable 属性与结果集对应关系- 指定者:
initPartitionTableFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
partitions
public <T extends PartitionTable<T>> LinkedHashMap<String,T> partitions(DataRuntime runtime, int total, int index, boolean create, LinkedHashMap<String, T> previous, PartitionTable<T> query, DataSet<DataRow> set) throws Exceptionpartition table[结果集封装]
根据查询结果集构造Table- 指定者:
partitions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端total- 合计SQL数量index- 第几条SQL 对照 buildSelectMasterTablesRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- tables
- 抛出:
Exception- 异常
-
partitions
public <T extends PartitionTable<T>> LinkedHashMap<String,T> partitions(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, PartitionTable<T> query) throws Exceptionpartition table[结果集封装]
根据驱动内置接口- 指定者:
partitions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果- 返回:
- tables
- 抛出:
Exception- 异常
-
ddl
partition table[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- PartitionTable- 返回:
- List
-
buildSelectDdlRun
partition table[命令合成]
查询 PartitionTable DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- PartitionTable- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, PartitionTable table, List<String> ddls, DataSet<DataRow> set) partition table[结果集封装]
查询 MasterTable DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序table- MasterTableset- sql执行的结果集- 返回:
- List
-
init
public <T extends PartitionTable<T>> T init(DataRuntime runtime, int index, T meta, PartitionTable<T> query, DataRow row) partition table[结果集封装]
根据查询结果封装PartitionTable对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- PartitionTable
-
detail
public <T extends PartitionTable<T>> T detail(DataRuntime runtime, int index, T meta, PartitionTable<T> query, DataRow row) partition table[结果集封装]
根据查询结果封装PartitionTable对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- PartitionTable
-
columns
public <T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, String random, boolean greedy, Table table, Column query, boolean primary, ConfigStore configs) column[调用入口]
查询表结构(多方法合成)- 指定者:
columns在接口中DriverAdapter- 类型参数:
T- Column- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询table- 表primary- 是否检测主键query- 查询条件 根据metadata属性- 返回:
- Column
-
columns
public <T extends Column> List<T> columns(DataRuntime runtime, String random, boolean greedy, Collection<? extends Table> tables, Column query, ConfigStore configs) column[调用入口]
(方法1)
查询多个表列,并分配到每个表中,需要保持所有表的catalog,schema相同- 指定者:
columns在接口中DriverAdapter- 类型参数:
T- Column- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性tables- 表- 返回:
- List
-
buildSelectColumnsRun
public List<Run> buildSelectColumnsRun(DataRuntime runtime, boolean metadata, Column query, ConfigStore configs) throws Exception column[命令合成]
查询表上的列- 指定者:
buildSelectColumnsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性metadata- 是否根据metadata(true:SELECT * FROM T WHERE 1=0,false:查询系统表)- 返回:
- runs
- 抛出:
Exception
-
buildSelectColumnsRun
public List<Run> buildSelectColumnsRun(DataRuntime runtime, boolean metadata, Collection<? extends Table> tables, Column query, ConfigStore configs) throws Exception column[命令合成]
(方法1)
查询多个表的列- 指定者:
buildSelectColumnsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性tables- 表metadata- 是否根据metadata(true:SELECT * FROM T WHERE 1=0,false:查询系统表)- 返回:
- runs
- 抛出:
Exception
-
initColumnFieldRefer
Column[结果集封装]
Column 属性与结果集对应关系- 指定者:
initColumnFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
initViewColumnFieldRefer
Column[结果集封装]
Column 属性与结果集对应关系- 指定者:
initViewColumnFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
initDataTypeFieldRefer
Column[结果集封装]
数据类型 属性与结果集对应关系- 指定者:
initDataTypeFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
columns
public <T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Table table, Column query, DataSet<DataRow> set) throws Exceptioncolumn[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Column- 指定者:
columns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectColumnsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建table- 表previous- 上一步查询结果set- 系统表查询SQL结果集- 返回:
- columns
- 抛出:
Exception- 异常
-
columns
public <T extends Column> List<T> columns(DataRuntime runtime, int index, boolean create, List<T> previous, Column query, DataSet<DataRow> set) throws Exception column[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Column- 指定者:
columns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectColumnsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 系统表查询SQL结果集- 返回:
- columns
- 抛出:
Exception- 异常
-
columns
public <T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Column query) throws Exceptioncolumn[结果集封装]
解析JDBC get columns结果- 指定者:
columns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性- 返回:
- previous 上一步查询结果
- 抛出:
Exception- 异常
-
columns
public <T extends Column> List<T> columns(DataRuntime runtime, int index, boolean create, List<T> previous, Collection<? extends Table> tables, Column query, DataSet<DataRow> set) throws Exception column[结果集封装]
(方法1)
根据系统表查询SQL获取表结构 根据查询结果集构造Column,并分配到各自的表中- 指定者:
columns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectColumnsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建tables- 表previous- 上一步查询结果set- 系统表查询SQL结果集- 返回:
- columns
- 抛出:
Exception- 异常
-
init
column[结果集封装]
(方法1)- 指定者:
init在接口中DriverAdapter- 类型参数:
T- Column- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 系统表查询SQL结果集
-
detail
public <T extends Column> T detail(DataRuntime runtime, int index, T meta, Column query, DataRow row) column[结果集封装]
(方法1)
列详细属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- Column- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 系统表查询SQL结果集- 返回:
- Column
-
columnFieldLengthRefer
column[结果集封装]
(方法1)
元数据数字有效位数列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnFieldLengthRefer在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
columnFieldPrecisionRefer
column[结果集封装]
(方法1)
元数据长度列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnFieldPrecisionRefer在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
columnFieldScaleRefer
column[结果集封装]
(方法1)
元数据数字有效位数列
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnFieldScaleRefer在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
columnMetadataIgnoreLength
column[结果集封装]
(方法1)
是否忽略长度
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnMetadataIgnoreLength在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
columnMetadataIgnorePrecision
column[结果集封装]
(方法1)
是否忽略有效位数
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnMetadataIgnorePrecision在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
columnMetadataIgnoreScale
column[结果集封装]
(方法1)
是否忽略小数位
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
columnMetadataIgnoreScale在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- TypeMetadata- 返回:
- String
-
tags
public <T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, String random, boolean greedy, Table table, Tag query) tag[调用入口]
查询表结构- 指定者:
tags在接口中DriverAdapter- 类型参数:
T- Tag- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询table- 表query- 查询条件 根据metadata属性- 返回:
- Tag
-
buildSelectTagsRun
public List<Run> buildSelectTagsRun(DataRuntime runtime, boolean greedy, Tag query) throws Exception tag[命令合成]
查询表上的列- 指定者:
buildSelectTagsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
- 抛出:
Exception
-
initTagFieldRefer
tag[结果集封装]
tag 属性与结果集对应关系- 指定者:
initTagFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
tags
public <T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Tag query, DataSet<DataRow> set) throws Exceptiontag[结果集封装]
根据查询结果集构造Tag- 指定者:
tags在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectTagsRun返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- tags
- 抛出:
Exception- 异常
-
tags
public <T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, boolean create, LinkedHashMap<String, T> tags, Tag query) throws Exceptiontag[结果集封装]
解析JDBC get columns结果- 指定者:
tags在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性- 返回:
- tags
- 抛出:
Exception- 异常
-
init
tag[结果集封装]
列基础属性- 指定者:
init在接口中DriverAdapter- 类型参数:
T- Tag- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果table- 表row- 系统表查询SQL结果集- 返回:
- Tag
-
detail
public <T extends Tag> T detail(DataRuntime runtime, int index, T meta, Catalog catalog, Schema schema, DataRow row) tag[结果集封装]
列详细属性- 指定者:
detail在接口中DriverAdapter- 类型参数:
T- Tag- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 系统表查询SQL结果集- 返回:
- Tag
-
primary
primary[调用入口]
查询主键- 指定者:
primary在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- PrimaryKey
-
buildSelectPrimaryRun
public List<Run> buildSelectPrimaryRun(DataRuntime runtime, boolean greedy, PrimaryKey query) throws Exception primary[命令合成]
查询表上的主键- 指定者:
buildSelectPrimaryRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
- 抛出:
Exception
-
initPrimaryKeyFieldRefer
primary[结果集封装]
PrimaryKey 属性与结果集对应关系- 指定者:
initPrimaryKeyFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
init
public <T extends PrimaryKey> T init(DataRuntime runtime, int index, T meta, PrimaryKey query, DataSet<DataRow> set) throws Exception primary[结构集封装]
根据查询结果集构造PrimaryKey基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性set- sql查询结果index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果- 抛出:
Exception- 异常
-
detail
public <T extends PrimaryKey> T detail(DataRuntime runtime, int index, T meta, PrimaryKey query, DataSet<DataRow> set) throws Exception primary[结构集封装]
根据查询结果集构造PrimaryKey更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性set- sql查询结果index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果- 抛出:
Exception- 异常
-
primary
primary[结构集封装]
根据驱动内置接口补充PrimaryKey- 指定者:
primary在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 抛出:
Exception- 异常
-
foreigns
public <T extends ForeignKey> LinkedHashMap<String,T> foreigns(DataRuntime runtime, String random, boolean greedy, ForeignKey query) foreign[调用入口]
查询外键- 指定者:
foreigns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- PrimaryKey
-
buildSelectForeignsRun
public List<Run> buildSelectForeignsRun(DataRuntime runtime, boolean greedy, ForeignKey query) throws Exception foreign[命令合成]
查询表上的外键- 指定者:
buildSelectForeignsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
- 抛出:
Exception
-
initForeignKeyFieldRefer
foreign[结果集封装]
ForeignKey 属性与结果集对应关系- 指定者:
initForeignKeyFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
foreigns
public <T extends ForeignKey> LinkedHashMap<String,T> foreigns(DataRuntime runtime, int index, LinkedHashMap<String, T> previous, ForeignKey query, DataSet<DataRow> set) throws Exceptionforeign[结构集封装]
根据查询结果集构造PrimaryKey- 指定者:
foreigns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectForeignsRun 返回顺序query- 查询条件 根据metadata属性previous- 上一步查询结果set- sql查询结果- 抛出:
Exception- 异常
-
init
public <T extends ForeignKey> T init(DataRuntime runtime, int index, T meta, ForeignKey query, DataRow row) throws Exception foreign[结构集封装]
根据查询结果集构造ForeignKey基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果query- 查询条件 根据metadata属性row- sql查询结果- 抛出:
Exception- 异常
-
detail
public <T extends ForeignKey> T detail(DataRuntime runtime, int index, T meta, ForeignKey query, DataRow row) throws Exception foreign[结构集封装]
根据查询结果集构造ForeignKey更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果query- 查询条件 根据metadata属性row- sql查询结果- 抛出:
Exception- 异常
-
indexes
public <T extends Index> List<T> indexes(DataRuntime runtime, String random, boolean greedy, Collection<? extends Table> tables, Index query) index[调用入口]- 指定者:
indexes在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询tables- 表- 返回:
- LinkedHashMap
-
indexes
public <T extends Index> List<T> indexes(DataRuntime runtime, String random, boolean greedy, Index query) index[调用入口]- 指定者:
indexes在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
indexes
public <T extends Index> LinkedHashMap<String,T> indexes(DataRuntime runtime, String random, Index query) index[调用入口]- 指定者:
indexes在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectIndexesRun
index[命令合成]
查询表上的索引- 指定者:
buildSelectIndexesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
buildSelectIndexesRun
public List<Run> buildSelectIndexesRun(DataRuntime runtime, boolean greedy, Collection<? extends Table> tables) index[命令合成]
查询表上的索引- 指定者:
buildSelectIndexesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端tables- 表- 返回:
- runs
-
initIndexFieldRefer
Index[结果集封装]
Index 属性与结果集对应关系- 指定者:
initIndexFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
indexes
public <T extends Index> LinkedHashMap<String,T> indexes(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Index query, DataSet<DataRow> set) throws Exceptionindex[结果集封装]
根据查询结果集构造Index- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- indexes indexes
- 抛出:
Exception- 异常
-
indexes
public <T extends Index> List<T> indexes(DataRuntime runtime, int index, boolean create, List<T> previous, Index query, DataSet<DataRow> set) throws Exception index[结果集封装]
根据查询结果集构造Index- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- indexes indexes
- 抛出:
Exception- 异常
-
indexes
public <T extends Index> List<T> indexes(DataRuntime runtime, int index, boolean create, Collection<? extends Table> tables, List<T> previous, Index query, DataSet<DataRow> set) throws Exception index[结果集封装]
根据查询结果集构造Index- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建tables- 表previous- 上一步查询结果set- 查询结果集- 返回:
- indexes indexes
- 抛出:
Exception- 异常
-
indexes
public <T extends Index> List<T> indexes(DataRuntime runtime, boolean create, List<T> indexes, Index query) throws Exception index[结果集封装]
根据驱动内置接口- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性- 返回:
- indexes indexes
- 抛出:
Exception- 异常
-
indexes
public <T extends Index> LinkedHashMap<String,T> indexes(DataRuntime runtime, boolean create, LinkedHashMap<String, T> indexes, Index query) throws Exceptionindex[结果集封装]
根据驱动内置接口- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性- 返回:
- indexes indexes
- 抛出:
Exception- 异常
-
init
public <T extends Index> T init(DataRuntime runtime, int index, T meta, Index query, DataRow row) throws Exception index[结构集封装]
根据查询结果集构造index基础属性(name,table,schema,catalog)- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果query- 查询条件 根据metadata属性row- sql查询结果- 抛出:
Exception- 异常
-
detail
public <T extends Index> T detail(DataRuntime runtime, int index, T meta, Index query, DataRow row) throws Exception index[结构集封装]
根据查询结果集构造index更多属性(column,order, position)- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectIndexesRun 返回顺序meta- 上一步封装结果query- 查询条件 根据metadata属性row- sql查询结果- 抛出:
Exception- 异常
-
constraints
public <T extends Constraint> List<T> constraints(DataRuntime runtime, String random, boolean greedy, Constraint query) constraint[调用入口]- 指定者:
constraints在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
constraints
public <T extends Constraint> LinkedHashMap<String,T> constraints(DataRuntime runtime, String random, Constraint query) constraint[调用入口]- 指定者:
constraints在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectConstraintsRun
constraint[命令合成]
查询表上的约束- 指定者:
buildSelectConstraintsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
initConstraintFieldRefer
constraint[结果集封装]
Constraint 属性与结果集对应关系- 指定者:
initConstraintFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
constraints
public <T extends Constraint> List<T> constraints(DataRuntime runtime, int index, boolean create, List<T> previous, Constraint query, DataSet<DataRow> set) throws Exception constraint[结果集封装]
根据查询结果集构造Constraint- 指定者:
constraints在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- DataSet- 返回:
- constraints constraints
- 抛出:
Exception- 异常
-
constraints
public <T extends Constraint> LinkedHashMap<String,T> constraints(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Constraint query, DataSet<DataRow> set) throws Exceptionconstraint[结果集封装]
根据查询结果集构造Constraint- 指定者:
constraints在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- DataSet- 返回:
- constraints constraints
- 抛出:
Exception- 异常
-
init
public <T extends Constraint> T init(DataRuntime runtime, int index, T meta, Constraint query, DataRow row) catalog[结果集封装]
根据查询结果封装Constraint对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Constraint
-
detail
public <T extends Constraint> T detail(DataRuntime runtime, int index, T meta, Constraint query, DataRow row) catalog[结果集封装]
根据查询结果封装Constraint对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Constraint
-
triggers
public <T extends Trigger> LinkedHashMap<String,T> triggers(DataRuntime runtime, String random, boolean greedy, Trigger query) trigger[调用入口]- 指定者:
triggers在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectTriggersRun
trigger[命令合成]
查询表上的 Trigger- 指定者:
buildSelectTriggersRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
initTriggerFieldRefer
trigger[结果集封装]
trigger 属性与结果集对应关系- 指定者:
initTriggerFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
triggers
public <T extends Trigger> LinkedHashMap<String,T> triggers(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Trigger query, DataSet<DataRow> set) throws Exceptiontrigger[结果集封装]
根据查询结果集构造 Trigger- 指定者:
triggers在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
init
public <T extends Trigger> T init(DataRuntime runtime, int index, T meta, Trigger query, DataRow row) trigger[结果集封装]
根据查询结果封装trigger对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Trigger
-
detail
public <T extends Trigger> T detail(DataRuntime runtime, int index, T meta, Trigger query, DataRow row) trigger[结果集封装]
根据查询结果封装trigger对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Trigger
-
procedures
public <T extends Procedure> List<T> procedures(DataRuntime runtime, String random, boolean greedy, Procedure query) procedure[调用入口]- 指定者:
procedures在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
procedures
public <T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, String random, Procedure query) procedure[调用入口]- 指定者:
procedures在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectProceduresRun
procedure[命令合成]
查询表上的 Trigger- 指定者:
buildSelectProceduresRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
buildSelectParametersRun
public List<Run> buildSelectParametersRun(DataRuntime runtime, Procedure procedure) throws Exception procedure[命令合成]
查询存储参数- 指定者:
buildSelectParametersRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端procedure- 存储过程- 返回:
- List
- 抛出:
Exception
-
initProcedureFieldRefer
procedure[结果集封装]
Procedure 属性与结果集对应关系- 指定者:
initProcedureFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
initProcedureParameterFieldRefer
procedure[结果集封装]
Procedure 属性与结果集对应关系- 指定者:
initProcedureParameterFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
procedures
public <T extends Procedure> List<T> procedures(DataRuntime runtime, int index, boolean create, List<T> previous, Procedure query, DataSet<DataRow> set) throws Exception procedure[结果集封装]
根据查询结果集构造 Trigger- 指定者:
procedures在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
procedures
public <T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Procedure query, DataSet<DataRow> set) throws Exceptionprocedure[结果集封装]
根据查询结果集构造 Trigger- 指定者:
procedures在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
procedures
public <T extends Procedure> List<T> procedures(DataRuntime runtime, boolean create, List<T> previous, Procedure query) throws Exception procedure[结果集封装]
根据驱动内置接口补充 Procedure- 指定者:
procedures在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- List
- 抛出:
Exception- 异常
-
procedures
public <T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Procedure query) throws Exceptionprocedure[结果集封装]
根据驱动内置接口补充 Procedure- 指定者:
procedures在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
procedure
public <T extends Procedure> T procedure(DataRuntime runtime, String random, boolean greedy, Procedure query) throws Exception procedure[调用入口]- 指定者:
procedure在接口中DriverAdapter- 类型参数:
T- Procedure- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
parameters
public <T extends Parameter> LinkedHashMap<String,T> parameters(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Procedure procedure, DataSet<DataRow> set) throws Exceptionprocedure[结果集封装]
根据查询结果集构造 存储过程参数- 指定者:
parameters在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果procedure- 存储过程set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
ddl
procedure[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令procedure- Procedure- 返回:
- ddl
-
buildSelectDdlRun
procedure[命令合成]
查询存储DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端procedure- 存储过程- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, Procedure procedure, List<String> ddls, DataSet<DataRow> set) procedure[结果集封装]
查询 Procedure DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序procedure- Procedureset- 查询结果集- 返回:
- List
-
init
public <T extends Procedure> T init(DataRuntime runtime, int index, T meta, Procedure query, DataRow row) procedure[结果集封装]
根据查询结果封装procedure对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Procedure
-
detail
public <T extends Procedure> T detail(DataRuntime runtime, int index, T meta, Procedure query, DataRow row) procedure[结果集封装]
根据查询结果封装procedure对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Procedure
-
init
public <T extends Parameter> T init(DataRuntime runtime, int index, T meta, Procedure procedure, DataRow row) procedure[结果集封装]
根据查询结果封装存储过程参数,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果procedure- 存储过程row- 查询结果集- 返回:
- Procedure
-
detail
public <T extends Parameter> T detail(DataRuntime runtime, int index, T meta, Procedure procedure, DataRow row) procedure[结果集封装]
根据查询结果封装存储过程参数,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果procedure- 存储过程row- 查询结果集- 返回:
- Procedure
-
functions
public <T extends Function> List<T> functions(DataRuntime runtime, String random, boolean greedy, Function query) function[调用入口]- 指定者:
functions在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
functions
public <T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, String random, Function query) function[调用入口]- 指定者:
functions在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectFunctionsRun
function[命令合成]
查询表上的 Function- 指定者:
buildSelectFunctionsRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
initFunctionFieldRefer
Function[结果集封装]
Function 属性与结果集对应关系- 指定者:
initFunctionFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
functions
public <T extends Function> List<T> functions(DataRuntime runtime, int index, boolean create, List<T> previous, Function query, DataSet<DataRow> set) throws Exception function[结果集封装]
根据查询结果集构造 Function- 指定者:
functions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
functions
public <T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Function query, DataSet<DataRow> set) throws Exceptionfunction[结果集封装]
根据查询结果集构造 Function- 指定者:
functions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
functions
public <T extends Function> List<T> functions(DataRuntime runtime, boolean create, List<T> previous, Function query) throws Exception function[结果集封装]
根据驱动内置接口补充 Function- 指定者:
functions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
functions
public <T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Function query) throws Exceptionfunction[结果集封装]
根据驱动内置接口补充 Function- 指定者:
functions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
ddl
function[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- Function- 返回:
- ddl
-
buildSelectDdlRun
function[命令合成]
查询函数DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, Function function, List<String> ddls, DataSet<DataRow> set) function[结果集封装]
查询 Function DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序function- Functionset- 查询结果集- 返回:
- List
-
init
public <T extends Function> T init(DataRuntime runtime, int index, T meta, Function query, DataRow row) function[结果集封装]
根据查询结果封装function对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Function
-
detail
public <T extends Function> T detail(DataRuntime runtime, int index, T meta, Function query, DataRow row) function[结果集封装]
根据查询结果封装function对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Function
-
sequences
public <T extends Sequence> List<T> sequences(DataRuntime runtime, String random, boolean greedy, Sequence query) sequence[调用入口]- 指定者:
sequences在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令greedy- 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
sequences
public <T extends Sequence> LinkedHashMap<String,T> sequences(DataRuntime runtime, String random, Sequence query) sequence[调用入口]- 指定者:
sequences在接口中DriverAdapter- 类型参数:
T- Index- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令query- 查询条件 根据metadata属性- 返回:
- LinkedHashMap
-
buildSelectSequencesRun
sequence[命令合成]
查询表上的 Sequence- 指定者:
buildSelectSequencesRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端query- 查询条件 根据metadata属性- 返回:
- runs
-
initSequenceFieldRefer
sequence[结果集封装]
Sequence 属性与结果集对应关系- 指定者:
initSequenceFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
sequences
public <T extends Sequence> List<T> sequences(DataRuntime runtime, int index, boolean create, List<T> previous, Sequence query, DataSet<DataRow> set) throws Exception sequence[结果集封装]
根据查询结果集构造 Sequence- 指定者:
sequences在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
sequences
public <T extends Sequence> LinkedHashMap<String,T> sequences(DataRuntime runtime, int index, boolean create, LinkedHashMap<String, T> previous, Sequence query, DataSet<DataRow> set) throws Exceptionsequence[结果集封装]
根据查询结果集构造 Sequence- 指定者:
sequences在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果set- 查询结果集- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
sequences
public <T extends Sequence> List<T> sequences(DataRuntime runtime, boolean create, List<T> previous, Sequence query) throws Exception sequence[结果集封装]
根据驱动内置接口补充 Sequence- 指定者:
sequences在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
sequences
public <T extends Sequence> LinkedHashMap<String,T> sequences(DataRuntime runtime, boolean create, LinkedHashMap<String, T> previous, Sequence query) throws Exceptionsequence[结果集封装]
根据驱动内置接口补充 Sequence- 指定者:
sequences在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端create- 上一步没有查到的,这一步是否需要新创建previous- 上一步查询结果- 返回:
- LinkedHashMap
- 抛出:
Exception- 异常
-
ddl
sequence[调用入口]- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- Sequence- 返回:
- ddl
-
buildSelectDdlRun
sequence[命令合成]
查询序列DDL- 指定者:
buildSelectDdlRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- List
- 抛出:
Exception
-
ddl
public List<String> ddl(DataRuntime runtime, int index, Sequence sequence, List<String> ddls, DataSet<DataRow> set) sequence[结果集封装]
查询 Sequence DDL- 指定者:
ddl在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条SQL 对照 buildSelectDdlRun 返回顺序sequence- Sequenceset- 查询结果集- 返回:
- List
-
init
public <T extends Sequence> T init(DataRuntime runtime, int index, T meta, Sequence query, DataRow row) sequence[结果集封装]
根据查询结果封装sequence对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Sequence
-
detail
public <T extends Sequence> T detail(DataRuntime runtime, int index, T meta, Sequence query, DataRow row) sequence[结果集封装]
根据查询结果封装sequence对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Sequence
-
schema
根据 catalog, name检测schemas集合中是否存在- 类型参数:
T- Table- 参数:
schemas- schemascatalog- 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;name- name- 返回:
- 如果存在则返回 Schema 不存在则返回null
-
catalog
根据 name检测catalogs集合中是否存在- 类型参数:
T- Table- 参数:
catalogs- catalogsname- name- 返回:
- 如果存在则返回 Catalog 不存在则返回null
-
database
根据 name检测databases集合中是否存在- 类型参数:
T- Table- 参数:
databases- databasesname- name- 返回:
- 如果存在则返回 Database 不存在则返回null
-
execute
public boolean execute(DataRuntime runtime, String random, Metadata meta, ACTION.DDL action, Run run) ddl [执行命令]- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- Metadata(表,列等)action- 执行命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- boolean
-
execute
public boolean execute(DataRuntime runtime, String random, Metadata meta, ACTION.DDL action, List<Run> runs) 执行命令- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- Metadata(表,列等)action- 执行命令runs- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- boolean
-
parse
public <T extends Metadata> T parse(DataRuntime runtime, Class<T> type, String ddl, ConfigStore configs) 解析DDL- 指定者:
parse在接口中DriverAdapter- 类型参数:
T- T- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端type- Metadata类型ddl- ddlconfigs- 其他配置- 返回:
- T
-
create
catalog[调用入口]
创建Catalog,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
catalog[调用入口]
修改Catalog,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
catalog[调用入口]
删除Catalog,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
catalog[调用入口]
重命名Catalog,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原Catalogname- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
catalog[命令合成]
创建Catalog
其中1.x三选一 不要重复- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
catalog[命令合成]
修改Catalog- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
catalog[命令合成]
重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
catalog[命令合成]
删除Catalog- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
catalog[命令合成-子流程]
创建Catalog完成后追加Catalog备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Catalog meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendColumnCommentRun
catalog[命令合成-子流程]
创建Catalog完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现- 指定者:
buildAppendColumnCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
catalog[命令合成-子流程]
修改备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端catalog- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAddCommentRun
catalog[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)- 指定者:
buildAddCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端catalog- Catalog- 返回:
- sql
- 抛出:
Exception- 异常
-
checkCatalogExists
catalog[命令合成-子流程]
创建或删除Catalog之前 检测Catalog是否存在 IF NOT EXISTS- 指定者:
checkCatalogExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
engine
catalog[命令合成-子流程]
创建Catalog engine- 指定者:
engine在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Catalog- 返回:
- StringBuilder
-
charset
catalog[命令合成-子流程]
编码- 指定者:
charset在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Catalog- 返回:
- StringBuilder
-
comment
catalog[命令合成-子流程]
Catalog备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Catalog- 返回:
- StringBuilder
-
property
catalog[命令合成-子流程]
扩展属性- 指定者:
property在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Catalog- 返回:
- StringBuilder
-
create
schema[调用入口]
创建Schema,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
schema[调用入口]
修改Schema,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
schema[调用入口]
删除Schema,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
schema[调用入口]
重命名Schema,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原Schemaname- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
schema[命令合成]
创建Schema
其中1.x三选一 不要重复- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
schema[命令合成]
修改Schema- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
schema[命令合成]
重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
schema[命令合成]
删除Schema- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
schema[命令合成-子流程]
创建Schema完成后追加Schema备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Schema meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendColumnCommentRun
schema[命令合成-子流程]
创建Schema完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现- 指定者:
buildAppendColumnCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
schema[命令合成-子流程]
修改备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端schema- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAddCommentRun
schema[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)- 指定者:
buildAddCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端schema- Schema- 返回:
- sql
- 抛出:
Exception- 异常
-
checkSchemaExists
schema[命令合成-子流程]
创建或删除Schema之前 检测Schema是否存在 IF NOT EXISTS- 指定者:
checkSchemaExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
engine
schema[命令合成-子流程]
创建Schema engine- 指定者:
engine在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Schema- 返回:
- StringBuilder
-
charset
schema[命令合成-子流程]
编码- 指定者:
charset在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Schema- 返回:
- StringBuilder
-
comment
schema[命令合成-子流程]
Schema备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Schema- 返回:
- StringBuilder
-
property
schema[命令合成-子流程]
扩展属性- 指定者:
property在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Schema- 返回:
- StringBuilder
-
create
database[调用入口]
创建Database,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
database[调用入口]
修改Database,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
database[调用入口]
删除Database,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
database[调用入口]
重命名Database,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原Databasename- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
database[命令合成]
创建Database
其中1.x三选一 不要重复- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
database[命令合成]
修改Database- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
database[命令合成]
重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
database[命令合成]
删除Database- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
database[命令合成-子流程]
创建Database完成后追加Database备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Database meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendColumnCommentRun
database[命令合成-子流程]
创建Database完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现- 指定者:
buildAppendColumnCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
database[命令合成-子流程]
修改备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端database- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAddCommentRun
database[命令合成-子流程]
添加备注(部分数据库需要区分添加还是修改)- 指定者:
buildAddCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端database- Database- 返回:
- sql
- 抛出:
Exception- 异常
-
checkDatabaseExists
public StringBuilder checkDatabaseExists(DataRuntime runtime, StringBuilder builder, boolean exists) database[命令合成-子流程]
创建或删除Database之前 检测Database是否存在 IF NOT EXISTS- 指定者:
checkDatabaseExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
engine
database[命令合成-子流程]
创建Database engine- 指定者:
engine在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Database- 返回:
- StringBuilder
-
charset
database[命令合成-子流程]
编码- 指定者:
charset在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Database- 返回:
- StringBuilder
-
comment
database[命令合成-子流程]
Database备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Database- 返回:
- StringBuilder
-
property
database[命令合成-子流程]
扩展属性- 指定者:
property在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- Database- 返回:
- StringBuilder
-
create
table[调用入口]
创建表,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
checkTypeMetadata
-
checkColumnAction
检测列的执行命令,all drop alter等- 参数:
meta- 表- 返回:
- cols
-
checkAutoIncrement
protected List<Run> checkAutoIncrement(DataRuntime runtime, String random, Table table, boolean slice) throws Exception 修改主键前先 根据主键检测自增 如果数据库要求自增必须在主键上时才需要执行- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令table- 表- 返回:
- boolean
- 抛出:
Exception- 异常
-
merge
合关DDL片段- 指定者:
merge在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表slices- slices- 返回:
- list
-
alter
table[调用入口]
修改表,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
table[调用入口]
删除表,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
table[调用入口]
重命名表,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原表name- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
table[命令合成]
创建表
关于创建主键的几个环节
1.1.定义列时 标识 primary(DataRuntime runtime, StringBuilder builder, Column column)
1.2.定义表时 标识 primary(DataRuntime runtime, StringBuilder builder, Table table)
1.3.定义完表DDL后,单独创建 primary(DataRuntime runtime, PrimaryKey primary)根据三选一情况调用buildCreateRun
2.单独创建 buildCreateRun(DataRuntime runtime, PrimaryKey primary)
其中1.x三选一 不要重复- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- runs
- 抛出:
Exception
-
buildAlterRun
table[命令合成]
修改表 只生成修改表本身属性 不生成关于列及索引的- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
table[命令合成]
修改表 只生成修改表本身属性 不生成关于列及索引的- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 原表update- 新表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
public List<Run> buildAlterRun(DataRuntime runtime, Table meta, Collection<Column> columns, boolean slice) throws Exception table[命令合成]
修改列 有可能生成多条SQL,根据数据库类型优先合并成一条执行- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表columns- 列slice- 是否只生成片段(true:不含alter table部分,用于DDL合并)- 返回:
- List
- 抛出:
Exception
-
buildAlterPositions
统一更新列顺序- 指定者:
buildAlterPositions在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- List
-
buildRenameRun
table[命令合成]
重命名 子类实现- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
table[命令合成]
删除表- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
table[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendColumnCommentRun
table[命令合成-子流程]
创建表完成后追加列备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Column meta)二选一实现- 指定者:
buildAppendColumnCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
table[命令合成-子流程]
修改备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
checkTableExists
table[命令合成-子流程]
创建或删除表之前 检测表是否存在 IF NOT EXISTS- 指定者:
checkTableExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
checkPrimary
table[命令合成-子流程]
检测表主键(在没有显式设置主键时根据其他条件判断如自增),同时根据主键对象给相关列设置主键标识- 指定者:
checkPrimary在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表
-
primary
table[命令合成-子流程]
定义表的主键标识,在创建表的DDL结尾部分(注意不要跟列定义中的主键重复) primary(DataRuntime runtime, StringBuilder builder, Column meta)- 指定者:
primary在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
engine
table[命令合成-子流程]
创建表 engine- 指定者:
engine在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
body
table[命令合成-子流程]
创建表 body部分包含column index- 指定者:
body在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
columns
table[命令合成-子流程]
创建表 columns部分- 指定者:
columns在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildertable- 表- 返回:
- StringBuilder
-
indexes
table[命令合成-子流程]
创建表 索引部分,与buildAppendIndexRun二选一- 指定者:
indexes在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
charset
table[命令合成-子流程]
编码- 指定者:
charset在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
comment
table[命令合成-子流程]
备注 创建表的完整DDL拼接COMMENT部分,与buildAppendCommentRun二选一实现- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
keys
table[命令合成-子流程]
数据模型- 指定者:
keys在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
distribution
table[命令合成-子流程]
分桶方式- 指定者:
distribution在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
materialize
table[命令合成-子流程]
物化视图- 指定者:
materialize在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
property
table[命令合成-子流程]
扩展属性- 指定者:
property在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
option
从接口复制的说明:DriverAdaptertable[命令合成-子流程]
扩展属性- 指定者:
option在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
-
partitionBy
public StringBuilder partitionBy(DataRuntime runtime, StringBuilder builder, Table meta) throws Exception table[命令合成-子流程]
主表设置分区依据(根据哪几列分区)- 指定者:
partitionBy在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
partitionOf
public StringBuilder partitionOf(DataRuntime runtime, StringBuilder builder, Table meta) throws Exception table[命令合成-子流程]
子表执行分区依据(相关主表)
如CREATE TABLE hr_usr_fi PARTITION OF hr_usr FOR VALUES IN ('FI')- 指定者:
partitionOf在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
partitionFor
public StringBuilder partitionFor(DataRuntime runtime, StringBuilder builder, Table meta) throws Exception table[命令合成-子流程]
子表执行分区依据(分区依据值)如CREATE TABLE hr_usr_fi PARTITION OF hr_usr FOR VALUES IN ('FI')- 指定者:
partitionFor在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
inherit
public StringBuilder inherit(DataRuntime runtime, StringBuilder builder, Table meta) throws Exception table[命令合成-子流程]
继承自table.getInherit- 指定者:
inherit在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 表- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
create
view[调用入口]
创建视图,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
view[调用入口]
修改视图,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
view[调用入口]
删除视图,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
view[调用入口]
重命名视图,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 视图name- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
view[命令合成]
创建视图- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- Run
- 抛出:
Exception- 异常
-
buildCreateRunHead
public StringBuilder buildCreateRunHead(DataRuntime runtime, StringBuilder builder, View meta) throws Exception view[命令合成-子流程]
创建视图头部- 指定者:
buildCreateRunHead在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 视图- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
buildCreateRunOption
public StringBuilder buildCreateRunOption(DataRuntime runtime, StringBuilder builder, View meta) throws Exception view[命令合成-子流程]
创建视图选项- 指定者:
buildCreateRunOption在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 视图- 返回:
- StringBuilder
- 抛出:
Exception- 异常
-
buildAlterRun
view[命令合成]
修改视图- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
view[命令合成]
重命名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
view[命令合成]
删除视图- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
view[命令合成-子流程]
添加视图备注(视图创建完成后调用,创建过程能添加备注的不需要实现)- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
view[命令合成-子流程]
修改备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 视图- 返回:
- sql
- 抛出:
Exception- 异常
-
checkViewExists
view[命令合成-子流程]
创建或删除视图之前 检测视图是否存在 IF NOT EXISTS- 指定者:
checkViewExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
comment
view[命令合成-子流程]
视图备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 视图- 返回:
- StringBuilder
-
create
master table[调用入口]
创建主表,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
master table[调用入口]
修改主表,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
master table[调用入口]
删除主表,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
master table[调用入口]
重命名主表,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原表name- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
master table[命令合成]
创建主表- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
master table[命令合成]
删除主表- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
master table[命令合成-子流程]
修改主表- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
master table[命令合成-子流程]
主表重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
master table[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
master table[命令合成-子流程]
修改主表备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
create
partition table[调用入口]
创建分区表,执行的命令通过meta.ddls()返回- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
partition table[调用入口]
修改分区表,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
partition table[调用入口]
删除分区表,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
partition table[调用入口]
创建分区表,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原表name- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildCreateRun
partition table[命令合成]
创建分区表- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAppendCommentRun
partition table[命令合成]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildAlterRun
partition table[命令合成]
修改分区表- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropRun
partition table[命令合成-]
删除分区表- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildRenameRun
partition table[命令合成]
分区表重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
buildChangeCommentRun
partition table[命令合成-子流程]
修改分区表备注- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- sql
- 抛出:
Exception- 异常
-
add
column[调用入口]
添加列,执行的命令通过meta.ddls()返回- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
public boolean alter(DataRuntime runtime, Table table, Column meta, boolean trigger) throws Exception column[调用入口]
修改列,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列trigger- 修改异常时,是否触发监听器- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
alter
column[调用入口]
修改列,执行的命令通过meta.ddls()返回- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
drop
column[调用入口]
删除列,执行的命令通过meta.ddls()返回- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
rename
column[调用入口]
重命名列,执行的命令通过meta.ddls()返回- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 列name- 新名称- 返回:
- boolean 是否执行成功
- 抛出:
Exception- DDL异常
-
buildAddRun
column[命令合成]
添加列- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
column[命令合成]
修改列 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- List
- 抛出:
Exception
-
buildDropRun
column[命令合成]
删除列- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
column[命令合成]
修改列名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- String
- 抛出:
Exception
-
buildChangeTypeRun
public List<Run> buildChangeTypeRun(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
修改数据类型 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeTypeRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- String
- 抛出:
Exception
-
alterColumnKeyword
column[命令合成-子流程]
修改表的关键字- 指定者:
alterColumnKeyword在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- String
-
addColumnGuide
column[命令合成-子流程]
添加列引导
alter table sso_user [add column] type_code int- 指定者:
addColumnGuide在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- StringBuildermeta- 列- 返回:
- String
-
addColumnClose
- 指定者:
addColumnClose在接口中DriverAdapter
-
dropColumnGuide
column[命令合成-子流程]
删除列引导
alter table sso_user [drop column] type_code- 指定者:
dropColumnGuide在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- StringBuildermeta- 列- 返回:
- String
-
buildChangeDefaultRun
public List<Run> buildChangeDefaultRun(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
修改默认值 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeDefaultRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- String
- 抛出:
Exception
-
buildChangeNullableRun
public List<Run> buildChangeNullableRun(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
修改非空限制 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeNullableRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- String
- 抛出:
Exception
-
buildChangeCommentRun
public List<Run> buildChangeCommentRun(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
修改备注 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列- 返回:
- String
- 抛出:
Exception
-
buildAppendCommentRun
public List<Run> buildAppendCommentRun(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
创建表完成后追加表备注,创建过程能添加备注的不需要实现与comment(DataRuntime runtime, StringBuilder builder, Table meta)二选一实现- 指定者:
buildAppendCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- sql
- 抛出:
Exception- 异常
-
buildDropAutoIncrement
public List<Run> buildDropAutoIncrement(DataRuntime runtime, Column meta, boolean slice) throws Exception column[命令合成-子流程]
取消自增- 指定者:
buildDropAutoIncrement在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 列slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- sql
- 抛出:
Exception- 异常
-
define
public StringBuilder define(DataRuntime runtime, StringBuilder builder, Column meta, ACTION.DDL action) column[命令合成-子流程]
定义列,依次拼接下面几个属性注意不同数据库可能顺序不一样- 指定者:
define在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列action- 区分 创建与修改过程有区别 如有些数据库修改时不支持NULL NOT NULL(如clickhouse)- 返回:
- StringBuilder
-
checkColumnExists
column[命令合成-子流程]
列定义:创建或删除列之前 检测表是否存在 IF NOT EXISTS- 指定者:
checkColumnExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
type
column[命令合成-子流程]
列定义:数据类型- 指定者:
type在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
aggregation
column[命令合成-子流程]
定义列:聚合类型- 指定者:
aggregation在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
type
public StringBuilder type(DataRuntime runtime, StringBuilder builder, Column meta, String type, int ignoreLength, int ignorePrecision, int ignoreScale, int maxLength, int maxPrecision, int maxScale, int supportTimeZone, int supportLocalTimeZone) column[命令合成-子流程]
列定义:数据类型定义- 指定者:
type在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列type- 数据类型(已经过转换)ignoreLength- 是否忽略长度ignorePrecision- 是否忽略有效位数ignoreScale- 是否忽略小数- 返回:
- StringBuilder
-
ignoreLength
column[命令合成-子流程]
定义列:是否忽略有长度
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
ignoreLength在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端type- 数据类型- 返回:
- boolean
-
ignorePrecision
column[命令合成-子流程]
定义列:是否忽略有效位数
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
ignorePrecision在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端type- TypeMetadata- 返回:
- boolean
-
ignoreScale
column[命令合成-子流程]
定义列:定义列:是否忽略小数位
不直接调用 用来覆盖dataTypeMetadataRefer(DataRuntime runtime, TypeMetadata meta)
注意父类中会根据具体数据库和数据类型(alias,category) 确定refer 如果父类没有设置 再用子类中统一的默认值- 指定者:
ignoreScale在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端type- TypeMetadata- 返回:
- boolean
-
nullable
public StringBuilder nullable(DataRuntime runtime, StringBuilder builder, Column meta, ACTION.DDL action) column[命令合成-子流程]
列定义:非空- 指定者:
nullable在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
charset
column[命令合成-子流程]
列定义:编码- 指定者:
charset在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
virtual
column[命令合成-子流程]
定义列:虚拟列- 指定者:
virtual在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildercolumn- 列- 返回:
- StringBuilder
-
defaultValue
column[命令合成-子流程]
列定义:默认值- 指定者:
defaultValue在接口中DriverAdapter- 参数:
builder- buildermeta- 列- 返回:
- StringBuilder
-
primary
column[命令合成-子流程]
列定义:定义列的主键标识(注意不要跟表定义中的主键重复) primary(DataRuntime runtime, StringBuilder builder, Table meta)- 指定者:
primary在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
unique
column[命令合成-子流程]
列定义:唯一索引- 指定者:
unique在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
increment
column[命令合成-子流程]
列定义:递增列,需要通过serial实现递增的在type(DataRuntime runtime, StringBuilder builder, Column meta)中实现- 指定者:
increment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
onupdate
column[命令合成-子流程]
列定义:更新行事件- 指定者:
onupdate在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
position
column[命令合成-子流程]
列定义:位置- 指定者:
position在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
comment
column[命令合成-子流程]
列定义:备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- buildermeta- 列- 返回:
- StringBuilder
-
add
tag[调用入口]
添加标签- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
tag[调用入口]
修改标签- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签trigger- 修改异常时,是否触发监听器- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
tag[调用入口]
修改标签- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
tag[调用入口]
删除标签- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
tag[调用入口]
重命名标签- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原标签name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildAddRun
tag[命令合成]
添加标签- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
tag[命令合成]
修改标签 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- List
- 抛出:
Exception
-
buildDropRun
tag[命令合成]
删除标签- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
tag[命令合成]
修改标签名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildChangeDefaultRun
public List<Run> buildChangeDefaultRun(DataRuntime runtime, Tag meta, boolean slice) throws Exception tag[命令合成]
修改默认值 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeDefaultRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildChangeNullableRun
public List<Run> buildChangeNullableRun(DataRuntime runtime, Tag meta, boolean slice) throws Exception tag[命令合成]
修改非空限制 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeNullableRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildChangeCommentRun
public List<Run> buildChangeCommentRun(DataRuntime runtime, Tag meta, boolean slice) throws Exception tag[命令合成]
修改备注 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeCommentRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
buildChangeTypeRun
tag[命令合成]
修改数据类型 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildChangeTypeRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 标签- 返回:
- String
- 抛出:
Exception
-
checkTagExists
tag[命令合成]
创建或删除标签之前 检测表是否存在 IF NOT EXISTS- 指定者:
checkTagExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
add
primary[调用入口]
添加主键- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
primary[调用入口]
修改主键- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
public boolean alter(DataRuntime runtime, Table table, PrimaryKey origin, PrimaryKey meta) throws Exception primary[调用入口]
修改Table最后修改主键,注意不要与列上的主键标识重复,如果列上支持标识主键,这里不需要实现- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- 表origin- 原主键meta- 新主键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
primary[调用入口]
删除主键- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
primary[调用入口]
添加主键- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 主键name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildAddRun
primary[命令合成]
添加主键- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
public List<Run> buildAlterRun(DataRuntime runtime, PrimaryKey origin, PrimaryKey meta, boolean slice) throws Exception primary[命令合成]
修改主键 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 原主键meta- 新主键- 返回:
- List
- 抛出:
Exception
-
buildDropRun
primary[命令合成]
删除主键- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键slice- 是否只生成片段(不含alter table部分,用于DDL合并)- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
primary[命令合成]
修改主键名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 主键- 返回:
- String
- 抛出:
Exception
-
add
foreign[调用入口] 添加外键- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
foreign[调用入口] 修改外键- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
foreign[调用入口] 修改外键- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
foreign[调用入口] 删除外键- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
foreign[调用入口] 重命名外键- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 外键name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildAddRun
foreign[命令合成]
添加外键- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
foreign[命令合成]
修改外键- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- List
- 抛出:
Exception
-
buildDropRun
foreign[命令合成]
删除外键- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
foreign[命令合成]
修改外键名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 外键- 返回:
- String
- 抛出:
Exception
-
add
index[调用入口]
添加索引- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
index[调用入口]
修改索引- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
index[调用入口]
修改索引- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
index[调用入口]
删除索引- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
index[调用入口]
重命名索引- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 索引name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildAppendIndexRun
index[命令合成]
创建表过程添加索引,表创建完成后添加索引,于表内索引index(DataRuntime, StringBuilder, Table)二选一- 指定者:
buildAppendIndexRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 表- 返回:
- String
- 抛出:
Exception
-
buildAddRun
index[命令合成]
添加索引- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
index[命令合成]
修改索引 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- List
- 抛出:
Exception
-
buildDropRun
index[命令合成]
删除索引- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
index[命令合成]
修改索引名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引- 返回:
- String
- 抛出:
Exception
-
type
index[命令合成-子流程]
索引类型- 指定者:
type在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引builder- builder- 返回:
- StringBuilder
-
property
index[命令合成-子流程]
索引属性- 指定者:
property在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引builder- builder- 返回:
- StringBuilder
-
comment
index[命令合成-子流程]
索引备注- 指定者:
comment在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 索引builder- builder- 返回:
- StringBuilder
-
checkIndexExists
table[命令合成-子流程]
创建或删除表之前 检测表是否存在 IF NOT EXISTS- 指定者:
checkIndexExists在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderexists- exists- 返回:
- StringBuilder
-
add
constraint[调用入口]
添加约束- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
constraint[调用入口]
修改约束- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
constraint[调用入口]
修改约束- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
constraint[调用入口]
删除约束- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
constraint[调用入口]
重命名约束- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 约束name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildAddRun
constraint[命令合成]
添加约束- 指定者:
buildAddRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
constraint[命令合成]
修改约束 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- List
- 抛出:
Exception
-
buildDropRun
constraint[命令合成]
删除约束- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
constraint[命令合成]
修改约束名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 约束- 返回:
- String
- 抛出:
Exception
-
add
trigger[调用入口]
添加触发器- 指定者:
add在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
trigger[调用入口]
修改触发器- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
trigger[调用入口]
删除触发器- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
trigger[调用入口]
重命名触发器- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 触发器name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildCreateRun
trigger[命令合成]
添加触发器- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- List
- 抛出:
Exception
-
buildAlterRun
trigger[命令合成]
修改触发器 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- List
- 抛出:
Exception
-
buildDropRun
trigger[命令合成]
删除触发器- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- List
- 抛出:
Exception
-
buildRenameRun
trigger[命令合成]
修改触发器名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器- 返回:
- List
- 抛出:
Exception
-
each
trigger[命令合成-子流程]
触发级别(行或整个命令)- 指定者:
each在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 触发器builder- builder- 返回:
- StringBuilder
-
create
procedure[调用入口]
添加存储过程- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
procedure[调用入口]
修改存储过程- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
procedure[调用入口]
删除存储过程- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
procedure[调用入口]
重命名存储过程- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 存储过程name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildCreateRun
procedure[命令合成]
添加存储过程- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
procedure[命令合成]
修改存储过程 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- List
- 抛出:
Exception
-
buildDropRun
procedure[命令合成]
删除存储过程- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
procedure[命令合成]
修改存储过程名
一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 存储过程- 返回:
- String
- 抛出:
Exception
-
parameter
procedure[命令合成-子流程]
生在输入输出参数- 指定者:
parameter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderparameter- parameter
-
create
function[调用入口] 添加函数- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
function[调用入口] 修改函数- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
function[调用入口] 删除函数- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
function[调用入口] 重命名函数- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 函数name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildCreateRun
function[命令合成]
添加函数- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
function[命令合成]
修改函数 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- List
- 抛出:
Exception
-
buildDropRun
function[命令合成]
删除函数- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
meta- 函数- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
function[命令合成]
修改函数名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 函数- 返回:
- String
- 抛出:
Exception
-
create
sequence[调用入口] 添加序列- 指定者:
create在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
alter
sequence[调用入口] 修改序列- 指定者:
alter在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
drop
sequence[调用入口] 删除序列- 指定者:
drop在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
rename
sequence[调用入口] 重命名序列- 指定者:
rename在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端origin- 序列name- 新名称- 返回:
- 是否执行成功
- 抛出:
Exception- 异常
-
buildCreateRun
sequence[命令合成]
添加序列- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- String
- 抛出:
Exception
-
buildAlterRun
sequence[命令合成]
修改序列 有可能生成多条SQL- 指定者:
buildAlterRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- List
- 抛出:
Exception
-
buildDropRun
sequence[命令合成]
删除序列- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
meta- 序列- 返回:
- String
- 抛出:
Exception
-
buildRenameRun
sequence[命令合成]
修改序列名 一般不直接调用,如果需要由buildAlterRun内部统一调用- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 序列- 返回:
- String
- 抛出:
Exception
-
execute
public boolean execute(DataRuntime runtime, String random, Metadata meta, ACTION.Authorize action, Run run) 执行命令- 指定者:
execute在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端random- 用来标记同一组命令meta- Metadata(表,列等)action- 执行命令run- 最终待执行的命令和参数(如JDBC环境中的SQL)- 返回:
- boolean
-
execute
public boolean execute(DataRuntime runtime, String random, Metadata meta, ACTION.Authorize action, List<Run> runs) - 指定者:
execute在接口中DriverAdapter
-
create
role[调用入口]
创建角色- 指定者:
create在接口中DriverAdapter- 参数:
role- 角色- 返回:
- boolean
- 抛出:
Exception
-
create
- 指定者:
create在接口中DriverAdapter- 抛出:
Exception
-
rename
role[调用入口]
角色重命名- 指定者:
rename在接口中DriverAdapter- 参数:
origin- 原名update- 新名- 返回:
- boolean
- 抛出:
Exception
-
drop
role[调用入口]
删除角色- 指定者:
drop在接口中DriverAdapter- 参数:
role- 角色- 返回:
- boolean
- 抛出:
Exception
-
roles
public <T extends Role> List<T> roles(DataRuntime runtime, String random, boolean greedy, Role query) throws Exception role[调用入口]
查询角色- 指定者:
roles在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
buildCreateRun
role[命令合成]
创建角色- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
role- 角色- 返回:
- List
- 抛出:
Exception
-
buildRenameRun
role[命令合成]
角色重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
origin- 原名update- 新名- 返回:
- List
- 抛出:
Exception
-
buildDropRun
role[命令合成]
删除角色- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
role- 角色- 返回:
- List
- 抛出:
Exception
-
buildSelectRolesRun
public List<Run> buildSelectRolesRun(DataRuntime runtime, boolean greedy, Role query) throws Exception role[命令合成]
查询角色- 指定者:
buildSelectRolesRun在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
initRoleFieldRefer
role[结果集封装]
Role 属性与结果集对应关系- 指定者:
initRoleFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
roles
public <T extends Role> List<T> roles(DataRuntime runtime, int index, boolean create, List<T> previous, Role query, DataSet<DataRow> set) throws Exception role[结果集封装]
根据查询结果集构造 role- 指定者:
roles在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectRolessRun 返回顺序query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- List
- 抛出:
Exception- 异常
-
init
role[结果集封装]
根据查询结果封装 role 对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Role
-
detail
role[结果集封装]
根据查询结果封装 role 对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Role
-
create
user[调用入口]
创建用户- 指定者:
create在接口中DriverAdapter- 参数:
user- 用户- 返回:
- boolean
- 抛出:
Exception
-
rename
user[调用入口]
用户重命名- 指定者:
rename在接口中DriverAdapter- 参数:
origin- 原名update- 新名- 返回:
- boolean
- 抛出:
Exception
-
drop
user[调用入口]
删除用户- 指定者:
drop在接口中DriverAdapter- 参数:
user- 用户- 返回:
- boolean
- 抛出:
Exception
-
users
public <T extends User> List<T> users(DataRuntime runtime, String random, boolean greedy, User query) throws Exception user[调用入口]
查询用户- 指定者:
users在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
buildCreateRun
user[命令合成]
创建用户- 指定者:
buildCreateRun在接口中DriverAdapter- 参数:
user- 用户- 返回:
- List
- 抛出:
Exception
-
buildRenameRun
user[命令合成]
用户重命名- 指定者:
buildRenameRun在接口中DriverAdapter- 参数:
origin- 原名update- 新名- 返回:
- List
- 抛出:
Exception
-
buildDropRun
user[命令合成]
删除用户- 指定者:
buildDropRun在接口中DriverAdapter- 参数:
user- 用户- 返回:
- List
- 抛出:
Exception
-
buildSelectUsersRun
public List<Run> buildSelectUsersRun(DataRuntime runtime, boolean greedy, User query) throws Exception user[命令合成]
查询用户- 指定者:
buildSelectUsersRun在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
initUserFieldRefer
User[结果集封装]
User 属性与结果集对应关系- 指定者:
initUserFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
users
public <T extends User> List<T> users(DataRuntime runtime, int index, boolean create, List<T> previous, User query, DataSet<DataRow> set) throws Exception user[结果集封装]
根据查询结果集构造 user- 指定者:
users在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectUserssRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- List
- 抛出:
Exception- 异常
-
init
user[结果集封装]
根据查询结果封装 user 对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- User
-
detail
user[结果集封装]
根据查询结果封装 user 对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- User
-
privileges
public <T extends Privilege> List<T> privileges(DataRuntime runtime, String random, boolean greedy, Privilege query) throws Exception privilege[调用入口]
查询用户权限- 指定者:
privileges在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
buildSelectPrivilegesRun
public List<Run> buildSelectPrivilegesRun(DataRuntime runtime, boolean regreedy, Privilege query) throws Exception privilege[命令合成]
查询用户权限- 指定者:
buildSelectPrivilegesRun在接口中DriverAdapter- 参数:
query- 查询条件 根据metadata属性- 返回:
- List
- 抛出:
Exception
-
initPrivilegeFieldRefer
privilege[结果集封装]
Privilege 属性与结果集对应关系- 指定者:
initPrivilegeFieldRefer在接口中DriverAdapter- 返回:
- MetadataFieldRefer
-
privileges
public <T extends Privilege> List<T> privileges(DataRuntime runtime, int index, boolean create, List<T> previous, Privilege query, DataSet<DataRow> set) throws Exception privilege[结果集封装]
根据查询结果集构造 Trigger- 指定者:
privileges在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端index- 第几条查询SQL 对照 buildSelectConstraintsRun 返回顺序create- 上一步没有查到的,这一步是否需要新创建query- 查询条件 根据metadata属性previous- 上一步查询结果set- 查询结果集- 返回:
- List
- 抛出:
Exception- 异常
-
init
public <T extends Privilege> T init(DataRuntime runtime, int index, T meta, Privilege query, DataRow row) privilege[结果集封装]
根据查询结果封装Privilege对象,只封装catalog,schema,name等基础属性- 指定者:
init在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果query- 查询条件 根据metadata属性row- 查询结果集- 返回:
- Privilege
-
detail
public <T extends Privilege> T detail(DataRuntime runtime, int index, T meta, Privilege query, DataRow row) privilege[结果集封装]
根据查询结果封装Privilege对象,更多属性- 指定者:
detail在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 上一步封装结果row- 查询结果集- 返回:
- Privilege
-
grant
grant[调用入口]
授权- 指定者:
grant在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户privileges- 权限- 返回:
- boolean
- 抛出:
Exception
-
grant
grant[调用入口]
授权- 指定者:
grant在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户roles- 角色- 返回:
- boolean
- 抛出:
Exception
-
grant
grant[调用入口]
授权- 指定者:
grant在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端role- 角色privileges- 权限- 返回:
- boolean
- 抛出:
Exception
-
buildGrantRun
public List<Run> buildGrantRun(DataRuntime runtime, User user, Privilege... privileges) throws Exception grant[命令合成]
授权- 指定者:
buildGrantRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户privileges- 权限- 返回:
- List
- 抛出:
Exception
-
buildGrantRun
grant[命令合成]
授权- 指定者:
buildGrantRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户roles- 角色- 返回:
- List
- 抛出:
Exception
-
buildGrantRun
public List<Run> buildGrantRun(DataRuntime runtime, Role role, Privilege... privileges) throws Exception grant[命令合成]
授权- 指定者:
buildGrantRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端role- 角色privileges- 权限- 返回:
- List
- 抛出:
Exception
-
revoke
grant[调用入口]
撤销授权- 指定者:
revoke在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户privileges- 权限- 返回:
- boolean
- 抛出:
Exception
-
revoke
grant[调用入口]
撤销授权- 指定者:
revoke在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户roles- 角色- 返回:
- boolean
- 抛出:
Exception
-
revoke
grant[调用入口]
撤销授权- 指定者:
revoke在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端role- 角色privileges- 权限- 返回:
- boolean
- 抛出:
Exception
-
buildRevokeRun
public List<Run> buildRevokeRun(DataRuntime runtime, User user, Privilege... privileges) throws Exception grant[命令合成]
撤销授权- 指定者:
buildRevokeRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户privileges- 权限- 返回:
- List
- 抛出:
Exception
-
buildRevokeRun
grant[命令合成]
撤销授权- 指定者:
buildRevokeRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端user- 用户roles- 角色- 返回:
- List
- 抛出:
Exception
-
buildRevokeRun
public List<Run> buildRevokeRun(DataRuntime runtime, Role role, Privilege... privileges) throws Exception grant[命令合成]
撤销授权- 指定者:
buildRevokeRun在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端role- 角色privileges- 权限- 返回:
- List
- 抛出:
Exception
-
getString
-
getString
-
getBoolean
-
getDate
-
getDate
-
getLong
-
getLong
-
getInt
-
getInt
-
matchBoolean
-
matchBoolean
parse boolean- 参数:
row- 结果集cols- 检测的列vals- 匹配true的值S(只要一项匹配就返回true)- 返回:
- boolean
-
typeMetadata
转换成相应数据库类型
把编码时输入的数据类型如(long)转换成具体数据库中对应的数据类型
同时解析长度、有效位数、精度
如有些数据库中用bigint有些数据库中有long- 指定者:
typeMetadata在接口中DriverAdapter- 参数:
meta- 列- 返回:
- 具体数据库中对应的数据类型
-
typeMetadata
- 指定者:
typeMetadata在接口中DriverAdapter
-
typeMetadata
转换成相应数据库类型
把编码时输入的数据类型如(long)转换成具体数据库中对应的数据类型,如有些数据库中用bigint有些数据库中有long- 指定者:
typeMetadata在接口中DriverAdapter- 参数:
type- 编码时输入的类型- 返回:
- 具体数据库中对应的数据类型
-
checkPrimaryGenerator
检测针对表的主键生成器- 参数:
type- 数据库类型table- 表- 返回:
- PrimaryGenerator
-
spell
数据类型拼写兼容- 参数:
name- name- 返回:
- spell
-
name
合成完整名称- 参数:
meta- 合成完整名称- 返回:
- String
-
name
构造完整表名- 指定者:
name在接口中DriverAdapter- 参数:
builder- buildermeta- Metadata- 返回:
- StringBuilder
-
name
拼接完整列名- 指定者:
name在接口中DriverAdapter- 参数:
builder- buildermeta- Column- 返回:
- StringBuilder
-
convert
public Object convert(DataRuntime runtime, StringBuilder builder, Object value, Column column, Boolean placeholder, Boolean unicode, ConfigStore configs) 生成insert update 命令时 类型转换 如 ?::json- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- StringBuildervalue- 值column- 数据类型configs- ConfigStoreplaceholder- 占位符unicode- 编码- 返回:
- Object
-
delimiter
拼接界定符- 参数:
builder- StringBuildersrc- 原文- 返回:
- StringBuilder
-
delimiter
-
delimiter
拼接界定符- 参数:
builder- StringBuilderlist- 原文- 返回:
- StringBuilder
-
isBooleanColumn
是否是boolean列- 指定者:
isBooleanColumn在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端column- 列- 返回:
- boolean
-
isNumberColumn
是否同数字- 指定者:
isNumberColumn在接口中DriverAdapter- 参数:
column- 列runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- boolean
-
isCharColumn
是否是字符类型 决定值是否需要加单引号 number boolean 返回false 其他返回true- 指定者:
isCharColumn在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端column- 列- 返回:
- boolean
-
value
内置函数- 指定者:
value在接口中DriverAdapter- 参数:
column- 列属性value- SQL_BUILD_IN_VALUEruntime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- String
-
write
public Object write(DataRuntime runtime, Column metadata, Object value, Boolean placeholder, Boolean unicode) 写入数据库前类型转换- 指定者:
write在接口中DriverAdapter- 参数:
metadata- Column 用来定位数据类型placeholder- 是否占位符value- valueruntime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- Object
-
read
从数据库中读取数据
先由子类根据metadata.typeName(CHAR,INT)定位到具体的数据库类型ColumnType
如果定位成功由ColumnType根据class转换(class可不提供)
如果没有定位到ColumnType再根据className(String,BigDecimal)定位到JavaType
如果定位失败或转换失败(返回null)再由父类转换
如果没有提供metadata和class则根据value.class
常用类型jdbc可以自动转换直接返回就可以(一般子类DataType返回null父类原样返回)
不常用的如json/point/polygon/blob等转换成anyline对应的类型- 指定者:
read在接口中DriverAdapter- 参数:
metadata- Column 用来定位数据类型value- valueclazz- 目标数据类型(给entity赋值时应该指定属性class, DataRow赋值时可以通过JDBChandler指定class)runtime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- Object
-
value
在不检测数据库结构时才生效,否则会被convert代替 生成value格式 主要确定是否需要单引号 或 类型转换 有些数据库不提供默认的 隐式转换 需要显示的把String转换成相应的数据类型 如 TO_DATE('')- 指定者:
value在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端builder- builderobj- Objectkey- 列名
-
convert
public boolean convert(DataRuntime runtime, Catalog catalog, Schema schema, String table, RunValue value) 参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端catalog- 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema- 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。table- 表value- 值- 返回:
- boolean 返回false表示转换失败 如果有多个 adapter 则交给adapter继续转换
-
addRunValue
设置参数值,主要根据数据类型格执行式化,如对象,list,map等插入json列- 指定者:
addRunValue在接口中DriverAdapter- 参数:
run- 最终待执行的命令和参数(如JDBC环境中的SQL)compare- 比较方式 默认 equal 多个值默认 incolumn- 列value- value
-
convert
参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端configs- ConfigStorerun- 值- 返回:
- boolean 返回false表示转换失败 如果有多个 adapter 则交给adapter继续转换
-
convert
参数值 数据类型转换 子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端table- Tablerun- run- 返回:
- boolean 返回false表示转换失败 如果有多个 adapter 则交给adapter继续转换
-
convert
数据类型转换- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端columns- 列value- 值- 返回:
- boolean 返回false表示转换失败 如果有多个adapter 则交给adapter继续转换
-
convert
根据数据库列属性 类型转换(一般是在更新数据库时调用) 子类先解析(有些同名的类型以子类为准)、失败后再到这里解析- 指定者:
convert在接口中DriverAdapter- 参数:
metadata- 列run- 最终待执行的命令和参数(如JDBC环境中的SQL)Valueruntime- 运行环境主要包含驱动适配器 数据源或客户端- 返回:
- boolean 是否完成类型转换,决定下一步是否继续
-
convert
数据类型转换,没有提供column的根据value类型- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端metadata- 列value- 值- 返回:
- Object
-
convert
数据类型转换,没有提供column的根据value类型- 指定者:
convert在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端meta- 数据类型value- 值- 返回:
- Object
-
objectName
对象名称格式化(大小写转换),在查询系统表时需要- 指定者:
objectName在接口中DriverAdapter- 参数:
runtime- 运行环境主要包含驱动适配器 数据源或客户端name- name- 返回:
- String
-
search
根据 catalog, schema, name检测tables集合中是否存在- 指定者:
search在接口中DriverAdapter- 类型参数:
T- Table- 参数:
list- metascatalog- 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema- 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。name- name- 返回:
- 如果存在则返回Table 不存在则返回null
-
search
-
search
-
search
-
get
-
concat
-
concatEqual
-
random
-