public abstract class AbstractJdbcQuery extends AbstractDataLayer implements IDataQuery
dbCluster, entityMetaManager, primaryCache, secondCache, txManager| Constructor and Description |
|---|
AbstractJdbcQuery() |
| Modifier and Type | Method and Description |
|---|---|
private <T> Map<EntityPK,T> |
_selectByPks(IDBResource dbResource,
Class<T> clazz,
EntityPK[] pks,
List<DefaultQueryImpl.OrderBy> order) |
private Number |
_selectCount(IDBResource dbResource,
Class<?> clazz)
获取全局表的count数
|
protected <T> Map<EntityPK,T> |
selectByPksWithCache(IDBResource dbResource,
Class<T> clazz,
EntityPK[] pks,
List<DefaultQueryImpl.OrderBy> order,
boolean useCache) |
protected <T> List<T> |
selectByQuery(IDBResource dbResource,
IQuery<T> query,
Class<T> clazz) |
protected List<Map<String,Object>> |
selectBySql(IDBResource dbResource,
SQL sql) |
protected <T> Number |
selectCountByQuery(IQuery<T> query,
IDBResource dbResource,
Class<T> clazz) |
protected Number |
selectCountWithCache(IDBResource dbResource,
Class<?> clazz,
boolean useCache)
带缓存的获取全局表count
|
protected <T> EntityPK[] |
selectPksByQuery(IDBResource dbResource,
IQuery<T> query,
Class<T> clazz) |
fillParam, getDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, isCacheAvailable, isCacheAvailable, isSecondCacheAvailable, isSecondCacheAvailable, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerprivate Number _selectCount(IDBResource dbResource, Class<?> clazz) throws SQLException
conn - clazz - SQLExceptionprotected Number selectCountWithCache(IDBResource dbResource, Class<?> clazz, boolean useCache) throws SQLException
conn - clusterName - clazz - SQLExceptionprotected <T> Number selectCountByQuery(IQuery<T> query, IDBResource dbResource, Class<T> clazz) throws SQLException
SQLExceptionprivate <T> Map<EntityPK,T> _selectByPks(IDBResource dbResource, Class<T> clazz, EntityPK[] pks, List<DefaultQueryImpl.OrderBy> order) throws SQLException
SQLExceptionprotected <T> Map<EntityPK,T> selectByPksWithCache(IDBResource dbResource, Class<T> clazz, EntityPK[] pks, List<DefaultQueryImpl.OrderBy> order, boolean useCache) throws SQLException
SQLExceptionprotected List<Map<String,Object>> selectBySql(IDBResource dbResource, SQL sql) throws SQLException
SQLExceptionprotected <T> List<T> selectByQuery(IDBResource dbResource, IQuery<T> query, Class<T> clazz) throws SQLException
SQLExceptionprotected <T> EntityPK[] selectPksByQuery(IDBResource dbResource, IQuery<T> query, Class<T> clazz) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.