public interface DDLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
void |
alterColumn(Property property)
修改列
|
void |
automaticCreateTableAndField()
自动建表和新增字段
|
void |
createForeignKey(Property property)
建立外键约束
|
void |
createIndex(Entity entity,
IndexType indexType)
创建索引
|
void |
createProperty(Property property)
创建新表
|
void |
createTable(Entity entity)
创建新表
|
void |
dropColumn(Property property)
删除列
|
void |
dropIndex(Entity entity,
IndexType indexType)
删除索引
|
void |
dropTable(String tableName)
删除表
|
List<Entity> |
getDatabaseEntity()
获取数据库信息
|
String |
getDatabaseName()
获取数据库名称
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
void |
rebuild(Entity entity)
重建表
|
void |
refreshDbEntityList()
刷新数据库字段信息
|
String getDatabaseName() throws SQLException
SQLExceptionList<Entity> getDatabaseEntity() throws SQLException
SQLExceptionboolean hasTableExists(Entity entity) throws SQLException
SQLExceptionvoid createTable(Entity entity) throws SQLException
SQLExceptionvoid createProperty(Property property) throws SQLException
SQLExceptionvoid alterColumn(Property property) throws SQLException
SQLExceptionvoid dropColumn(Property property) throws SQLException
SQLExceptionvoid dropTable(String tableName) throws SQLException
SQLExceptionvoid rebuild(Entity entity) throws SQLException
SQLExceptionvoid createIndex(Entity entity, IndexType indexType) throws SQLException
SQLExceptionvoid dropIndex(Entity entity, IndexType indexType) throws SQLException
SQLExceptionvoid createForeignKey(Property property) throws SQLException
SQLExceptionvoid automaticCreateTableAndField()
throws SQLException
SQLExceptionvoid refreshDbEntityList()
throws SQLException
SQLExceptionCopyright © 2020. All rights reserved.