org.apache.torque.manager
Class MethodCacheKey

java.lang.Object
  extended by org.apache.torque.manager.MethodCacheKey
All Implemented Interfaces:
java.io.Serializable

public class MethodCacheKey
extends java.lang.Object
implements java.io.Serializable

Version:
$Id: MethodCacheKey.java 474969 2006-11-14 20:41:36Z tv $
See Also:
Serialized Form

Nested Class Summary
static class MethodCacheKey.Factory
           
 
Constructor Summary
MethodCacheKey()
           
MethodCacheKey(java.io.Serializable[] moreThanThree)
           
MethodCacheKey(java.io.Serializable instanceOrClass, java.lang.String method)
           
MethodCacheKey(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1)
           
MethodCacheKey(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2)
           
MethodCacheKey(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2, java.io.Serializable arg3)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGroupKey()
           
 int hashCode()
           
 void init(java.io.Serializable[] keys)
          Initialize key for method with more than three arguments.
 void init(java.io.Serializable instanceOrClass, java.lang.String method)
          Initialize key for method with no arguments.
 void init(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1)
          Initialize key for method with one argument.
 void init(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2)
          Initialize key for method with two arguments.
 void init(java.io.Serializable instanceOrClass, java.lang.String method, java.io.Serializable arg1, java.io.Serializable arg2, java.io.Serializable arg3)
          Initialize key for method with two arguments.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodCacheKey

public MethodCacheKey()

MethodCacheKey

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

MethodCacheKey

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

MethodCacheKey

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

MethodCacheKey

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

MethodCacheKey

public MethodCacheKey(java.io.Serializable[] moreThanThree)
Method Detail

init

public void init(java.io.Serializable instanceOrClass,
                 java.lang.String method)
Initialize key for method with no arguments.

Parameters:
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 name

init

public void init(java.io.Serializable instanceOrClass,
                 java.lang.String method,
                 java.io.Serializable arg1)
Initialize key for method with one argument.

Parameters:
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 name
arg1 - first method arg, may be null

init

public void init(java.io.Serializable instanceOrClass,
                 java.lang.String method,
                 java.io.Serializable arg1,
                 java.io.Serializable arg2)
Initialize key for method with two arguments.

Parameters:
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 name
arg1 - first method arg, may be null
arg2 - second method arg, may be null

init

public void init(java.io.Serializable instanceOrClass,
                 java.lang.String method,
                 java.io.Serializable arg1,
                 java.io.Serializable arg2,
                 java.io.Serializable arg3)
Initialize key for method with two arguments.

Parameters:
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 name
arg1 - first method arg, may be null
arg2 - second method arg, may be null

init

public void init(java.io.Serializable[] keys)
Initialize key for method with more than three arguments.

Parameters:
keys - Serializable[] where [0]=>the Object on which the method is invoked if the method is static, a String representing the class name is used. [1]=>the method name [n] where n>1 are the method arguments

getGroupKey

public java.lang.String getGroupKey()

equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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