public class OracleDDLBuilder extends PostgreDDLBuilder
loggerconnectionExecutor, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
OracleDDLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createTable(Entity entity)
创建新表
|
void |
enableForeignConstraintCheck(boolean enable)
是否开启外键约束检查
|
protected String |
getAutoIncrementSQL(Property property)
获取自增语句
|
protected List<Entity> |
getEntityList()
从数据库提取表信息
|
protected void |
getEntityPropertyList(Entity entity)
提取表字段信息
|
protected void |
getIndex(Entity entity)
提取索引信息
|
Map<String,String> |
getTypeFieldMapping()
获取默认Java类型与数据库类型映射关系表
|
protected List<Entity> |
getVirtualEntity()
获取虚拟表信息
|
boolean |
hasIndexExists(String tableName,
String indexName)
判断索引是否存在
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
alterColumn, automaticCreateTableAndColumn, createForeignKey, createIndex, createProperty, dropColumn, dropIndex, dropTable, getDatabaseEntity, getDatabaseName, hasConstraintExists, rebuild, refreshDbEntityListgetFieldFromInstance, replaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameter, setPrepareStatementParameterpublic OracleDDLBuilder(QuickDAOConfig quickDAOConfig)
public boolean hasTableExists(Entity entity) throws SQLException
DDLBuilderhasTableExists 在接口中 DDLBuilderhasTableExists 在类中 PostgreDDLBuilderSQLExceptionpublic void createTable(Entity entity) throws SQLException
DDLBuildercreateTable 在接口中 DDLBuildercreateTable 在类中 PostgreDDLBuilderSQLExceptionpublic boolean hasIndexExists(String tableName, String indexName) throws SQLException
DDLBuilderhasIndexExists 在接口中 DDLBuilderhasIndexExists 在类中 PostgreDDLBuildertableName - 表名indexName - 索引名称SQLExceptionpublic void enableForeignConstraintCheck(boolean enable)
throws SQLException
DDLBuilderenableForeignConstraintCheck 在接口中 DDLBuilderenableForeignConstraintCheck 在类中 PostgreDDLBuilderSQLExceptionpublic Map<String,String> getTypeFieldMapping()
DDLBuildergetTypeFieldMapping 在接口中 DDLBuildergetTypeFieldMapping 在类中 PostgreDDLBuilderprotected List<Entity> getVirtualEntity()
AbstractDDLBuildergetVirtualEntity 在类中 AbstractDDLBuilderprotected String getAutoIncrementSQL(Property property)
AbstractDDLBuildergetAutoIncrementSQL 在类中 PostgreDDLBuilderproperty - 自增字段信息protected void getIndex(Entity entity) throws SQLException
AbstractDDLBuildergetIndex 在类中 PostgreDDLBuilderSQLExceptionprotected void getEntityPropertyList(Entity entity) throws SQLException
AbstractDDLBuildergetEntityPropertyList 在类中 PostgreDDLBuilderSQLExceptionprotected List<Entity> getEntityList() throws SQLException
AbstractDDLBuildergetEntityList 在类中 PostgreDDLBuilderSQLExceptionCopyright © 2021. All rights reserved.