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