| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_SIZE |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
static String |
getDaoConfigFile() |
List |
getEntityList(Object account_id,
Class cls,
SqlInfo sqlInfo,
int strategy)
根据对象的id list,得到对象List
|
static DBAgent |
getInstance() |
List |
getMaps(Object accountId,
String mapName,
List<Object[]> paramsList)
基本类型的Map查询,针对只返回一个Column的情况
|
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) |
static void |
setDaoConfigFile(String daoConfigFile) |
boolean |
update(Object account_id,
Object object) |
boolean |
updateObjs(Object account_id,
List obs) |
public static final int DEFAULT_SIZE
public static String getDaoConfigFile()
public static void setDaoConfigFile(String daoConfigFile)
public static DBAgent getInstance()
public Serializable save(Object account_id, Object object) throws DaoException
save 在接口中 DBAgentDaoExceptionpublic Map save(Object account_id, List obs) throws DaoException
save 在接口中 DBAgentDaoExceptionpublic boolean updateObjs(Object account_id, List obs) throws DaoException
updateObjs 在接口中 DBAgentDaoExceptionpublic boolean delete(Object account_id, Object obj) throws DaoException
delete 在接口中 DBAgentDaoExceptionpublic boolean fakeDelete(Object account_id, Object obj) throws DaoException
fakeDelete 在接口中 DBAgentDaoExceptionpublic boolean update(Object account_id, Object object) throws DaoException
update 在接口中 DBAgentDaoExceptionpublic Object get(Object account_id, Class clazz, Serializable id) throws DaoException
get 在接口中 DBAgentDaoExceptionpublic List getObjectList(Object account_id, String listName, SqlInfo sqlInfo, Long start, Long count, int strategy, boolean setDS, boolean getAll) throws DaoException
getObjectList 在接口中 DBAgentDaoExceptionpublic List getEntityList(Object account_id, Class cls, SqlInfo sqlInfo, int strategy) throws DaoException
getEntityList 在接口中 DBAgentaccount_id - cls - sqlInfo - strategy - DaoExceptionpublic List<List> crossDBList(Object account_id, String listName, SqlInfo sqlInfo, Integer start, Integer count, int strategy) throws DaoException
crossDBList 在接口中 DBAgentDaoExceptionpublic List getOrderedCrossList(Object account_id, String listName, SqlInfo sqlInfo, Long start, Long count, int strategy, boolean forward) throws DaoException
getOrderedCrossList 在接口中 DBAgentDaoExceptionpublic List getMaps(Object accountId, String mapName, List<Object[]> paramsList) throws StrategyException, DaoException
getMaps 在接口中 DBAgentStrategyExceptionDaoExceptionpublic Object excuteSimpleSql(String sql, Class clazz) throws DaoException
DBAgentexcuteSimpleSql 在接口中 DBAgentDaoExceptionpublic Object excuteHardSimpleSql(String sql, Class clazz) throws DaoException
excuteHardSimpleSql 在接口中 DBAgentDaoExceptionCopyright © 2022. All rights reserved.