接口 DDLBuilder
- 所有已知实现类:
DefaultDDLBuilder
public interface DDLBuilder
-
方法概要
修饰符和类型方法说明default 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) getDataTypeDefinitionByClass(Class<?> javaType) 根据 class 获取对应的 SQLType 类型 如果没有则返回 JSON todo 是否需要 ?getTableConstraint(Table table)
-
方法详细资料
-
getCreateTableDDL
获取建表语句- 返回:
- s
-
getCreateDefinition
-
getColumnDefinitions
-
getTableConstraint
-
getColumnDefinition
-
getDataTypeDefinition
-
getColumnConstraint
当前列对象通常的 DDL 如设置 字段名 类型 是否可以为空 默认值等 (建表语句片段 , 需和 specialDDL 一起使用才完整) -
getDataTypeDefinitionByClass
根据 class 获取对应的 SQLType 类型 如果没有则返回 JSON todo 是否需要 ?- 参数:
javaType- 需要获取的类型- 返回:
- a
Stringobject.
-
defaultDateType
默认值 todo 是否需要 ?- 返回:
- 默认类型值
-
getAlertTableDDL
todo 暂时只支持添加新字段 需要同时支持 删除或修改 获取 AlertTableDDL- 参数:
needAdds- atableInfo- a
-