public class SQLiteDDLBuilder extends AbstractDDLBuilder
loggerconnection, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
SQLiteDDLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createTable(Entity entity)
创建新表
|
void |
dropColumn(Property property)
删除列
|
void |
enableForeignConstraintCheck(boolean enable)
是否开启外键约束检查
|
protected String |
getAutoIncrementSQL(Property property)
获取自增语句
|
List<Entity> |
getDatabaseEntity()
获取数据库信息
|
Map<String,String> |
getTypeFieldMapping()
获取默认Java类型与数据库类型映射关系表
|
boolean |
hasIndexExists(String tableName,
String indexName)
判断索引是否存在
|
boolean |
hasTableExists(Entity entity)
判断表是否已经存在
|
alterColumn, automaticCreateTableAndColumn, createForeignKey, createIndex, createProperty, dropIndex, dropTable, getCreateTableBuilder, getDatabaseName, getVirtualEntity, hasConstraintExists, rebuild, refreshDbEntityListgetFieldFromInstance, replaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameter, setPrepareStatementParameterpublic SQLiteDDLBuilder(QuickDAOConfig quickDAOConfig)
public List<Entity> getDatabaseEntity() throws SQLException
DDLBuildergetDatabaseEntity 在接口中 DDLBuildergetDatabaseEntity 在类中 AbstractDDLBuilderSQLExceptionpublic boolean hasTableExists(Entity entity) throws SQLException
DDLBuilderhasTableExists 在接口中 DDLBuilderhasTableExists 在类中 AbstractDDLBuilderSQLExceptionpublic void createTable(Entity entity) throws SQLException
DDLBuildercreateTable 在接口中 DDLBuildercreateTable 在类中 AbstractDDLBuilderSQLExceptionprotected String getAutoIncrementSQL(Property property)
AbstractDDLBuildergetAutoIncrementSQL 在类中 AbstractDDLBuilderproperty - 自增字段信息public void dropColumn(Property property) throws SQLException
DDLBuilderdropColumn 在接口中 DDLBuilderdropColumn 在类中 AbstractDDLBuilderSQLExceptionpublic boolean hasIndexExists(String tableName, String indexName) throws SQLException
DDLBuilderhasIndexExists 在接口中 DDLBuilderhasIndexExists 在类中 AbstractDDLBuildertableName - 表名indexName - 索引名称SQLExceptionpublic void enableForeignConstraintCheck(boolean enable)
throws SQLException
DDLBuilderSQLExceptionpublic Map<String,String> getTypeFieldMapping()
DDLBuildergetTypeFieldMapping 在接口中 DDLBuildergetTypeFieldMapping 在类中 AbstractDDLBuilderCopyright © 2021. All rights reserved.