org.wanghy.cache.interceptor.caching
Class Cached

java.lang.Object
  extended byorg.wanghy.cache.interceptor.caching.Cached
All Implemented Interfaces:
CacheAttribute, Serializable

public class Cached
extends Object
implements CacheAttribute

Source-level metadata attribute that identifies the methods which return value should be stored in the cache.

Version:
$Revision: 1.7 $ $Date: 2005/03/03 01:45:49 $
Author:
Alex Ruiz
See Also:
Serialized Form

Field Summary
private  String cacheProfileId
          The id of the cache profile to use.
private static long serialVersionUID
          Version number of this class.
 
Constructor Summary
Cached()
          Constructor.
Cached(String cacheProfileId)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 String getCacheProfileId()
          Getter for field cacheProfileId.
 int hashCode()
          Returns a hash code value for the object.
 void setCacheProfileId(String cacheProfileId)
          Setter for the field cacheProfileId.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Version number of this class.

See Also:
Serializable, Constant Field Values

cacheProfileId

private String cacheProfileId
The id of the cache profile to use.

Constructor Detail

Cached

public Cached()
Constructor.


Cached

public Cached(String cacheProfileId)
Constructor.

Parameters:
cacheProfileId - the id of the cache profile to use.
Method Detail

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.equals(java.lang.Object)

getCacheProfileId

public final String getCacheProfileId()
Getter for field cacheProfileId.

Returns:
the field cacheProfileId.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by Hashtable.

Returns:
a hash code value for this object.
See Also:
Object.hashCode()

setCacheProfileId

public final void setCacheProfileId(String cacheProfileId)
Setter for the field cacheProfileId.

Parameters:
cacheProfileId - the new value to set

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.

Returns:
a string representation of the object.
See Also:
Object.toString()


Copyright © 2004-2005 Alex Ruiz. All Rights Reserved.