public class MySQLDDLBuilder extends AbstractDDLBuilder
fieldMapping, loggerconnection, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
MySQLDDLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createTable(Entity entity)
创建新表
|
void |
dropIndex(Entity entity,
IndexType indexType)
删除索引
|
String |
getAutoIncrementSQL(Property property)
获取自增语句
|
List<Entity> |
getDatabaseEntity()
获取数据库信息
|
String |
getDatabaseName()
获取数据库名称
|
protected List<Entity> |
getVirtualEntity()
获取虚拟表信息
|
boolean |
hasIndexExists(Entity entity,
IndexType indexType)
判断索引是否存在
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
alterColumn, automaticCreateTableAndField, createForeignKey, createIndex, createProperty, dropColumn, dropTable, getCreateTableBuilder, hasConstraintExists, rebuild, refreshDbEntityList, updateTableIndexreplaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameterpublic MySQLDDLBuilder(QuickDAOConfig quickDAOConfig)
public String getDatabaseName() throws SQLException
DDLBuildergetDatabaseName 在接口中 DDLBuildergetDatabaseName 在类中 AbstractDDLBuilderSQLExceptionpublic List<Entity> getDatabaseEntity() throws SQLException
DDLBuildergetDatabaseEntity 在接口中 DDLBuildergetDatabaseEntity 在类中 AbstractDDLBuilderSQLExceptionpublic String getAutoIncrementSQL(Property property)
AbstractDDLBuildergetAutoIncrementSQL 在类中 AbstractDDLBuilderproperty - 自增字段信息public boolean hasTableExists(Entity entity) throws SQLException
DDLBuilderhasTableExists 在接口中 DDLBuilderhasTableExists 在类中 AbstractDDLBuilderSQLExceptionpublic void createTable(Entity entity) throws SQLException
DDLBuildercreateTable 在接口中 DDLBuildercreateTable 在类中 AbstractDDLBuilderSQLExceptionpublic boolean hasIndexExists(Entity entity, IndexType indexType) throws SQLException
AbstractDDLBuilderhasIndexExists 在类中 AbstractDDLBuilderentity - 表信息indexType - 索引类型SQLExceptionpublic void dropIndex(Entity entity, IndexType indexType) throws SQLException
DDLBuilderdropIndex 在接口中 DDLBuilderdropIndex 在类中 AbstractDDLBuilderSQLExceptionprotected List<Entity> getVirtualEntity()
getVirtualEntity 在类中 AbstractDDLBuilderCopyright © 2020. All rights reserved.