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 Details

    • queries

      protected org.springframework.cache.Cache queries
    • cacheManager

      @Autowired protected org.springframework.cache.CacheManager cacheManager
    • cacheOperations

      @Autowired protected CacheOperations cacheOperations
    • QUERY_CACHE_NAME

      public static final String 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

      public QueryResult get(QueryKey queryKey)
      Description copied from interface: QueryCache
      Returns the query results associated with queryKey in this cache
      Specified by:
      get in interface QueryCache
    • put

      public void put(QueryKey queryKey, QueryResult queryResult)
      Description copied from interface: QueryCache
      Associates queryResult with queryKey in this cache
      Specified by:
      put in interface QueryCache
    • invalidate

      public void invalidate(String typeName)
      Description copied from interface: QueryCache
      Discards cached query results for metaClass name typeName.
      Specified by:
      invalidate in interface QueryCache
    • invalidate

      public void invalidate(Set<String> typeNames)
      Description copied from interface: QueryCache
      Discards cached query results for metaClass names typeNames.
      Specified by:
      invalidate in interface QueryCache
    • invalidateByTypes

      protected void invalidateByTypes(Set<String> typeNames)
    • invalidateAll

      public void invalidateAll()
      Description copied from interface: QueryCache
      Discards all queries results in the cache.
      Specified by:
      invalidateAll in interface QueryCache
    • size

      public long size()
      Description copied from interface: QueryCache
      Returns number of entries in this cache.
      Specified by:
      size in interface QueryCache