public class NoOpMethodResultCache extends MethodResultCache
| Constructor and Description | 
|---|
| NoOpMethodResultCache(org.apache.commons.jcs.access.GroupCacheAccess<MethodCacheKey,Object> cache) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clear the cache | 
| <T> T | get(Serializable instanceOrClass,
   String method,
   Serializable... arg)Get an object from the method cache | 
| protected Object | getImpl(MethodCacheKey key) | 
| <T> void | put(T value,
   Serializable instanceOrClass,
   String method,
   Serializable... arg)Put an object into the method cache | 
| protected Object | putImpl(MethodCacheKey key,
       Object value) | 
| <T> T | remove(Serializable instanceOrClass,
      String method,
      Serializable... arg)Remove object from method cache | 
| void | removeAll(Serializable instanceOrClass,
         String method)Remove all objects of the same group | 
| protected Object | removeImpl(MethodCacheKey key) | 
public NoOpMethodResultCache(org.apache.commons.jcs.access.GroupCacheAccess<MethodCacheKey,Object> cache)
public void clear()
clear in class MethodResultCacheprotected Object getImpl(MethodCacheKey key)
getImpl in class MethodResultCacheMethodResultCache.getImpl(org.apache.torque.manager.MethodCacheKey)protected Object putImpl(MethodCacheKey key, Object value) throws TorqueException
putImpl in class MethodResultCacheTorqueExceptionMethodResultCache.putImpl(org.apache.torque.manager.MethodCacheKey, java.lang.Object)protected Object removeImpl(MethodCacheKey key)
removeImpl in class MethodResultCacheMethodResultCache.removeImpl(org.apache.torque.manager.MethodCacheKey)public <T> T get(Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCacheget in class MethodResultCacheT - type of the instance classinstanceOrClass - the Object on which the method is invoked.  if
 the method is static, a String representing the class name is used.method - the method namearg - optional arguments for the methodMethodResultCache.get(
     java.io.Serializable,
     java.lang.String, java.io.Serializable[])public <T> void put(T value,
                    Serializable instanceOrClass,
                    String method,
                    Serializable... arg)
MethodResultCacheput in class MethodResultCacheT - type of the instance classvalue - the object to put into the cacheinstanceOrClass - the Object on which the method is invoked.  if
 the method is static, a String representing the class name is used.method - the method namearg - optional arguments for the methodMethodResultCache.put(
     java.lang.Object, java.io.Serializable,
     java.lang.String, java.io.Serializable[])public void removeAll(Serializable instanceOrClass, String method)
MethodResultCacheremoveAll in class MethodResultCacheinstanceOrClass - the Object on which the method is invoked.  if
 the method is static, a String representing the class name is used.method - the method nameMethodResultCache.removeAll(java.io.Serializable, java.lang.String)public <T> T remove(Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCacheremove in class MethodResultCacheT - type of the instance classinstanceOrClass - the Object on which the method is invoked.  if
 the method is static, a String representing the class name is used.method - the method namearg - optional arguments for the methodMethodResultCache.remove(java.io.Serializable, java.lang.String, java.io.Serializable[])Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.