Class JCacheQueryCacheTraceWrapper

  • All Implemented Interfaces:
    org.apache.cayenne.cache.QueryCache

    public class JCacheQueryCacheTraceWrapper
    extends Object
    implements org.apache.cayenne.cache.QueryCache
    A QueryCache decorator that adds extra debugging information.
    Since:
    21.11.0
    • Field Detail

      • logger

        protected org.slf4j.Logger logger
    • Constructor Detail

      • JCacheQueryCacheTraceWrapper

        public JCacheQueryCacheTraceWrapper​(org.apache.cayenne.jcache.JCacheQueryCache delegate)
        Creates a new JCacheQueryCacheTraceWrapper with a delegate JCacheQueryCache.
        Parameters:
        delegate - an actual JCacheQueryCache implementation, such as EhCacheQueryCache that will be delegated all the API calls.
    • Method Detail

      • get

        public List get​(org.apache.cayenne.query.QueryMetadata metadata)
        Specified by:
        get in interface org.apache.cayenne.cache.QueryCache
      • get

        public List get​(org.apache.cayenne.query.QueryMetadata metadata,
                        org.apache.cayenne.cache.QueryCacheEntryFactory factory)
        Specified by:
        get in interface org.apache.cayenne.cache.QueryCache
      • put

        public void put​(org.apache.cayenne.query.QueryMetadata metadata,
                        List results)
        Specified by:
        put in interface org.apache.cayenne.cache.QueryCache
      • remove

        public void remove​(String key)
        Specified by:
        remove in interface org.apache.cayenne.cache.QueryCache
      • removeGroup

        public void removeGroup​(String groupKey)
        Specified by:
        removeGroup in interface org.apache.cayenne.cache.QueryCache
      • removeGroup

        public void removeGroup​(String groupKey,
                                Class<?> keyType,
                                Class<?> valueType)
        Specified by:
        removeGroup in interface org.apache.cayenne.cache.QueryCache
      • clear

        @Deprecated
        public void clear()
        Deprecated.
        Specified by:
        clear in interface org.apache.cayenne.cache.QueryCache