Interface DDLBuilder
- All Known Implementing Classes:
DefaultDDLBuilder
public interface DDLBuilder
DDLBuilder
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptiondefault String默认值 todo 是否需要 ?default StringgetAlertTableDDL(Column[] needAdds, Table tableInfo) todo 暂时只支持添加新字段 需要同时支持 删除或修改 获取 AlertTableDDLgetColumnConstraint(Column column) 当前列对象通常的 DDL 如设置 字段名 类型 是否可以为空 默认值等 (建表语句片段 , 需和 specialDDL 一起使用才完整)default StringgetColumnDefinition(Column column) getColumnDefinitions(Column[] columns) getCreateDefinition(Table table) default StringgetCreateTableDDL(Table table) 获取建表语句default StringgetDataTypeDefinition(Column column) default StringgetDataTypeDefinitionByName(String dataType, Integer length) getDataTypeNameByJDBCType(JDBCType dataType) getTableConstraint(Table table)
-
Method Details
-
getCreateTableDDL
-
getCreateDefinition
-
getColumnDefinitions
-
getTableConstraint
-
getColumnDefinition
-
getDataTypeDefinition
-
getColumnConstraint
-
getDataTypeNameByJDBCType
-
getDataTypeDefinitionByName
-
defaultDateType
-
getAlertTableDDL
-