Modifier and Type | Method and Description |
---|---|
List<Table> |
Tables.getTableList() |
Modifier and Type | Method and Description |
---|---|
void |
Tables.setTableList(List<Table> tableList) |
Modifier and Type | Method and Description |
---|---|
List<String> |
InitDataSqlProcessor.getPostInitSql(List<Table> tableList)
初始化数据执行后操作
|
List<String> |
InitDataSqlProcessor.getPreInitSql(List<Table> tableList)
初始化sql执行前操作
|
Modifier and Type | Method and Description |
---|---|
protected void |
InitDataSqlProcessorImpl.addInitRecord(List<String> initSqlList,
String sql,
boolean hasAutoIncrement,
Table table) |
protected void |
SqlserverInitDataSqlProcessorImpl.addInitRecord(List<String> initSqlList,
String sql,
boolean hasAutoIncrement,
Table table) |
protected void |
SybaseInitDataSqlProcessorImpl.addInitRecord(List<String> initSqlList,
String sql,
boolean hasAutoIncrement,
Table table) |
protected String |
SybaseInitDataSqlProcessorImpl.getFieldStdFieldName(String fieldId,
Table table) |
Modifier and Type | Method and Description |
---|---|
List<String> |
InitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
MySqlInitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
InformixInitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
H2InitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
Db2InitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
SqlserverInitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
SybaseInitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
OracleInitDataSqlProcessorImpl.getPostInitSql(List<Table> tableList) |
List<String> |
InitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
MySqlInitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
InformixInitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
H2InitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
Db2InitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
SqlserverInitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
SybaseInitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
List<String> |
OracleInitDataSqlProcessorImpl.getPreInitSql(List<Table> tableList) |
Modifier and Type | Method and Description |
---|---|
Table |
TableProcessor.getTable(String name) |
Table |
TableProcessor.getTable(String packageName,
String name) |
Table |
TableProcessor.getTableById(String id) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableProcessor.getSortedTables(List<Table> tableList) |
List<Table> |
TableProcessor.getTables() |
Modifier and Type | Method and Description |
---|---|
void |
TableProcessor.addTable(Table table) |
boolean |
TableSqlProcessor.checkTableExist(Table table,
Connection connection) |
boolean |
TableProcessor.checkTableExist(Table table,
String language,
Connection connection) |
List |
TableProcessor.clearRefSqls(Table table,
String language,
Connection connection) |
int |
TableSort.compare(Table table1,
Table table2) |
List<String> |
TableSqlProcessor.getClearTableSql(Table table,
Connection connection) |
List<String> |
TableProcessor.getCreateSql(Table table,
String language) |
List<String> |
TableSqlProcessor.getCreateSql(Table table,
String packageName)
获得创建表格的语句(包含index)
|
List<String> |
TableProcessor.getCreateSql(Table table,
String packageName,
String language) |
String |
TableSqlProcessor.getDropSql(Table table,
String packageName) |
String |
TableProcessor.getDropSql(Table table,
String packageName,
String language) |
List<String> |
TableSqlProcessor.getForeignKeySqls(Table table,
String packageName) |
List<String> |
TableSqlProcessor.getIndexCreateSql(Table table,
String packageName)
获得创建索引的语句
|
List<String> |
TableSqlProcessor.getTableCreateSql(Table table,
String packageName)
获得创建表格的语句(不包含index)
|
List<String> |
TableSqlProcessor.getUpdateSql(Table table,
String packageName,
Connection connection)
获得(正向)Update表格的语句
|
List<String> |
TableProcessor.getUpdateSql(Table table,
String packageName,
String language,
Connection connection) |
void |
TableProcessor.removeTable(Table table) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableProcessor.getSortedTables(List<Table> tableList) |
Modifier and Type | Method and Description |
---|---|
protected String |
DropTableSupportExistsSqlProcessorImpl.getSingleDropSql(Table table) |
protected String |
DropTableSqlProcessorImpl.getSingleDropSql(Table table) |
Modifier and Type | Method and Description |
---|---|
Table |
TableProcessorImpl.getTable(String name) |
Table |
TableProcessorImpl.getTable(String packageName,
String name) |
Table |
TableProcessorImpl.getTableById(String id) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableProcessorImpl.getSortedTables(List<Table> tableList)
外部table列表排序方法
|
List<Table> |
TableProcessorImpl.getTables() |
Modifier and Type | Method and Description |
---|---|
void |
TableProcessorImpl.addTable(Table table) |
protected void |
SqlProcessorImpl.appendBody(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.appendField(StringBuffer ddlBuffer,
TableField field,
List<String> list,
Table table) |
protected void |
H2SqlProcessorImpl.appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
Db2SqlProcessorImpl.appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
OracleSqlProcessorImpl.appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
SqlserverSqlProcessorImpl.appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.appendFooterComment(Table table,
List<String> list)
在footer增加comment
|
protected void |
SybaseSqlProcessorImpl.appendFooterComment(Table table,
List<String> list)
在footer增加comment
mysql 实现为空
|
protected void |
InformixSqlProcessorImpl.appendFooterComment(Table table,
List<String> list)
在footer增加comment
实现为空
|
protected void |
SqlserverSqlProcessorImpl.appendFooterComment(Table table,
List<String> list)
在footer增加comment
|
protected void |
MysqlSqlProcessorImpl.appendFooterComment(Table table,
List<String> list)
在footer增加comment
mysql 实现为空
|
protected void |
SqlProcessorImpl.appendPrimarySql(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
InformixSqlProcessorImpl.appendPrimarySql(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.appendTableSpace(StringBuffer ddlBuffer,
Table table)
表空间默认实现
|
protected void |
SybaseSqlProcessorImpl.appendTableSpace(StringBuffer ddlBuffer,
Table table) |
protected void |
InformixSqlProcessorImpl.appendTableSpace(StringBuffer ddlBuffer,
Table table) |
protected void |
MysqlSqlProcessorImpl.appendTableSpace(StringBuffer ddlBuffer,
Table table) |
boolean |
H2SqlProcessorImpl.checkTableExist(Table table,
Connection connection) |
boolean |
SqlProcessorImpl.checkTableExist(Table table,
Connection connection) |
boolean |
TableProcessorImpl.checkTableExist(Table table,
String language,
Connection connection) |
boolean |
MysqlSqlProcessorImpl.checkTableExist(Table table,
String catalog,
DatabaseMetaData metadata) |
List<String> |
TableProcessorImpl.clearRefSqls(Table table,
String language,
Connection connection)
清理关联资源
|
protected List<String> |
SqlProcessorImpl.dealAddFields(Map<String,TableField> fieldDbNames,
String packageName,
Table table) |
protected void |
SqlProcessorImpl.dealConstraintIndex(Table table,
List<String> preDropIndexes,
Map<String,Map<String,String>> dbIndexes)
删除有关联的索引
|
protected void |
InformixSqlProcessorImpl.dealConstraintIndex(Table table,
List<String> preDropIndexes,
Map<String,Map<String,String>> dbIndexes)
删除有关联的索引
informix不做处理
|
protected List<String> |
SqlProcessorImpl.dealDropFields(List<String> dropFields,
Table table) |
protected List<String> |
InformixSqlProcessorImpl.dealDropFields(List<String> dropFields,
Table table) |
protected List<String> |
SqlProcessorImpl.dealExistFields(Map<String,TableField> existInTable,
Map<String,Map<String,String>> dbColumns,
Table table)
比较数据库metadata和配置中数据
|
protected void |
SqlProcessorImpl.defaultChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
DerbySqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
protected void |
Db2SqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
SybaseSqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
protected void |
OracleSqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
InformixSqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
SqlserverSqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected void |
MysqlSqlProcessorImpl.getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
List<String> |
Db2SqlProcessorImpl.getClearTableSql(Table table,
Connection connection) |
List<String> |
SqlProcessorImpl.getClearTableSql(Table table,
Connection connection) |
List<String> |
OracleSqlProcessorImpl.getClearTableSql(Table table,
Connection connection) |
protected Map<String,Map<String,String>> |
SqlProcessorImpl.getColumns(DatabaseMetaData metadata,
String catalog,
Table table) |
List<String> |
SqlProcessorImpl.getCreateSql(Table table,
String packageName) |
List<String> |
TableProcessorImpl.getCreateSql(Table table,
String language) |
List<String> |
TableProcessorImpl.getCreateSql(Table table,
String packageName,
String language) |
protected List<Map<String,String>> |
SqlProcessorImpl.getDbForeignList(Connection connection,
Table table) |
protected ResultSet |
SybaseSqlProcessorImpl.getDbForeignRsSql(Connection connection,
Table table) |
protected Map<String,Map<String,String>> |
SqlProcessorImpl.getDbIndexColumns(DatabaseMetaData metadata,
String schema,
Table table)
获取表的所有索引
|
protected String |
SqlProcessorImpl.getDropForeignSql(String dropConstraint,
Table table) |
protected String |
OracleSqlProcessorImpl.getDropForeignSql(String dropConstraint,
Table table) |
protected String |
InformixSqlProcessorImpl.getDropForeignSql(String dropConstraint,
Table table) |
String |
SqlProcessorImpl.getDropSql(Table table,
String packageName) |
String |
TableProcessorImpl.getDropSql(Table table,
String packageName,
String language) |
protected String |
SqlProcessorImpl.getFieldStdFieldName(String fieldId,
Table table) |
List<String> |
SqlProcessorImpl.getForeignKeySqls(Table table,
String packageName)
获取外键,直接使用table的外键作为需要创建的外键(适用于全量sql)
|
List<String> |
SqlProcessorImpl.getForeignKeySqls(Table table,
String packageName,
List<ForeignReference> foreignReferences)
获取外键
|
protected void |
H2SqlProcessorImpl.getForeignUpdate(Table table,
String packageName,
Connection connection,
List<String> list) |
protected void |
SqlProcessorImpl.getForeignUpdate(Table table,
String packageName,
Connection connection,
List<String> list)
更新外键
|
List<String> |
SqlProcessorImpl.getIndexCreateSql(Table table,
String packageName) |
protected String |
SqlProcessorImpl.getIndexName(Index index,
Table table) |
protected String |
SybaseSqlProcessorImpl.getIndexName(Index index,
Table table) |
protected String |
SqlserverSqlProcessorImpl.getIndexName(Index index,
Table table) |
protected String |
MysqlSqlProcessorImpl.getIndexName(Index index,
Table table) |
protected void |
H2SqlProcessorImpl.getIndexUpdate(Connection connection,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.getIndexUpdate(Connection connection,
Table table,
List<String> list) |
protected StringBuffer |
SqlProcessorImpl.getKeysBuffer(Table table) |
protected String |
SqlProcessorImpl.getOneFkSql(Table table,
Table foreignTable,
ForeignReference foreignReference) |
protected String |
InformixSqlProcessorImpl.getOneFkSql(Table table,
Table foreignTable,
ForeignReference foreignReference) |
protected void |
SqlProcessorImpl.getOtherUpdate(Table table,
String packageName,
Connection connection,
List<String> list) |
protected String |
SqlProcessorImpl.getQueryForeignSql(Table table,
String schema) |
protected String |
OracleSqlProcessorImpl.getQueryForeignSql(Table table,
String schema) |
protected String |
MysqlSqlProcessorImpl.getQueryForeignSql(Table table,
String schema) |
protected String |
DerbySqlProcessorImpl.getSchema(Table table,
DatabaseMetaData metadata) |
protected String |
Db2SqlProcessorImpl.getSchema(Table table,
DatabaseMetaData metadata) |
protected String |
SqlProcessorImpl.getSchema(Table table,
DatabaseMetaData metadata) |
protected List<String> |
SqlProcessorImpl.getSeqTriggerSql(Table table,
String packageName)
创建seq和trigger语句
|
protected List<String> |
OracleSqlProcessorImpl.getSeqTriggerSql(Table table,
String packageName) |
protected void |
SqlProcessorImpl.getSeqTriggerUpdate(Connection connection,
Table table,
List<String> list) |
protected void |
OracleSqlProcessorImpl.getSeqTriggerUpdate(Connection connection,
Table table,
List<String> list) |
protected void |
SqlProcessorImpl.getTableColumnUpdate(Table table,
String packageName,
DatabaseMetaData metadata,
String catalog,
List<String> list)
获取列变化增量语句
|
List<String> |
SqlProcessorImpl.getTableCreateSql(Table table,
String packageName) |
protected String |
SqlProcessorImpl.getTableName(Table table) |
List<String> |
SqlProcessorImpl.getUpdateSql(Table table,
String packageName,
Connection connection) |
List<String> |
TableProcessorImpl.getUpdateSql(Table table,
String packageName,
String language,
Connection connection) |
protected boolean |
SqlProcessorImpl.notNeedDropIndex(List<Index> preAddIndexes,
Table table,
String dbIndexName,
Map<String,Map<String,String>> dbIndexMaps,
Connection connection) |
protected boolean |
InformixSqlProcessorImpl.notNeedDropIndex(List<Index> preAddIndexes,
Table table,
String dbIndexName,
Map<String,Map<String,String>> dbIndexMaps,
Connection connection)
informix不会删除索引
因为有系统索引(主键、外键、clob都会有)存在,无法辨别
|
void |
TableProcessorImpl.removeTable(Table table) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableProcessorImpl.getSortedTables(List<Table> tableList)
外部table列表排序方法
|
Modifier and Type | Method and Description |
---|---|
List<String> |
TableSpaceSqlProcessor.getCreateSql(Table table,
String packageName) |
List<String> |
TableSpaceSqlProcessor.getUpdateSql(Table table,
String packageName,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
List<String> |
TableSpaceSqlProcessorImpl.getCreateSql(Table table,
String packageName) |
List<String> |
TableSpaceSqlProcessorImpl.getUpdateSql(Table table,
String packageName,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
static Table |
DataBaseUtil.getTableById(String id,
ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
static List<Table> |
DataBaseUtil.getTables(ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
static TableField |
DataBaseUtil.getPrimaryField(Table table) |
static String |
DataBaseUtil.getSchema(Table table,
DatabaseMetaData metadata) |
static StandardField |
DataBaseUtil.getStandardField(String tableFieldId,
Table table,
ClassLoader loader) |
Copyright © 2006–2018 TinyGroup. All rights reserved.