Class QueryResultCacheImpl

  • All Implemented Interfaces:
    QueryResultCache

    public class QueryResultCacheImpl
    extends java.lang.Object
    implements QueryResultCache
    Implements Query result cache via delegation to QueryCache.
    Since:
    0.4.1
    Author:
    Abe White
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      void evict​(jakarta.persistence.Query q)
      Evict a query result from the cache.
      void evictAll()
      Clear the cache.
      void evictAll​(java.lang.Class cls)
      Evict all result for queries involving the given class.
      QueryCache getDelegate()
      Delegate.
      int hashCode()  
      void pin​(jakarta.persistence.Query q)
      Pin the given query's result to the cache.
      void unpin​(jakarta.persistence.Query q)
      Unpin a previously-pinned query result.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryResultCacheImpl

        public QueryResultCacheImpl​(QueryCache cache)
        Constructor; supply delegate.
    • Method Detail

      • pin

        public void pin​(jakarta.persistence.Query q)
        Description copied from interface: QueryResultCache
        Pin the given query's result to the cache.
        Specified by:
        pin in interface QueryResultCache
      • unpin

        public void unpin​(jakarta.persistence.Query q)
        Description copied from interface: QueryResultCache
        Unpin a previously-pinned query result.
        Specified by:
        unpin in interface QueryResultCache
      • evict

        public void evict​(jakarta.persistence.Query q)
        Description copied from interface: QueryResultCache
        Evict a query result from the cache.
        Specified by:
        evict in interface QueryResultCache
      • evictAll

        public void evictAll​(java.lang.Class cls)
        Description copied from interface: QueryResultCache
        Evict all result for queries involving the given class.
        Specified by:
        evictAll in interface QueryResultCache
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object