public interface DdlGenerator
Modifier and Type | Method and Description |
---|---|
String |
addConstraint(Constraint con) |
String |
addIndex(IndexDef index,
TableMapping meta,
String tablename) |
String |
getDropConstraintSql(String tableName,
String contraintName)
生成删除约束的语句
|
List<String> |
toIndexClause(TableMapping obj,
String tablename)
转为索引语句
|
String |
toTableCreateClause(TableMapping obj,
String tablename)
转为建表语句
|
List<String> |
toTableModifyClause(TableMapping meta,
String tableName,
Set<ColumnMapping> insert,
List<ColumnMapping> changed,
List<String> delete)
生成Alter table 语句
|
List<String> |
toViewCreateClause()
生成 create view语句
|
String toTableCreateClause(TableMapping obj, String tablename)
obj
- tablename
- List<String> toIndexClause(TableMapping obj, String tablename)
obj
- tablename
- List<String> toTableModifyClause(TableMapping meta, String tableName, Set<ColumnMapping> insert, List<ColumnMapping> changed, List<String> delete)
String getDropConstraintSql(String tableName, String contraintName)
String addIndex(IndexDef index, TableMapping meta, String tablename)
String addConstraint(Constraint con)
Copyright © 2020. All rights reserved.