connection, dataSource, fieldMapping, sqlHelper, startTranscation, syntaxHandler| 构造器和说明 |
|---|
SQLiteDAO(DataSource dataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
createForeignKey()
创建外键约束
|
protected void |
createTable(Entity entity)
创建新表
|
protected void |
dropIndex(String tableName,
String indexName)
删除索引
|
protected Entity[] |
getDatabaseInfo()
获取数据库信息
|
protected boolean |
isIndexExists(String tableName,
String indexName)
索引是否存在
|
<T> Condition<T> |
query(Class<T> _class)
复杂查询接口
|
isConstraintExistsautoBuildDatabase, clear, commit, create, createIndex, createUniqueKey, delete, delete, drop, endTransaction, exist, fetch, fetch, fetchList, getConnection, rebuild, rollback, rollback, save, save, save, setSavePoint, startTransactionpublic SQLiteDAO(DataSource dataSource)
protected Entity[] getDatabaseInfo() throws SQLException
AbstractDAOgetDatabaseInfo 在类中 MySQLDAOSQLExceptionprotected void createTable(Entity entity) throws SQLException
createTable 在类中 MySQLDAOSQLExceptionprotected void createForeignKey()
throws SQLException
AbstractDAOcreateForeignKey 在类中 MySQLDAOSQLExceptionprotected boolean isIndexExists(String tableName, String indexName) throws SQLException
AbstractDAOisIndexExists 在类中 MySQLDAOSQLExceptionprotected void dropIndex(String tableName, String indexName) throws SQLException
AbstractDAOdropIndex 在类中 MySQLDAOSQLExceptionCopyright © 2019. All rights reserved.