|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.manager.MethodResultCache org.apache.torque.manager.NoOpMethodResultCache
public class NoOpMethodResultCache
This class provides a no-op cache for convenient storage of method results
Constructor Summary | |
---|---|
NoOpMethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
|
Method Summary | ||
---|---|---|
void |
clear()
Clear the cache |
|
|
get(Serializable instanceOrClass,
String method,
Serializable... arg)
Get an object from the method cache |
|
protected Object |
getImpl(MethodCacheKey key)
|
|
|
put(T value,
Serializable instanceOrClass,
String method,
Serializable... arg)
Put an object into the method cache |
|
protected Object |
putImpl(MethodCacheKey key,
Object value)
|
|
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoOpMethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
Method Detail |
---|
public void clear()
clear
in class MethodResultCache
protected Object getImpl(MethodCacheKey key)
getImpl
in class MethodResultCache
MethodResultCache.getImpl(org.apache.torque.manager.MethodCacheKey)
protected Object putImpl(MethodCacheKey key, Object value) throws TorqueException
putImpl
in class MethodResultCache
TorqueException
MethodResultCache.putImpl(org.apache.torque.manager.MethodCacheKey, java.lang.Object)
protected Object removeImpl(MethodCacheKey key)
removeImpl
in class MethodResultCache
MethodResultCache.removeImpl(org.apache.torque.manager.MethodCacheKey)
public <T> T get(Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCache
get
in class MethodResultCache
instanceOrClass
- 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 method
MethodResultCache.get(java.io.Serializable, java.lang.String, java.io.Serializable[])
public <T> void put(T value, Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCache
put
in class MethodResultCache
value
- 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)
MethodResultCache
removeAll
in class MethodResultCache
instanceOrClass
- 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)
MethodResultCache
remove
in class MethodResultCache
instanceOrClass
- 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 method
MethodResultCache.remove(java.io.Serializable, java.lang.String, java.io.Serializable[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |