public class SqlToyDaoSupport extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataSource |
dataSource
数据源
|
protected SaveMode |
IGNORE |
protected org.slf4j.Logger |
logger
定义日志
|
protected SqlToyContext |
sqlToyContext
sqlToy上下文定义
|
protected SaveMode |
UPDATE |
| 构造器和说明 |
|---|
SqlToyDaoSupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Batch |
batch() |
protected Long |
batchUpdate(String sqlOrSqlId,
List dataSet,
Boolean autoCommit) |
protected Long |
batchUpdate(String sqlOrSqlId,
List dataSet,
int batchSize,
Boolean autoCommit) |
protected Long |
batchUpdate(String sqlOrSqlId,
List dataSet,
int batchSize,
Boolean autoCommit,
DataSource dataSource) |
protected String[] |
cacheMatchKeys(CacheMatchFilter cacheMatchFilter,
String... matchRegexes) |
protected String[] |
cacheMatchKeys(String matchRegex,
CacheMatchFilter cacheMatchFilter)
已过时。
|
protected <T extends Serializable> |
convertType(List sourceList,
Class<T> resultType,
String... ignoreProperties) |
protected <T extends Serializable> |
convertType(Page sourcePage,
Class<T> resultType,
String... ignoreProperties) |
protected <T extends Serializable> |
convertType(Serializable source,
Class<T> resultType,
String... ignoreProperties) |
protected Delete |
delete() |
protected Long |
delete(Serializable entity) |
protected Long |
delete(Serializable entity,
DataSource dataSource) |
protected <T extends Serializable> |
deleteAll(List<T> entities) |
protected <T extends Serializable> |
deleteAll(List<T> entities,
DataSource dataSource) |
protected Long |
deleteByIds(Class entityClass,
Object... ids) |
protected Long |
deleteByQuery(Class entityClass,
EntityQuery entityQuery) |
protected Elastic |
elastic() |
protected Execute |
execute() |
protected Long |
executeSql(String sqlOrSqlId) |
protected Long |
executeSql(String sqlOrSqlId,
Map<String,Object> paramsMap) |
protected Long |
executeSql(String sqlOrSqlId,
Serializable entity) |
protected Long |
executeSql(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue) |
protected Long |
executeSql(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
Boolean autoCommit,
DataSource dataSource) |
protected StoreResult |
executeStore(String storeSqlOrKey,
Object[] inParamValues) |
protected StoreResult |
executeStore(String storeSqlOrKey,
Object[] inParamValues,
Integer[] outParamsType,
Class resultType) |
protected StoreResult |
executeStore(String storeSqlOrKey,
Object[] inParamsValue,
Integer[] outParamsType,
Class resultType,
DataSource dataSource) |
protected boolean |
existCache(String cacheName) |
protected void |
fetchStream(QueryExecutor queryExecutor,
StreamResultHandler streamResultHandler) |
protected QueryResult |
findByQuery(QueryExecutor queryExecutor) |
protected <T> List<T> |
findBySql(String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType) |
protected <T> List<T> |
findBySql(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
Class<T> resultType) |
protected <T extends Serializable> |
findBySql(String sqlOrSqlId,
T entity) |
protected <T> List<T> |
findEntity(Class<T> entityClass,
EntityQuery entityQuery) |
protected <T> List<T> |
findEntity(Class entityClass,
EntityQuery entityQuery,
Class<T> resultType) |
protected QueryResult |
findPageByQuery(Page page,
QueryExecutor queryExecutor) |
protected <T> Page<T> |
findPageBySql(Page page,
String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType) |
protected <T> Page<T> |
findPageBySql(Page page,
String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
Class<T> resultType) |
protected <T extends Serializable> |
findPageBySql(Page page,
String sqlOrSqlId,
T entity) |
protected <T> Page<T> |
findPageEntity(Page page,
Class<T> entityClass,
EntityQuery entityQuery) |
protected <T> Page<T> |
findPageEntity(Page page,
Class entityClass,
EntityQuery entityQuery,
Class<T> resultType) |
protected QueryResult |
findTopByQuery(QueryExecutor queryExecutor,
double topSize) |
protected <T> List<T> |
findTopBySql(String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType,
double topSize) |
protected <T> List<T> |
findTopBySql(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
Class<T> resultType,
double topSize) |
protected <T extends Serializable> |
findTopBySql(String sqlOrSqlId,
T entity,
double topSize) |
protected void |
flush() |
protected void |
flush(DataSource dataSource) |
protected String |
generateBizId(Serializable entity) |
protected long |
generateBizId(String signature,
int increment) |
protected int |
getBatchSize() |
protected Set<String> |
getCacheNames() |
protected Long |
getCountByEntityQuery(Class entityClass,
EntityQuery entityQuery) |
protected Long |
getCountByQuery(QueryExecutor queryExecutor) |
protected Long |
getCountBySql(String sqlOrSqlId,
Map<String,Object> paramsMap) |
protected Long |
getCountBySql(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue) |
protected DataSource |
getDataSource(DataSource pointDataSource) |
protected String |
getDialect(DataSource dataSource) |
protected EntityMeta |
getEntityMeta(Class entityClass) |
protected QueryResult |
getRandomResult(QueryExecutor queryExecutor,
double randomCount) |
protected <T> List<T> |
getRandomResult(String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType,
double randomCount) |
protected <T> List<T> |
getRandomResult(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
Class<T> resultType,
double randomCount) |
protected Object |
getSingleValue(String sqlOrSqlId,
Map<String,Object> paramsMap) |
protected <T> T |
getSingleValue(String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType) |
protected Object |
getSingleValue(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue)
已过时。
|
protected Object |
getSingleValue(String sqlOrSqlId,
String[] paramsNamed,
Object[] paramsValue,
DataSource dataSource) |
protected SqlToyConfig |
getSqlToyConfig(String sqlKey,
SqlType sqlType) |
protected SqlToyContext |
getSqlToyContext() |
protected List<ColumnMeta> |
getTableColumns(String catalog,
String schema,
String tableName,
DataSource dataSource) |
protected List<TableMeta> |
getTables(String catalog,
String schema,
String tableName,
DataSource dataSource) |
protected HashMap<String,Object[]> |
getTranslateCache(String cacheName,
String cacheType) |
protected <T> List<T> |
getTranslateCache(String cacheName,
String cacheType,
Class<T> reusltType) |
protected boolean |
isUnique(Serializable entity,
String... paramsNamed) |
protected boolean |
isUnique(UniqueExecutor uniqueExecutor) |
protected Load |
load() |
protected <T extends Serializable> |
load(T entity) |
protected <T extends Serializable> |
load(T entity,
LockMode lockMode) |
protected <T extends Serializable> |
load(T entity,
LockMode lockMode,
DataSource dataSource) |
protected <T extends Serializable> |
loadAll(List<T> entities,
LockMode lockMode) |
protected <T extends Serializable> |
loadAllCascade(List<T> entities,
LockMode lockMode,
Class... cascadeTypes) |
protected <T extends Serializable> |
loadByIds(Class<T> entityClass,
LockMode lockMode,
Object... ids) |
protected <T extends Serializable> |
loadByIds(Class<T> entityClass,
Object... ids) |
protected Object |
loadByQuery(QueryExecutor queryExecutor)
TODO 通过构造QueyExecutor 提供更加灵活的参数传递方式,包括DataSource 比如:
1、new QueryExecutor(sql,entity).dataSource(dataSource)
2、new
QueryExecutor(sql).names(paramNames).values(paramValues).resultType(resultType);
|
protected <T> T |
loadBySql(String sqlOrSqlId,
Map<String,Object> paramsMap,
Class<T> resultType) |
protected <T> T |
loadBySql(String sqlOrSqlId,
String[] paramNames,
Object[] paramValues,
Class<T> resultType) |
protected <T extends Serializable> |
loadBySql(String sqlOrSqlId,
T entity) |
protected <T extends Serializable> |
loadCascade(T entity,
LockMode lockMode,
Class... cascadeTypes) |
protected <T extends Serializable> |
loadEntity(Class<T> entityClass,
EntityQuery entityQuery) |
protected Mongo |
mongo() |
protected <T> List<QueryResult<T>> |
parallQuery(List<ParallQuery> parallQueryList,
Map<String,Object> paramsMap,
ParallelConfig parallelConfig) |
protected <T> List<QueryResult<T>> |
parallQuery(List<ParallQuery> parallQueryList,
String[] paramNames,
Object[] paramValues)
-- 避免开发者将全部功能用一个超级sql完成,提供拆解执行的同时确保执行效率,达到了效率和可维护的平衡
|
protected <T> List<QueryResult<T>> |
parallQuery(List<ParallQuery> parallQueryList,
String[] paramNames,
Object[] paramValues,
ParallelConfig parallelConfig) |
protected Query |
query() |
protected Save |
save() |
protected Object |
save(Serializable entity) |
protected Object |
save(Serializable entity,
DataSource dataSource) |
protected <T extends Serializable> |
saveAll(List<T> entities) |
protected <T extends Serializable> |
saveAll(List<T> entities,
DataSource dataSource) |
protected <T extends Serializable> |
saveAllIgnoreExist(List<T> entities) |
protected <T extends Serializable> |
saveAllIgnoreExist(List<T> entities,
DataSource dataSource) |
protected Long |
saveOrUpdate(Serializable entity,
String... forceUpdateProps) |
protected Long |
saveOrUpdate(Serializable entity,
String[] forceUpdateProps,
DataSource dataSource) |
protected <T extends Serializable> |
saveOrUpdateAll(List<T> entities,
String... forceUpdateProps) |
protected <T extends Serializable> |
saveOrUpdateAll(List<T> entities,
String[] forceUpdateProps,
DataSource dataSource) |
void |
setDataSource(DataSource dataSource) |
void |
setSqlToyContext(SqlToyContext sqlToyContext) |
protected Store |
store() |
protected TableApi |
tableApi() |
protected void |
translate(Collection dataSet,
String cacheName,
String cacheType,
Integer cacheNameIndex,
TranslateHandler translateHandler) |
protected TreeTable |
treeTable() |
protected void |
truncate(Class entityClass,
Boolean autoCommit) |
protected void |
truncate(String tableName,
Boolean autoCommit,
DataSource dataSource) |
protected Unique |
unique() |
protected Update |
update() |
protected Long |
update(Serializable entity,
String... forceUpdateProps) |
protected Long |
update(Serializable entity,
String[] forceUpdateProps,
DataSource dataSource) |
protected <T extends Serializable> |
updateAll(List<T> entities,
String... forceUpdateProps) |
protected <T extends Serializable> |
updateAll(List<T> entities,
String[] forceUpdateProps,
DataSource dataSource) |
protected <T extends Serializable> |
updateAllDeeply(List<T> entities) |
protected <T extends Serializable> |
updateAllDeeply(List<T> entities,
DataSource dataSource) |
protected Long |
updateByQuery(Class entityClass,
EntityUpdate entityUpdate) |
protected Long |
updateCascade(Serializable entity,
String[] forceUpdateProps,
Class[] forceCascadeClasses,
HashMap<Class,String[]> subTableForceUpdateProps) |
protected Long |
updateDeeply(Serializable entity) |
protected Long |
updateDeeply(Serializable entity,
DataSource dataSource) |
protected List |
updateFetch(QueryExecutor queryExecutor,
UpdateRowHandler updateRowHandler) |
<T extends Serializable> |
updateSaveFetch(T entity,
UpdateRowHandler updateRowHandler,
String[] uniqueProps,
DataSource dataSource) |
protected BeanWrapper |
wrapBeanProps(String... names) |
protected boolean |
wrapTreeTableRoute(TreeTableModel treeModel) |
protected boolean |
wrapTreeTableRoute(TreeTableModel treeModel,
DataSource dataSource) |
protected final org.slf4j.Logger logger
protected DataSource dataSource
protected SaveMode UPDATE
protected SaveMode IGNORE
protected SqlToyContext sqlToyContext
public void setDataSource(DataSource dataSource)
protected DataSource getDataSource(DataSource pointDataSource)
pointDataSource - protected Load load()
protected Delete delete()
protected Update update()
protected Save save()
protected Query query()
protected Store store()
protected Unique unique()
protected TreeTable treeTable()
protected Execute execute()
protected Batch batch()
protected TableApi tableApi()
protected Elastic elastic()
protected Mongo mongo()
public void setSqlToyContext(SqlToyContext sqlToyContext)
sqlToyContext - the sqlToyContext to setprotected SqlToyContext getSqlToyContext()
protected SqlToyConfig getSqlToyConfig(String sqlKey, SqlType sqlType)
sqlKey - sqlType - protected boolean isUnique(Serializable entity, String... paramsNamed)
entity - paramsNamed - 对象属性名称(不是数据库表字段名称)protected boolean isUnique(UniqueExecutor uniqueExecutor)
protected Long getCountBySql(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue)
sqlOrSqlId - paramsNamed - paramsValue - protected Long getCountByEntityQuery(Class entityClass, EntityQuery entityQuery)
entityClass - entityQuery - protected Long getCountByQuery(QueryExecutor queryExecutor)
queryExecutor - protected StoreResult executeStore(String storeSqlOrKey, Object[] inParamValues, Integer[] outParamsType, Class resultType)
protected StoreResult executeStore(String storeSqlOrKey, Object[] inParamValues)
protected StoreResult executeStore(String storeSqlOrKey, Object[] inParamsValue, Integer[] outParamsType, Class resultType, DataSource dataSource)
storeSqlOrKey - 可以直接传call storeName (?,?) 也可以传xml中的存储过程sqlIdinParamsValue - outParamsType - (可以为null)resultType - VOClass,HashMap或null(表示二维List)dataSource - @Deprecated protected Object getSingleValue(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue)
sqlOrSqlId - paramsNamed - paramsValue - getSingleValue(String, Map)protected <T> T getSingleValue(String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType)
protected Object getSingleValue(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, DataSource dataSource)
sqlOrSqlId - paramsNamed - paramsValue - dataSource - protected <T extends Serializable> T load(T entity)
entity - protected <T extends Serializable> T load(T entity, LockMode lockMode)
entity - lockMode - protected <T extends Serializable> T load(T entity, LockMode lockMode, DataSource dataSource)
entity - lockMode - dataSource - protected <T extends Serializable> T loadCascade(T entity, LockMode lockMode, Class... cascadeTypes)
entity - lockMode - cascadeTypes - protected <T extends Serializable> List<T> loadAll(List<T> entities, LockMode lockMode)
entities - lockMode - protected <T extends Serializable> List<T> loadByIds(Class<T> entityClass, Object... ids)
T - entityClass - ids - protected <T extends Serializable> List<T> loadByIds(Class<T> entityClass, LockMode lockMode, Object... ids)
T - entityClass - lockMode - ids - protected <T extends Serializable> List<T> loadAllCascade(List<T> entities, LockMode lockMode, Class... cascadeTypes)
entities - lockMode - cascadeTypes - protected <T> T loadBySql(String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType)
protected <T> T loadBySql(String sqlOrSqlId, String[] paramNames, Object[] paramValues, Class<T> resultType)
sqlOrSqlId - paramNames - paramValues - resultType - protected <T extends Serializable> T loadBySql(String sqlOrSqlId, T entity)
sqlOrSqlId - entity - protected <T extends Serializable> T loadEntity(Class<T> entityClass, EntityQuery entityQuery)
protected Object loadByQuery(QueryExecutor queryExecutor)
queryExecutor - protected Long executeSql(String sqlOrSqlId, Serializable entity)
sqlOrSqlId - entity - protected Long executeSql(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue)
sqlOrSqlId - paramsNamed - paramsValue - protected Long executeSql(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, Boolean autoCommit, DataSource dataSource)
sqlOrSqlId - paramsNamed - paramsValue - autoCommit - 自动提交,默认可以填nulldataSource - protected Long batchUpdate(String sqlOrSqlId, List dataSet, int batchSize, Boolean autoCommit)
sqlOrSqlId - dataSet - 支持ListbatchSize - autoCommit - 自动提交,默认可以填nullprotected Long batchUpdate(String sqlOrSqlId, List dataSet, int batchSize, Boolean autoCommit, DataSource dataSource)
sqlOrSqlId - dataSet - 支持ListbatchSize - autoCommit - dataSource - protected boolean wrapTreeTableRoute(TreeTableModel treeModel)
protected boolean wrapTreeTableRoute(TreeTableModel treeModel, DataSource dataSource)
treeModel - dataSource - protected <T extends Serializable> List<T> findBySql(String sqlOrSqlId, T entity)
sqlOrSqlId - entity - protected <T> List<T> findBySql(String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType)
protected <T> List<T> findBySql(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, Class<T> resultType)
T - sqlOrSqlId - paramsNamed - paramsValue - resultType - 分null(返回二维List)、voClass、HashMap.class、LinkedHashMap.class等protected QueryResult findByQuery(QueryExecutor queryExecutor)
queryExecutor - (可动态设置数据源)protected void fetchStream(QueryExecutor queryExecutor, StreamResultHandler streamResultHandler)
queryExecutor - streamResultHandler - protected QueryResult findPageByQuery(Page page, QueryExecutor queryExecutor)
page - queryExecutor - (可动态设置数据源)protected <T> Page<T> findPageBySql(Page page, String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, Class<T> resultType)
page - sqlOrSqlId - paramsNamed - paramsValue - resultType(null则返回List二维集合,HashMap.class:则返回List>)
- protected <T extends Serializable> Page<T> findPageBySql(Page page, String sqlOrSqlId, T entity)
protected <T> Page<T> findPageBySql(Page page, String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType)
protected <T> List<T> findTopBySql(String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType, double topSize)
protected <T> List<T> findTopBySql(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, Class<T> resultType, double topSize)
sqlOrSqlId - paramsNamed - paramsValue - resultType(null则返回List二维集合,HashMap.class:则返回List>)
- topSize - >1
取整数部分,<1
则表示按比例获取protected <T extends Serializable> List<T> findTopBySql(String sqlOrSqlId, T entity, double topSize)
protected QueryResult findTopByQuery(QueryExecutor queryExecutor, double topSize)
queryExecutor - (可动态设置数据源)topSize - protected QueryResult getRandomResult(QueryExecutor queryExecutor, double randomCount)
queryExecutor - (可动态设置数据源)randomCount - protected <T> List<T> getRandomResult(String sqlOrSqlId, Map<String,Object> paramsMap, Class<T> resultType, double randomCount)
protected <T> List<T> getRandomResult(String sqlOrSqlId, String[] paramsNamed, Object[] paramsValue, Class<T> resultType, double randomCount)
protected void truncate(String tableName, Boolean autoCommit, DataSource dataSource)
tableName - autoCommit - dataSource - protected Object save(Serializable entity)
entity - protected Object save(Serializable entity, DataSource dataSource)
entity - dataSource - protected <T extends Serializable> Long saveAll(List<T> entities)
T - entities - protected <T extends Serializable> Long saveAll(List<T> entities, DataSource dataSource)
T - entities - dataSource - protected <T extends Serializable> Long saveAllIgnoreExist(List<T> entities)
entities - protected <T extends Serializable> Long saveAllIgnoreExist(List<T> entities, DataSource dataSource)
entities - dataSource - protected Long update(Serializable entity, String... forceUpdateProps)
entity - forceUpdateProps - 强制修改的属性protected Long update(Serializable entity, String[] forceUpdateProps, DataSource dataSource)
entity - forceUpdateProps - dataSource - protected Long updateCascade(Serializable entity, String[] forceUpdateProps, Class[] forceCascadeClasses, HashMap<Class,String[]> subTableForceUpdateProps)
entity - forceUpdateProps - forceCascadeClasses - (强制需要修改的子对象,当子集合数据为null,则进行清空或置为无效处理,否则则忽视对存量数据的处理)subTableForceUpdateProps - public <T extends Serializable> T updateSaveFetch(T entity, UpdateRowHandler updateRowHandler, String[] uniqueProps, DataSource dataSource)
T - entity - updateRowHandler - uniqueProps - dataSource - protected Long updateDeeply(Serializable entity)
entity - protected Long updateDeeply(Serializable entity, DataSource dataSource)
entity - dataSource - protected <T extends Serializable> Long updateAll(List<T> entities, String... forceUpdateProps)
T - entities - forceUpdateProps - protected <T extends Serializable> Long updateAll(List<T> entities, String[] forceUpdateProps, DataSource dataSource)
T - entities - forceUpdateProps - dataSource - protected <T extends Serializable> Long updateAllDeeply(List<T> entities)
T - entities - protected <T extends Serializable> Long updateAllDeeply(List<T> entities, DataSource dataSource)
T - entities - dataSource - protected Long saveOrUpdate(Serializable entity, String... forceUpdateProps)
protected Long saveOrUpdate(Serializable entity, String[] forceUpdateProps, DataSource dataSource)
entity - forceUpdateProps - dataSource - protected <T extends Serializable> Long saveOrUpdateAll(List<T> entities, String... forceUpdateProps)
T - entities - forceUpdateProps - protected <T extends Serializable> Long saveOrUpdateAll(List<T> entities, String[] forceUpdateProps, DataSource dataSource)
T - entities - forceUpdateProps - dataSource - protected Long delete(Serializable entity)
entity - protected Long delete(Serializable entity, DataSource dataSource)
protected Long deleteByQuery(Class entityClass, EntityQuery entityQuery)
entityClass - entityQuery - protected <T extends Serializable> Long deleteAll(List<T> entities)
protected <T extends Serializable> Long deleteAll(List<T> entities, DataSource dataSource)
T - entities - dataSource - protected Long deleteByIds(Class entityClass, Object... ids)
entityClass - ids - protected List updateFetch(QueryExecutor queryExecutor, UpdateRowHandler updateRowHandler)
queryExecutor - updateRowHandler - protected EntityMeta getEntityMeta(Class entityClass)
entityClass - protected int getBatchSize()
protected BeanWrapper wrapBeanProps(String... names)
names - protected void flush()
protected void flush(DataSource dataSource)
dataSource - protected long generateBizId(String signature, int increment)
signature - 唯一标识符号increment - 唯一标识符号,默认设置为1protected String generateBizId(Serializable entity)
entity - protected boolean existCache(String cacheName)
cacheName - protected <T> List<T> getTranslateCache(String cacheName, String cacheType, Class<T> reusltType)
T - cacheName - cacheType - 如是数据字典,则传入字典类型否则为null即可reusltType - protected HashMap<String,Object[]> getTranslateCache(String cacheName, String cacheType)
cacheName - cacheType - @Deprecated protected String[] cacheMatchKeys(String matchRegex, CacheMatchFilter cacheMatchFilter)
matchRegex - cacheMatchFilter - cacheMatchKeys(CacheMatchFilter cacheMatchFilter, String...
matchRegexes)protected String[] cacheMatchKeys(CacheMatchFilter cacheMatchFilter, String... matchRegexes)
cacheMatchFilter - 例如:
CacheMatchFilter.create().cacheName("staffIdNameCache")cacheMatchFilter - 如: 页面传过来的员工名称、客户名称等,反查对应的员工id和客户idmatchRegexes - protected void translate(Collection dataSet, String cacheName, String cacheType, Integer cacheNameIndex, TranslateHandler translateHandler)
dataSet - 要翻译的数据集合cacheName - 缓存名称cacheType - 缓存分类(如字典分类),非分类型的填nullcacheNameIndex - 缓存名称对应的列,默认为1(null也表示1)translateHandler - 2个方法:getKey(Object row),setName(Object row,String
name)protected <T> List<T> findEntity(Class<T> entityClass, EntityQuery entityQuery)
T - entityClass - entityQuery - protected <T> List<T> findEntity(Class entityClass, EntityQuery entityQuery, Class<T> resultType)
protected <T> Page<T> findPageEntity(Page page, Class<T> entityClass, EntityQuery entityQuery)
T - page - entityClass - entityQuery - protected <T> Page<T> findPageEntity(Page page, Class entityClass, EntityQuery entityQuery, Class<T> resultType)
protected Long updateByQuery(Class entityClass, EntityUpdate entityUpdate)
entityClass - entityUpdate - protected <T extends Serializable> T convertType(Serializable source, Class<T> resultType, String... ignoreProperties)
T - source - resultType - ignoreProperties - protected <T extends Serializable> List<T> convertType(List sourceList, Class<T> resultType, String... ignoreProperties)
T - sourceList - resultType - ignoreProperties - protected <T extends Serializable> Page<T> convertType(Page sourcePage, Class<T> resultType, String... ignoreProperties)
protected <T> List<QueryResult<T>> parallQuery(List<ParallQuery> parallQueryList, String[] paramNames, Object[] paramValues)
T - parallQueryList - paramNames - paramValues - protected <T> List<QueryResult<T>> parallQuery(List<ParallQuery> parallQueryList, Map<String,Object> paramsMap, ParallelConfig parallelConfig)
protected List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, DataSource dataSource)
catalog - schema - tableName - dataSource - protected List<TableMeta> getTables(String catalog, String schema, String tableName, DataSource dataSource)
catalog - schema - tableName - dataSource - protected <T> List<QueryResult<T>> parallQuery(List<ParallQuery> parallQueryList, String[] paramNames, Object[] paramValues, ParallelConfig parallelConfig)
parallQueryList - paramNames - paramValues - parallelConfig - protected String getDialect(DataSource dataSource)
dataSource - Copyright © 2023. All rights reserved.