public abstract class CacheableOperator extends AbstractOperator implements Cacheable
jdbcTemplate, method, rootNode, sqlType, statsCounter| 限定符 | 构造器和说明 |
|---|---|
protected |
CacheableOperator(ASTRootNode rootNode,
Method method,
SQLType sqlType) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
cacheInitPostProcessor() |
protected void |
deleteFromCache(Set<String> keys) |
protected void |
deleteFromCache(String key) |
protected Map<String,Object> |
getBulkFromCache(Set<String> keys) |
protected String |
getCacheKey(Object suffix) |
protected String |
getCacheKey(RuntimeContext context) |
protected Set<String> |
getCacheKeys(RuntimeContext context) |
protected Object |
getFromCache(String key) |
protected Class<?> |
getSuffixClass() |
protected Object |
getSuffixObj(RuntimeContext context) |
protected boolean |
isUseCache() |
protected boolean |
isUseMultipleKeys() |
void |
setCacheHandler(CacheHandler cacheHandler) |
protected void |
setSuffixObj(RuntimeContext context,
Object obj) |
protected void |
setToCache(String key,
Object value) |
buildRuntimeContext, dbInitPostProcessor, getDataSource, getDataSource, getDataSourceName, getParameterNameByIndex, getTypeContext, setDataSourceFactoryHolder, setStatsCounterprotected CacheableOperator(ASTRootNode rootNode, Method method, SQLType sqlType)
public void setCacheHandler(@Nullable CacheHandler cacheHandler)
setCacheHandler 在接口中 Cacheableprotected boolean isUseCache()
protected boolean isUseMultipleKeys()
protected void deleteFromCache(String key)
protected Class<?> getSuffixClass()
protected String getCacheKey(RuntimeContext context)
protected Set<String> getCacheKeys(RuntimeContext context)
protected Object getSuffixObj(RuntimeContext context)
protected void setSuffixObj(RuntimeContext context, Object obj)
protected void cacheInitPostProcessor()
Copyright © 2014. All rights reserved.