public interface DatabaseHelper extends AutoCloseable
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
DatabaseHelper.ChangeSupportable |
static class |
DatabaseHelper.Registry |
| 限定符和类型 | 方法和说明 |
|---|---|
<E> E |
callInTransaction(Callable<E> callable)
在同一个数据库事务中执行操作
|
<T,ID> com.j256.ormlite.dao.Dao<T,ID> |
dao(Table<T> table)
获取指定表的Dao对象
|
DatabaseHelper.ChangeSupportable |
getChangeSupportable() |
close<T,ID> com.j256.ormlite.dao.Dao<T,ID> dao(Table<T> table) throws SQLException
table - 表SQLException<E> E callInTransaction(Callable<E> callable) throws Exception
callable - 包装要执行的操作ExceptionDatabaseHelper.ChangeSupportable getChangeSupportable()
Copyright © 2020. All rights reserved.