public class DBAccessorImpl extends java.lang.Object implements DBAccessor
构造器和说明 |
---|
DBAccessorImpl(TransactionProvider transactionProvider,
DAOContext daoContext) |
限定符和类型 | 方法和说明 |
---|---|
<T> T |
runDMLAction(DBAction<T> action)
运行数据库增删改操作(开启事务)
|
<T> T |
runQueryAction(DBAction<T> action)
运行数据库查询操作(不开启事务)
|
public DBAccessorImpl(TransactionProvider transactionProvider, DAOContext daoContext)
public <T> T runQueryAction(DBAction<T> action) throws java.lang.Exception
DBAccessor
runQueryAction
在接口中 DBAccessor
java.lang.Exception
public <T> T runDMLAction(DBAction<T> action) throws java.lang.Exception
DBAccessor
runDMLAction
在接口中 DBAccessor
java.lang.Exception