Class OpenJPAJCacheQueryCache

java.lang.Object
org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
org.apache.openjpa.datacache.AbstractQueryCache
org.apache.commons.jcs3.jcache.openjpa.OpenJPAJCacheQueryCache
All Implemented Interfaces:
Serializable, org.apache.openjpa.datacache.QueryCache, org.apache.openjpa.datacache.TypesChangedListener, org.apache.openjpa.lib.conf.Configurable, org.apache.openjpa.lib.util.Closeable, org.apache.openjpa.lib.util.EventManager

public class OpenJPAJCacheQueryCache extends org.apache.openjpa.datacache.AbstractQueryCache
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.openjpa.datacache.AbstractQueryCache

    org.apache.openjpa.datacache.AbstractQueryCache.Default<T extends Object>, org.apache.openjpa.datacache.AbstractQueryCache.EvictPolicy
  • Field Summary

    Fields inherited from class org.apache.openjpa.datacache.AbstractQueryCache

    conf, entityTimestampMap, evictPolicy, log

    Fields inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager

    _listeners
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected org.apache.openjpa.datacache.QueryResult
    getInternal(org.apache.openjpa.datacache.QueryKey qk)
     
    void
    initialize(org.apache.openjpa.datacache.DataCacheManager manager)
     
    protected Collection
     
    protected boolean
    pinInternal(org.apache.openjpa.datacache.QueryKey qk)
     
    protected org.apache.openjpa.datacache.QueryResult
    putInternal(org.apache.openjpa.datacache.QueryKey qk, org.apache.openjpa.datacache.QueryResult oids)
     
    protected org.apache.openjpa.datacache.QueryResult
    removeInternal(org.apache.openjpa.datacache.QueryKey qk)
     
    protected boolean
    unpinInternal(org.apache.openjpa.datacache.QueryKey qk)
     
    void
     
    void
     

    Methods inherited from class org.apache.openjpa.datacache.AbstractQueryCache

    addTypesChangedListener, afterCommit, clear, close, close, count, endConfiguration, fireEvent, get, getAllEntityTimestamp, getEnableStatistics, getEvictPolicy, getName, getStatistics, isClosed, newListenerCollection, onTypesChanged, pin, put, remove, removeAllInternal, removeTypesChangedListener, setConfiguration, setEnableStatistics, setEvictPolicy, setName, startConfiguration, unpin, updateEntityTimestamp

    Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager

    addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, removeListener, setFailFast

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(org.apache.openjpa.datacache.DataCacheManager manager)
      Specified by:
      initialize in interface org.apache.openjpa.datacache.QueryCache
      Overrides:
      initialize in class org.apache.openjpa.datacache.AbstractQueryCache
    • clearInternal

      protected void clearInternal()
      Specified by:
      clearInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • keySet

      protected Collection keySet()
      Specified by:
      keySet in class org.apache.openjpa.datacache.AbstractQueryCache
    • getInternal

      protected org.apache.openjpa.datacache.QueryResult getInternal(org.apache.openjpa.datacache.QueryKey qk)
      Specified by:
      getInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • putInternal

      protected org.apache.openjpa.datacache.QueryResult putInternal(org.apache.openjpa.datacache.QueryKey qk, org.apache.openjpa.datacache.QueryResult oids)
      Specified by:
      putInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • removeInternal

      protected org.apache.openjpa.datacache.QueryResult removeInternal(org.apache.openjpa.datacache.QueryKey qk)
      Specified by:
      removeInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • pinInternal

      protected boolean pinInternal(org.apache.openjpa.datacache.QueryKey qk)
      Specified by:
      pinInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • unpinInternal

      protected boolean unpinInternal(org.apache.openjpa.datacache.QueryKey qk)
      Specified by:
      unpinInternal in class org.apache.openjpa.datacache.AbstractQueryCache
    • writeLock

      public void writeLock()
    • writeUnlock

      public void writeUnlock()