Class StandardQueryCache
java.lang.Object
io.jmix.eclipselink.impl.entitycache.StandardQueryCache
- All Implemented Interfaces:
- QueryCache
@Component("eclipselink_QueryCache")
public class StandardQueryCache
extends Object
implements QueryCache
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.cache.CacheManagerprotected CacheOperationsprotected static final org.slf4j.Loggerprotected org.springframework.cache.Cachestatic final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the query results associated withqueryKeyin this cacheprotected voidinit()voidinvalidate(String typeName) Discards cached query results for metaClass nametypeName.voidinvalidate(Set<String> typeNames) Discards cached query results for metaClass namestypeNames.voidDiscards all queries results in the cache.protected voidinvalidateByTypes(Set<String> typeNames) voidput(QueryKey queryKey, QueryResult queryResult) AssociatesqueryResultwithqueryKeyin this cachelongsize()Returns number of entries in this cache.
- 
Field Details- 
queriesprotected org.springframework.cache.Cache queries
- 
cacheManager@Autowired protected org.springframework.cache.CacheManager cacheManager
- 
cacheOperations
- 
QUERY_CACHE_NAME- See Also:
 
- 
logprotected static final org.slf4j.Logger log
 
- 
- 
Constructor Details- 
StandardQueryCachepublic StandardQueryCache()
 
- 
- 
Method Details- 
init@PostConstruct protected void init()
- 
getDescription copied from interface:QueryCacheReturns the query results associated withqueryKeyin this cache- Specified by:
- getin interface- QueryCache
 
- 
putDescription copied from interface:QueryCacheAssociatesqueryResultwithqueryKeyin this cache- Specified by:
- putin interface- QueryCache
 
- 
invalidateDescription copied from interface:QueryCacheDiscards cached query results for metaClass nametypeName.- Specified by:
- invalidatein interface- QueryCache
 
- 
invalidateDescription copied from interface:QueryCacheDiscards cached query results for metaClass namestypeNames.- Specified by:
- invalidatein interface- QueryCache
 
- 
invalidateByTypes
- 
invalidateAllpublic void invalidateAll()Description copied from interface:QueryCacheDiscards all queries results in the cache.- Specified by:
- invalidateAllin interface- QueryCache
 
- 
sizepublic long size()Description copied from interface:QueryCacheReturns number of entries in this cache.- Specified by:
- sizein interface- QueryCache
 
 
-