public interface DBAgent
| 限定符和类型 | 方法和说明 |
|---|---|
List<List> |
crossDBList(Object account_id,
String listName,
SqlInfo sqlInfo,
Integer start,
Integer count,
int strategy) |
boolean |
delete(Object account_id,
Object obj) |
Object |
excuteHardSimpleSql(String sql,
Class clazz) |
Object |
excuteSimpleSql(String sql,
Class clazz)
假设类仅有一个数据库的配置,根据对应的类获取类对应的数据库的信息,
注意: 如果clazz为null,则会使用当前线程中的数据源,会有不确定的结果。
|
boolean |
fakeDelete(Object account_id,
Object obj) |
Object |
get(Object account_id,
Class clazz,
Serializable id) |
List |
getEntityList(Object account_id,
Class cls,
SqlInfo sqlInfo,
int strategy) |
List |
getMaps(Object accountId,
String mapName,
List<Object[]> paramsList) |
List |
getObjectList(Object account_id,
String listName,
SqlInfo sqlInfo,
Long start,
Long count,
int strategy,
boolean setDS,
boolean getAll) |
List |
getOrderedCrossList(Object account_id,
String listName,
SqlInfo sqlInfo,
Long start,
Long count,
int strategy,
boolean forward) |
Map |
save(Object account_id,
List obs) |
Serializable |
save(Object account_id,
Object object) |
boolean |
update(Object account_id,
Object object) |
boolean |
updateObjs(Object account_id,
List obs) |
Serializable save(Object account_id, Object object) throws DaoException
DaoExceptionMap save(Object account_id, List obs) throws DaoException
DaoExceptionboolean delete(Object account_id, Object obj) throws DaoException
DaoExceptionboolean fakeDelete(Object account_id, Object obj) throws DaoException
DaoExceptionboolean update(Object account_id, Object object) throws DaoException
DaoExceptionObject get(Object account_id, Class clazz, Serializable id) throws DaoException
DaoExceptionList getObjectList(Object account_id, String listName, SqlInfo sqlInfo, Long start, Long count, int strategy, boolean setDS, boolean getAll) throws DaoException
DaoExceptionList getEntityList(Object account_id, Class cls, SqlInfo sqlInfo, int strategy) throws DaoException
DaoExceptionList<List> crossDBList(Object account_id, String listName, SqlInfo sqlInfo, Integer start, Integer count, int strategy) throws DaoException
DaoExceptionList getOrderedCrossList(Object account_id, String listName, SqlInfo sqlInfo, Long start, Long count, int strategy, boolean forward) throws DaoException
DaoExceptionList getMaps(Object accountId, String mapName, List<Object[]> paramsList) throws StrategyException, DaoException
boolean updateObjs(Object account_id, List obs) throws DaoException
DaoExceptionObject excuteSimpleSql(String sql, Class clazz) throws DaoException
sql - DaoExceptionObject excuteHardSimpleSql(String sql, Class clazz) throws DaoException
DaoExceptionCopyright © 2022. All rights reserved.