org.apache.torque.manager
Class MethodResultCache

java.lang.Object
  extended by org.apache.torque.manager.MethodResultCache
Direct Known Subclasses:
NoOpMethodResultCache

public class MethodResultCache
extends java.lang.Object

This class provides a cache for convenient storage of method results.

Version:
$Id: MethodResultCache.java 552334 2007-07-01 16:26:41Z tv $
Author:
John McNally

Constructor Summary
protected MethodResultCache()
          Allows subclasses to have ctors that do not require a cache.
  MethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
           
 
Method Summary
 void clear()
           
 java.lang.Object get(java.io.Serializable[] keys)
           
 java.lang.Object get(java.io.Serializable instanceOrClass, java.lang.String method)
           
 java.lang.Object get(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1)
           
 java.lang.Object get(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2)
           
 java.lang.Object get(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2, java.io.Serializable arg3)
           
protected  java.lang.Object getImpl(MethodCacheKey key)
           
 void put(java.lang.Object value, java.io.Serializable[] keys)
           
 void put(java.lang.Object value, java.io.Serializable instanceOrClass, java.lang.String method)
           
 void put(java.lang.Object value, java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1)
           
 void put(java.lang.Object value, java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2)
           
 void put(java.lang.Object value, java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2, java.io.Serializable arg3)
           
protected  java.lang.Object putImpl(MethodCacheKey key, java.lang.Object value)
           
 java.lang.Object remove(java.io.Serializable[] keys)
           
 java.lang.Object remove(java.io.Serializable instanceOrClass, java.lang.String method)
           
 java.lang.Object remove(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1)
           
 java.lang.Object remove(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2)
           
 java.lang.Object remove(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2, java.io.Serializable arg3)
           
 void removeAll(java.io.Serializable instanceOrClass, java.lang.String method)
           
protected  java.lang.Object removeImpl(MethodCacheKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodResultCache

public MethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
                  throws TorqueException
Throws:
TorqueException

MethodResultCache

protected MethodResultCache()
Allows subclasses to have ctors that do not require a cache. This is used by NullMethodResultCache which has no-op versions of all methods.

Method Detail

clear

public void clear()

getImpl

protected java.lang.Object getImpl(MethodCacheKey key)

putImpl

protected java.lang.Object putImpl(MethodCacheKey key,
                                   java.lang.Object value)
                            throws TorqueException
Throws:
TorqueException

removeImpl

protected java.lang.Object removeImpl(MethodCacheKey key)
                               throws TorqueException
Throws:
TorqueException

get

public java.lang.Object get(java.io.Serializable instanceOrClass,
                            java.lang.String method)

get

public java.lang.Object get(java.io.Serializable instanceOrClass,
                            java.lang.String method,
                            java.io.Serializable arg1)

get

public java.lang.Object get(java.io.Serializable instanceOrClass,
                            java.lang.String method,
                            java.io.Serializable arg1,
                            java.io.Serializable arg2)

get

public java.lang.Object get(java.io.Serializable instanceOrClass,
                            java.lang.String method,
                            java.io.Serializable arg1,
                            java.io.Serializable arg2,
                            java.io.Serializable arg3)

get

public java.lang.Object get(java.io.Serializable[] keys)

put

public void put(java.lang.Object value,
                java.io.Serializable instanceOrClass,
                java.lang.String method)

put

public void put(java.lang.Object value,
                java.io.Serializable instanceOrClass,
                java.lang.String method,
                java.io.Serializable arg1)

put

public void put(java.lang.Object value,
                java.io.Serializable instanceOrClass,
                java.lang.String method,
                java.io.Serializable arg1,
                java.io.Serializable arg2)

put

public void put(java.lang.Object value,
                java.io.Serializable instanceOrClass,
                java.lang.String method,
                java.io.Serializable arg1,
                java.io.Serializable arg2,
                java.io.Serializable arg3)

put

public void put(java.lang.Object value,
                java.io.Serializable[] keys)

removeAll

public void removeAll(java.io.Serializable instanceOrClass,
                      java.lang.String method)

remove

public java.lang.Object remove(java.io.Serializable instanceOrClass,
                               java.lang.String method)

remove

public java.lang.Object remove(java.io.Serializable instanceOrClass,
                               java.lang.String method,
                               java.io.Serializable arg1)

remove

public java.lang.Object remove(java.io.Serializable instanceOrClass,
                               java.lang.String method,
                               java.io.Serializable arg1,
                               java.io.Serializable arg2)

remove

public java.lang.Object remove(java.io.Serializable instanceOrClass,
                               java.lang.String method,
                               java.io.Serializable arg1,
                               java.io.Serializable arg2,
                               java.io.Serializable arg3)

remove

public java.lang.Object remove(java.io.Serializable[] keys)


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.