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 Summary
Modifier and TypeFieldDescriptionprotected org.springframework.cache.CacheManager
protected CacheOperations
protected static final org.slf4j.Logger
protected org.springframework.cache.Cache
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the query results associated withqueryKey
in this cacheprotected void
init()
void
invalidate
(String typeName) Discards cached query results for metaClass nametypeName
.void
invalidate
(Set<String> typeNames) Discards cached query results for metaClass namestypeNames
.void
Discards all queries results in the cache.protected void
invalidateByTypes
(Set<String> typeNames) void
put
(QueryKey queryKey, QueryResult queryResult) AssociatesqueryResult
withqueryKey
in this cachelong
size()
Returns number of entries in this cache.
-
Field Details
-
queries
protected org.springframework.cache.Cache queries -
cacheManager
@Autowired protected org.springframework.cache.CacheManager cacheManager -
cacheOperations
-
QUERY_CACHE_NAME
- See Also:
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
StandardQueryCache
public StandardQueryCache()
-
-
Method Details
-
init
@PostConstruct protected void init() -
get
Description copied from interface:QueryCache
Returns the query results associated withqueryKey
in this cache- Specified by:
get
in interfaceQueryCache
-
put
Description copied from interface:QueryCache
AssociatesqueryResult
withqueryKey
in this cache- Specified by:
put
in interfaceQueryCache
-
invalidate
Description copied from interface:QueryCache
Discards cached query results for metaClass nametypeName
.- Specified by:
invalidate
in interfaceQueryCache
-
invalidate
Description copied from interface:QueryCache
Discards cached query results for metaClass namestypeNames
.- Specified by:
invalidate
in interfaceQueryCache
-
invalidateByTypes
-
invalidateAll
public void invalidateAll()Description copied from interface:QueryCache
Discards all queries results in the cache.- Specified by:
invalidateAll
in interfaceQueryCache
-
size
public long size()Description copied from interface:QueryCache
Returns number of entries in this cache.- Specified by:
size
in interfaceQueryCache
-