public interface TableBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
void |
alterColumn(Property property)
修改列
|
void |
createIndex(Entity entity,
IndexType indexType)
创建索引
|
void |
createTable(Entity entity)
创建新表
|
void |
dropIndex(Entity entity,
IndexType indexType)
删除索引
|
void |
dropTable(Entity entity)
删除表
|
String |
getAutoIncrementSQL(Property property)
创建自增列SQL语句
|
Entity[] |
getDatabaseEntity()
获取数据库信息
|
boolean |
hasConstraintExists(String tableName,
String constraintName)
判断外键约束是否已经存在
|
boolean |
hasIndexExists(Entity entity,
IndexType indexType)
判断索引是否已经存在
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
void |
rebuild(Entity entity)
重建表
|
Entity[] getDatabaseEntity() throws SQLException
SQLExceptionString getAutoIncrementSQL(Property property) throws SQLException
SQLExceptionboolean hasTableExists(Entity entity) throws SQLException
SQLExceptionvoid createTable(Entity entity) throws SQLException
SQLExceptionvoid alterColumn(Property property) throws SQLException
SQLExceptionvoid dropTable(Entity entity) throws SQLException
SQLExceptionvoid rebuild(Entity entity) throws SQLException
SQLExceptionboolean hasIndexExists(Entity entity, IndexType indexType) throws SQLException
SQLExceptionvoid createIndex(Entity entity, IndexType indexType) throws SQLException
entity - 实体表信息indexType - 索引类型SQLExceptionboolean hasConstraintExists(String tableName, String constraintName) throws SQLException
SQLExceptionvoid dropIndex(Entity entity, IndexType indexType) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.