atg.service.collections.filter
Class CollectionCacheKey

java.lang.Object
  extended by atg.service.collections.filter.CollectionCacheKey

public class CollectionCacheKey
extends java.lang.Object

This object is used as the key for collections in a filter cache.

The CollectionCacheKey object contains three objects: the filter reference, the collection identifier key, and the filter's context key object.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
CollectionCacheKey(CachedCollectionFilter pFilter, java.lang.String pCollectionIdentifierKey, java.lang.Object pContextKey)
          Constructs a new CollectionCacheKey
 
Method Summary
 boolean equals(java.lang.Object pKey)
           
 java.lang.String getCollectionIdentifierKey()
          The Collection identifier key
 java.lang.Object getContextKey()
          The context key
 CachedCollectionFilter getFilter()
          The filter
 int hashCode()
          Hashcode for this class
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

CollectionCacheKey

public CollectionCacheKey(CachedCollectionFilter pFilter,
                          java.lang.String pCollectionIdentifierKey,
                          java.lang.Object pContextKey)
Constructs a new CollectionCacheKey

Parameters:
pFilter - the filter
pCollectionIdentifierKey - the key provided by the caller of the filter.
pContextKey - the context key object created by the the filter.
Method Detail

getFilter

public CachedCollectionFilter getFilter()
The filter


getCollectionIdentifierKey

public java.lang.String getCollectionIdentifierKey()
The Collection identifier key


getContextKey

public java.lang.Object getContextKey()
The context key


equals

public boolean equals(java.lang.Object pKey)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

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

hashCode

public int hashCode()
Hashcode for this class

Overrides:
hashCode in class java.lang.Object