public interface JDBCAdapter
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
JDBCAdapter.DB_TYPE |
static class |
JDBCAdapter.SQL_BUILD_IN_VALUE |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
alterColumnKeyword()
修改表的关键字
|
String |
batchInsertSeparator()
批量插入数据时,多行数据之间分隔符
|
String |
buildAddRunSQL(Column column)
添加列
|
String |
buildAddRunSQL(Constraint constraint)
添加约束
|
String |
buildAddRunSQL(Index index)
添加索引
|
String |
buildAddRunSQL(Tag tag)
添加标签
|
List<String> |
buildAlterRunSQL(Column column)
修改列
有可能生成多条SQL
|
List<String> |
buildAlterRunSQL(Constraint constraint)
修改约束
有可能生成多条SQL
|
List<String> |
buildAlterRunSQL(Index index)
修改索引
有可能生成多条SQL
|
List<String> |
buildAlterRunSQL(MasterTable table)
修改主表
|
List<String> |
buildAlterRunSQL(PartitionTable table)
修改分区表
|
List<String> |
buildAlterRunSQL(Table table)
修改表
|
List<String> |
buildAlterRunSQL(Tag tag)
修改标签
有可能生成多条SQL
|
String |
buildChangeCommentRunSQL(Column column)
修改备注
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildChangeCommentRunSQL(MasterTable table)
修改主表备注
|
String |
buildChangeCommentRunSQL(PartitionTable table)
修改分区表备注
|
String |
buildChangeCommentRunSQL(Table table)
修改备注
|
String |
buildChangeCommentRunSQL(Tag tag)
修改备注
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildChangeDefaultRunSQL(Column column)
修改默认值
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildChangeDefaultRunSQL(Tag tag)
修改默认值
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildChangeNullableRunSQL(Column column)
修改非空限制
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildChangeNullableRunSQL(Tag tag)
修改非空限制
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
List<String> |
buildChangeTypeRunSQL(Column column)
修改数据类型
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
List<String> |
buildChangeTypeRunSQL(Tag tag)
修改数据类型
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
StringBuilder |
buildConditionIn(StringBuilder builder,
Compare compare,
Object value)
构造(NOT) IN 查询条件
|
Object |
buildConditionLike(StringBuilder builder,
Compare compare,
Object value)
构造 LIKE 查询条件
如果不需要占位符 返回null 否则原样返回value
|
String |
buildCreateCommentRunSQL(Column column)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
String |
buildCreateCommentRunSQL(MasterTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
String |
buildCreateCommentRunSQL(PartitionTable table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
String |
buildCreateCommentRunSQL(Table table)
添加表备注(表创建完成后调用,创建过程能添加备注的不需要实现)
|
List<String> |
buildCreateRunSQL(MasterTable table)
创建主有
|
List<String> |
buildCreateRunSQL(PartitionTable table)
创建分区表
|
List<String> |
buildCreateRunSQL(Table table)
创建表
|
Run |
buildDeleteRun(String dest,
Object obj,
String... columns)
创建删除SQL
|
Run |
buildDeleteRun(String table,
String key,
Object values)
根据key values删除
|
Run |
buildDeleteRunContent(Run run)
构造删除主体
|
String |
buildDropRunSQL(Column column)
删除列
|
String |
buildDropRunSQL(Constraint constraint)
删除约束
|
String |
buildDropRunSQL(Index index)
删除索引
|
String |
buildDropRunSQL(MasterTable table)
删除主表
|
String |
buildDropRunSQL(PartitionTable table)
删除分区表
|
String |
buildDropRunSQL(Table table)
删除表
|
String |
buildDropRunSQL(Tag tag)
删除标签
|
Run |
buildExecuteRun(RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建执行SQL
|
void |
buildExecuteRunContent(Run run)
构造执行主体
|
Run |
buildInsertRun(String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建insert RunPrepare
|
String |
buildInValue(JDBCAdapter.SQL_BUILD_IN_VALUE value)
内置函数
如果需要引号,方法应该一块返回
|
List<String> |
buildQueryColumnRunSQL(Table table,
boolean metadata)
查询表上的列
|
List<String> |
buildQueryConstraintRunSQL(Table table,
boolean metadata)
查询表上的约束
|
List<String> |
buildQueryDatabaseRunSQL()
查询所有数据库
|
List<String> |
buildQueryIndexRunSQL(Table table,
boolean metadata)
查询表上的所引
|
List<String> |
buildQueryMasterTableRunSQL(String catalog,
String schema,
String pattern,
String types)
查询主表
|
List<String> |
buildQueryPartitionTableRunSQL(MasterTable master,
Map<String,Object> tags) |
List<String> |
buildQueryPartitionTableRunSQL(MasterTable master,
Map<String,Object> tags,
String name)
根据主表查询分区表
|
List<String> |
buildQueryPartitionTableRunSQL(String catalog,
String schema,
String pattern,
String types)
查询分区表
|
Run |
buildQueryRun(RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查询SQL
|
void |
buildQueryRunContent(Run run)
构造查询主体
|
List<String> |
buildQueryTableRunSQL(String catalog,
String schema,
String pattern,
String types)
查询表
|
List<String> |
buildQueryTagRunSQL(Table table,
boolean metadata)
查询表上的列
|
String |
buildRenameRunSQL(Column column)
修改列名
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildRenameRunSQL(Constraint constraint)
修改约束名
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildRenameRunSQL(Index index)
修改索引名
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
String |
buildRenameRunSQL(MasterTable table)
主表重命名
|
String |
buildRenameRunSQL(PartitionTable table)
分区表重命名
|
String |
buildRenameRunSQL(Table table)
重命名
|
String |
buildRenameRunSQL(Tag tag)
修改标签名
一般不直接调用,如果需要由buildAlterRunSQL内部统一调用
|
Run |
buildUpdateRun(String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns)
创建更新SQL
|
StringBuilder |
charset(StringBuilder builder,
Column column)
编码
|
StringBuilder |
checkColumnExists(StringBuilder builder,
boolean exists)
创建或删除列之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
checkTableExists(StringBuilder builder,
boolean exists)
创建或删除表之前 检测表是否存在
IF NOT EXISTS
|
StringBuilder |
checkTagExists(StringBuilder builder,
boolean exists)
创建或删除标签之前 检测表是否存在
IF NOT EXISTS
|
LinkedHashMap<String,Column> |
columns(boolean create,
Table table,
LinkedHashMap<String,Column> columns,
ResultSet set)
解析JDBC getcolumns结果
|
LinkedHashMap<String,Column> |
columns(boolean create,
Table table,
LinkedHashMap<String,Column> columns,
org.springframework.jdbc.support.rowset.SqlRowSet set)
解析查询结果metadata(0=1)
|
LinkedHashMap<String,Column> |
columns(int index,
boolean create,
Table table,
LinkedHashMap<String,Column> columns,
DataSet set)
根据查询结果集构造Tag
|
StringBuilder |
comment(StringBuilder builder,
Column column)
备注
|
StringBuilder |
comment(StringBuilder builder,
Table table)
表备注
|
String |
concat(String... args)
拼接字符串
|
List<String> |
confirmInsertColumns(String dest,
Object data,
List<String> columns)
确认需要插入的列
|
LinkedHashMap<String,Constraint> |
constraints(boolean create,
Table table,
LinkedHashMap<String,Constraint> constraints,
ResultSet set) |
LinkedHashMap<String,Constraint> |
constraints(boolean create,
Table table,
LinkedHashMap<String,Constraint> constraints,
org.springframework.jdbc.support.rowset.SqlRowSet set) |
LinkedHashMap<String,Constraint> |
constraints(int constraint,
boolean create,
Table table,
LinkedHashMap<String,Constraint> constraints,
DataSet set)
根据查询结果集构造Constraint
|
boolean |
convert(Column column,
RunValue run)
数据类型转换
|
boolean |
convert(Map<String,Column> columns,
RunValue run)
数据类型转换
|
boolean |
convert(String catalog,
String schema,
String table,
RunValue run)
数据类型转换
子类先解析(有些同名的类型以子类为准)、失败后再调用默认转换
|
void |
createInserts(Run run,
String dest,
Collection list,
List<String> keys)
根据Collection创建批量插入SQL
|
void |
createInserts(Run run,
String dest,
DataSet set,
List<String> keys)
根据DataSet创建批量插入SQL
|
LinkedHashMap<String,Database> |
databases(int index,
boolean create,
LinkedHashMap<String,Database> databases,
DataSet set)
根据查询结果集构造 Database
|
StringBuilder |
defaultValue(StringBuilder builder,
Column column)
默认值
|
StringBuilder |
define(StringBuilder builder,
Column column)
定义列
|
void |
format(StringBuilder builder,
Object value)
根据数据类型生成SQL(如是否需要'')
|
String |
generatedKey() |
String |
getDelimiterFr()
界定符
|
String |
getDelimiterTo() |
String |
getPrimaryKey(Object obj)
获取单主键列名
|
Object |
getPrimaryValue(Object obj)
获取单主键值
|
boolean |
identity(String random,
Object data,
org.springframework.jdbc.support.KeyHolder keyholder)
insert执行后 通过KeyHolder获取主键值赋值给data
|
StringBuilder |
increment(StringBuilder builder,
Column column)
递增列
|
LinkedHashMap<String,Index> |
indexs(boolean create,
Table table,
LinkedHashMap<String,Index> indexs,
ResultSet set)
解析JDBC getIndex结果
|
LinkedHashMap<String,Index> |
indexs(boolean create,
Table table,
LinkedHashMap<String,Index> indexs,
org.springframework.jdbc.support.rowset.SqlRowSet set) |
LinkedHashMap<String,Index> |
indexs(int index,
boolean create,
Table table,
LinkedHashMap<String,Index> indexs,
DataSet set)
根据查询结果集构造Index
|
int |
insert(String random,
Object data,
String sql,
List<Object> values,
String[] pks)
执行 insert
|
boolean |
isBooleanColumn(Column column)
是否是boolean列
|
boolean |
isCharColumn(Column column)
是否是字符类型
决定值是否需要加单引号
number boolean 返回false
其他返回true
|
boolean |
isNumberColumn(Column column)
是否是数字列
|
LinkedHashMap<String,MasterTable> |
mtables(boolean create,
String catalog,
String schema,
LinkedHashMap<String,MasterTable> tables,
ResultSet set)
根据JDBC
|
LinkedHashMap<String,MasterTable> |
mtables(int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,MasterTable> tables,
DataSet set)
根据查询结果集构造Table
|
StringBuilder |
name(StringBuilder builder,
Table table)
构造表名
|
StringBuilder |
nullable(StringBuilder builder,
Column column)
非空
|
StringBuilder |
onupdate(StringBuilder builder,
Column column)
更新行事件
|
String |
parseExists(Run run)
创建检测是否存在SQL
|
String |
parseFinalQuery(Run run)
创建最终执行查询SQL
|
String |
parseTotalQuery(Run run)
创建统计总数SQL
|
StringBuilder |
position(StringBuilder builder,
Column column)
位置
|
StringBuilder |
primary(StringBuilder builder,
Table table)
创建主键在创建表的DDL结尾部分
|
List<Map<String,Object>> |
process(List<Map<String,Object>> list)
JDBC执行完成后的结果处理
|
LinkedHashMap<String,PartitionTable> |
ptables(boolean create,
String catalog,
MasterTable master,
String schema,
LinkedHashMap<String,PartitionTable> tables,
ResultSet set)
根据JDBC
|
LinkedHashMap<String,PartitionTable> |
ptables(int total,
int index,
boolean create,
MasterTable master,
String catalog,
String schema,
LinkedHashMap<String,PartitionTable> tables,
DataSet set)
根据查询结果集构造Table
|
void |
setJdbc(org.springframework.jdbc.core.JdbcTemplate jdbc) |
boolean |
supportInsertPlaceholder()
插入数据时是否支持占位符
|
LinkedHashMap<String,Table> |
tables(boolean create,
String catalog,
String schema,
LinkedHashMap<String,Table> tables,
ResultSet set)
根据JDBC
|
LinkedHashMap<String,Table> |
tables(int index,
boolean create,
String catalog,
String schema,
LinkedHashMap<String,Table> tables,
DataSet set)
根据查询结果集构造Table
|
LinkedHashMap<String,Tag> |
tags(boolean create,
Table table,
LinkedHashMap<String,Tag> tags,
ResultSet set)
解析JDBC getcolumns结果
|
LinkedHashMap<String,Tag> |
tags(boolean create,
Table table,
LinkedHashMap<String,Tag> tags,
org.springframework.jdbc.support.rowset.SqlRowSet set)
解析查询结果metadata(0=1)
|
LinkedHashMap<String,Tag> |
tags(int index,
boolean create,
Table table,
LinkedHashMap<String,Tag> tags,
DataSet set)
根据查询结果集构造Tag
|
JDBCAdapter.DB_TYPE |
type() |
StringBuilder |
type(StringBuilder builder,
Column column)
数据类型
|
String |
type2class(String type)
数据库类型转换成java类型
|
String |
type2type(String type)
转换成相应数据库的数据类型
|
void |
value(StringBuilder builder,
Object row,
String key)
在不检测数据库结构时才生效,否则会被convert代替
生成value格式 主要确定是否需要单引号 或 类型转换
有些数据库不提供默认的 隐式转换 需要显示的把String转换成相应的数据类型
如 TO_DATE('')
|
JDBCAdapter.DB_TYPE type()
String getDelimiterFr()
String getDelimiterTo()
void setJdbc(org.springframework.jdbc.core.JdbcTemplate jdbc)
Run buildInsertRun(String dest, Object obj, boolean checkPrimary, List<String> columns)
dest - 表obj - 实体checkPrimary - 是否需要检查重复主键,默认不检查columns - 需要抛入的列 如果不指定 则根据实体属性解析void createInserts(Run run, String dest, Collection list, List<String> keys)
run - rundest - 表 如果不指定则根据DataSet解析list - 数据集keys - keys 南非要插入的列void createInserts(Run run, String dest, DataSet set, List<String> keys)
run - rundest - 表 如果不指定则根据DataSet解析set - 数据集keys - keys 南非要插入的列List<String> confirmInsertColumns(String dest, Object data, List<String> columns)
data - Entity或DataRowcolumns - 提供额外的判断依据
列可以加前缀
+:表示必须插入
-:表示必须不插入
?:根据是否有值
如果没有提供columns,长度为0也算没有提供
则解析obj(遍历所有的属性工Key)获取insert列
如果提供了columns则根据columns获取insert列
但是columns中出现了添加前缀列,则解析完columns后,继续解析obj
以上执行完后,如果开启了ConfigTable.IS_AUTO_CHECK_METADATA=true
则把执行结果与表结构对比,删除表中没有的列String batchInsertSeparator()
boolean supportInsertPlaceholder()
int insert(String random, Object data, String sql, List<Object> values, String[] pks) throws Exception
random - randomdata - datasql - sqlvalues - valueException - 异常boolean identity(String random, Object data, org.springframework.jdbc.support.KeyHolder keyholder)
random - log标记data - datakeyholder - keyholderString generatedKey()
Run buildUpdateRun(String dest, Object obj, ConfigStore configs, boolean checkPrimary, List<String> columns)
dest - destobj - objcheckPrimary - 是否需要检查重复主键,默认不检查columns - columnsconfigs - 更新条件Run buildQueryRun(RunPrepare prepare, ConfigStore configs, String... conditions)
prepare - prepareconfigs - 查询条件配置conditions - 查询条件void buildQueryRunContent(Run run)
run - runObject buildConditionLike(StringBuilder builder, Compare compare, Object value)
builder - buildercompare - comparevalue - valueStringBuilder buildConditionIn(StringBuilder builder, Compare compare, Object value)
builder - buildercompare - comparevalue - valueList<Map<String,Object>> process(List<Map<String,Object>> list)
list - JDBC执行结果Run buildExecuteRun(RunPrepare prepare, ConfigStore configs, String... conditions)
prepare - prepareconfigs - configsconditions - conditionsvoid buildExecuteRunContent(Run run)
run - runRun buildDeleteRun(String dest, Object obj, String... columns)
dest - 表obj - entitycolumns - 删除条件的我Run buildDeleteRun(String table, String key, Object values)
table - 表key - keyvalues - valuesList<String> buildQueryDatabaseRunSQL() throws Exception
Exception - 异常LinkedHashMap<String,Database> databases(int index, boolean create, LinkedHashMap<String,Database> databases, DataSet set) throws Exception
index - 第几条SQL 对照 buildQueryDatabaseRunSQL 返回顺序create - 上一步没有查到的,这一步是否需要新创建databases - 上一步查询结果set - setException - 异常List<String> buildQueryTableRunSQL(String catalog, String schema, String pattern, String types) throws Exception
catalog - catalogschema - schemapattern - patterntypes - typesExceptionLinkedHashMap<String,Table> tables(int index, boolean create, String catalog, String schema, LinkedHashMap<String,Table> tables, DataSet set) throws Exception
index - 第几条SQL 对照buildQueryTableRunSQL返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常LinkedHashMap<String,Table> tables(boolean create, String catalog, String schema, LinkedHashMap<String,Table> tables, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常List<String> buildQueryMasterTableRunSQL(String catalog, String schema, String pattern, String types) throws Exception
catalog - catalogschema - schemapattern - patterntypes - typesExceptionLinkedHashMap<String,MasterTable> mtables(int index, boolean create, String catalog, String schema, LinkedHashMap<String,MasterTable> tables, DataSet set) throws Exception
index - 第几条SQL 对照 buildQueryMasterTableRunSQL返回顺序create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常LinkedHashMap<String,MasterTable> mtables(boolean create, String catalog, String schema, LinkedHashMap<String,MasterTable> tables, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常List<String> buildQueryPartitionTableRunSQL(String catalog, String schema, String pattern, String types) throws Exception
catalog - catalogschema - schemapattern - patterntypes - typesExceptionList<String> buildQueryPartitionTableRunSQL(MasterTable master, Map<String,Object> tags, String name) throws Exception
master - 主表tags - 标签名+标签值name - 分区表名Exception - 异常List<String> buildQueryPartitionTableRunSQL(MasterTable master, Map<String,Object> tags) throws Exception
ExceptionLinkedHashMap<String,PartitionTable> ptables(int total, int index, boolean create, MasterTable master, String catalog, String schema, LinkedHashMap<String,PartitionTable> tables, DataSet set) throws Exception
total - 合计SQL数量index - 第几条SQL 对照 buildQueryMasterTableRunSQL返回顺序create - 上一步没有查到的,这一步是否需要新创建master - 主表catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常LinkedHashMap<String,PartitionTable> ptables(boolean create, String catalog, MasterTable master, String schema, LinkedHashMap<String,PartitionTable> tables, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建master - 主表catalog - catalogschema - schematables - 上一步查询结果set - setException - 异常List<String> buildQueryColumnRunSQL(Table table, boolean metadata) throws Exception
table - 表metadata - 是否根据metadata(SELEC * FROM T WHERE 1=0) | 查询系统表ExceptionLinkedHashMap<String,Column> columns(int index, boolean create, Table table, LinkedHashMap<String,Column> columns, DataSet set) throws Exception
index - 第几条SQL 对照 buildQueryColumnRunSQL返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表columns - 上一步查询结果set - setException - 异常LinkedHashMap<String,Column> columns(boolean create, Table table, LinkedHashMap<String,Column> columns, org.springframework.jdbc.support.rowset.SqlRowSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表columns - columnsset - setException - 异常LinkedHashMap<String,Column> columns(boolean create, Table table, LinkedHashMap<String,Column> columns, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表columns - columnsset - setException - 异常List<String> buildQueryTagRunSQL(Table table, boolean metadata) throws Exception
table - 表metadata - 是否根据metadata | 查询系统表ExceptionLinkedHashMap<String,Tag> tags(int index, boolean create, Table table, LinkedHashMap<String,Tag> tags, DataSet set) throws Exception
index - 第几条查询SQL 对照 buildQueryTagRunSQL返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表tags - 上一步查询结果set - setException - 异常LinkedHashMap<String,Tag> tags(boolean create, Table table, LinkedHashMap<String,Tag> tags, org.springframework.jdbc.support.rowset.SqlRowSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表tags - 上一步查询结果set - 查询结果Exception - 异常LinkedHashMap<String,Tag> tags(boolean create, Table table, LinkedHashMap<String,Tag> tags, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表tags - 上一步查询结果set - 查询结果Exception - 异常List<String> buildQueryIndexRunSQL(Table table, boolean metadata) throws Exception
table - 表metadata - 是否根据metadata | 查询系统表ExceptionLinkedHashMap<String,Index> indexs(int index, boolean create, Table table, LinkedHashMap<String,Index> indexs, DataSet set) throws Exception
index - 第几条查询SQL 对照 buildQueryIndexRunSQL 返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表indexs - 上一步查询结果set - setException - 异常LinkedHashMap<String,Index> indexs(boolean create, Table table, LinkedHashMap<String,Index> indexs, org.springframework.jdbc.support.rowset.SqlRowSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表indexs - 上一步查询结果set - setException - 异常LinkedHashMap<String,Index> indexs(boolean create, Table table, LinkedHashMap<String,Index> indexs, ResultSet set) throws Exception
create - 上一步没有查到的,这一步是否需要新创建table - 表set - setException - 异常List<String> buildQueryConstraintRunSQL(Table table, boolean metadata) throws Exception
table - 表metadata - 是否根据metadata | 查询系统表ExceptionLinkedHashMap<String,Constraint> constraints(int constraint, boolean create, Table table, LinkedHashMap<String,Constraint> constraints, DataSet set) throws Exception
constraint - 第几条查询SQL 对照 buildQueryConstraintRunSQL 返回顺序create - 上一步没有查到的,这一步是否需要新创建table - 表constraints - 上一步查询结果set - setException - 异常LinkedHashMap<String,Constraint> constraints(boolean create, Table table, LinkedHashMap<String,Constraint> constraints, org.springframework.jdbc.support.rowset.SqlRowSet set) throws Exception
ExceptionLinkedHashMap<String,Constraint> constraints(boolean create, Table table, LinkedHashMap<String,Constraint> constraints, ResultSet set) throws Exception
ExceptionList<String> buildCreateRunSQL(Table table) throws Exception
table - 表Exception - 异常String buildCreateCommentRunSQL(Table table) throws Exception
table - 表Exception - 异常List<String> buildAlterRunSQL(Table table) throws Exception
table - 表Exception - 异常String buildRenameRunSQL(Table table) throws Exception
table - 表Exception - 异常String buildChangeCommentRunSQL(Table table) throws Exception
table - 表Exception - 异常String buildDropRunSQL(Table table) throws Exception
table - 表Exception - 异常StringBuilder checkTableExists(StringBuilder builder, boolean exists)
builder - builderexists - existsStringBuilder primary(StringBuilder builder, Table table)
builder - buildertable - 表StringBuilder comment(StringBuilder builder, Table table)
builder - buildertable - 表StringBuilder name(StringBuilder builder, Table table)
builder - buildertable - 表List<String> buildCreateRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常String buildCreateCommentRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常List<String> buildAlterRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常String buildRenameRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常String buildChangeCommentRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常String buildDropRunSQL(MasterTable table) throws Exception
table - 表Exception - 异常List<String> buildCreateRunSQL(PartitionTable table) throws Exception
table - 表Exception - 异常String buildCreateCommentRunSQL(PartitionTable table) throws Exception
table - 表Exception - 异常List<String> buildAlterRunSQL(PartitionTable table) throws Exception
table - 表Exception - 异常String buildRenameRunSQL(PartitionTable table) throws Exception
table - Exception - 异常String buildChangeCommentRunSQL(PartitionTable table) throws Exception
table - 表Exception - 异常String buildDropRunSQL(PartitionTable table) throws Exception
table - 表Exception - 异常String alterColumnKeyword()
String buildAddRunSQL(Column column) throws Exception
column - 列ExceptionList<String> buildAlterRunSQL(Column column) throws Exception
column - 列ExceptionString buildDropRunSQL(Column column) throws Exception
column - 列ExceptionString buildRenameRunSQL(Column column) throws Exception
column - 列ExceptionList<String> buildChangeTypeRunSQL(Column column) throws Exception
column - 列ExceptionString buildChangeDefaultRunSQL(Column column) throws Exception
column - 列ExceptionString buildChangeNullableRunSQL(Column column) throws Exception
column - 列ExceptionString buildChangeCommentRunSQL(Column column) throws Exception
column - 列ExceptionString buildCreateCommentRunSQL(Column column) throws Exception
column - 列Exception - 异常StringBuilder define(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder type(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder nullable(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder charset(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder defaultValue(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder increment(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder onupdate(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder position(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder comment(StringBuilder builder, Column column)
builder - buildercolumn - 列StringBuilder checkColumnExists(StringBuilder builder, boolean exists)
builder - builderexists - existsString buildAddRunSQL(Tag tag) throws Exception
tag - 标签ExceptionList<String> buildAlterRunSQL(Tag tag) throws Exception
tag - 标签ExceptionString buildDropRunSQL(Tag tag) throws Exception
tag - 标签ExceptionString buildRenameRunSQL(Tag tag) throws Exception
tag - 标签ExceptionString buildChangeDefaultRunSQL(Tag tag) throws Exception
tag - 标签ExceptionString buildChangeNullableRunSQL(Tag tag) throws Exception
tag - 标签ExceptionString buildChangeCommentRunSQL(Tag tag) throws Exception
tag - 标签ExceptionList<String> buildChangeTypeRunSQL(Tag tag) throws Exception
tag - 标签ExceptionStringBuilder checkTagExists(StringBuilder builder, boolean exists)
builder - builderexists - existsString buildAddRunSQL(Index index) throws Exception
index - 索引ExceptionList<String> buildAlterRunSQL(Index index) throws Exception
index - 索引ExceptionString buildDropRunSQL(Index index) throws Exception
index - 索引ExceptionString buildRenameRunSQL(Index index) throws Exception
index - 索引ExceptionString buildAddRunSQL(Constraint constraint) throws Exception
constraint - 约束ExceptionList<String> buildAlterRunSQL(Constraint constraint) throws Exception
constraint - 约束ExceptionString buildDropRunSQL(Constraint constraint) throws Exception
constraint - 约束ExceptionString buildRenameRunSQL(Constraint constraint) throws Exception
constraint - 约束Exceptionboolean convert(String catalog, String schema, String table, RunValue run)
catalog - catalogschema - schematable - 表run - 值boolean convert(Map<String,Column> columns, RunValue run)
columns - 列run - 值boolean convert(Column column, RunValue run)
column - 列run - 值void value(StringBuilder builder, Object row, String key)
builder - builderrow - DataRow 或 Entitykey - 列名void format(StringBuilder builder, Object value)
builder - buildervalue - valueboolean isNumberColumn(Column column)
column - 列boolean isBooleanColumn(Column column)
column - 列boolean isCharColumn(Column column)
column - 列String buildInValue(JDBCAdapter.SQL_BUILD_IN_VALUE value)
value - SQL_BUILD_IN_VALUECopyright © 2023. All rights reserved.