public class H2DDLBuilder extends MySQLDDLBuilder
loggerconnectionExecutor, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
H2DDLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Entity> |
getEntityList()
从数据库提取表信息
|
protected void |
getEntityPropertyList(Entity entity)
提取表字段信息
|
protected void |
getIndex(Entity entity)
提取索引信息
|
Map<String,String> |
getTypeFieldMapping()
获取默认Java类型与数据库类型映射关系表
|
boolean |
hasIndexExists(String tableName,
String indexName)
判断索引是否存在
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
createTable, dropIndex, enableForeignConstraintCheck, getAutoIncrementSQL, getDatabaseName, getVirtualEntityalterColumn, automaticCreateTableAndColumn, createForeignKey, createIndex, createProperty, dropColumn, dropTable, getDatabaseEntity, hasConstraintExists, rebuild, refreshDbEntityListgetFieldFromInstance, replaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameter, setPrepareStatementParameterpublic H2DDLBuilder(QuickDAOConfig quickDAOConfig)
public boolean hasTableExists(Entity entity) throws SQLException
DDLBuilderhasTableExists 在接口中 DDLBuilderhasTableExists 在类中 MySQLDDLBuilderSQLExceptionpublic boolean hasIndexExists(String tableName, String indexName) throws SQLException
DDLBuilderhasIndexExists 在接口中 DDLBuilderhasIndexExists 在类中 MySQLDDLBuildertableName - 表名indexName - 索引名称SQLExceptionpublic Map<String,String> getTypeFieldMapping()
DDLBuildergetTypeFieldMapping 在接口中 DDLBuildergetTypeFieldMapping 在类中 MySQLDDLBuilderprotected void getIndex(Entity entity) throws SQLException
AbstractDDLBuildergetIndex 在类中 MySQLDDLBuilderSQLExceptionprotected void getEntityPropertyList(Entity entity) throws SQLException
AbstractDDLBuildergetEntityPropertyList 在类中 MySQLDDLBuilderSQLExceptionprotected List<Entity> getEntityList() throws SQLException
AbstractDDLBuildergetEntityList 在类中 MySQLDDLBuilderSQLExceptionCopyright © 2021. All rights reserved.