com.jdon.controller.cache
Class CacheKeyFactory

java.lang.Object
  extended by com.jdon.controller.cache.CacheKeyFactory
Direct Known Subclasses:
BlockCacheManager, ModelCacheKeyFactory

public abstract class CacheKeyFactory
extends java.lang.Object

different cached object, there is different cache key. CacheKeyFactory is for creating cache key for different object

Version:
1.0
See Also:
com.jdon.model.cache.ModelCacheKeyFactory} {@link com.jdon.model.query.cache.BlockCacheKeyFactory}

Field Summary
protected  CacheManager cacheManager
           
static java.lang.String module
           
 
Constructor Summary
CacheKeyFactory(CacheManager cacheManager)
           
 
Method Summary
 CacheKey createCacheKey(java.lang.Object dataKey, java.lang.String typeName)
           
abstract  CacheKey createCacheKeyImp(java.lang.Object dataKey, java.lang.String typeName)
           
 java.util.Collection getAllCacheKey(java.lang.Object dataKey)
          look up all cachekeys that is equals to dataKey
 void removeCacheKey(java.lang.String cacheKeyStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

cacheManager

protected CacheManager cacheManager
Constructor Detail

CacheKeyFactory

public CacheKeyFactory(CacheManager cacheManager)
Method Detail

createCacheKey

public CacheKey createCacheKey(java.lang.Object dataKey,
                               java.lang.String typeName)

createCacheKeyImp

public abstract CacheKey createCacheKeyImp(java.lang.Object dataKey,
                                           java.lang.String typeName)

removeCacheKey

public void removeCacheKey(java.lang.String cacheKeyStr)

getAllCacheKey

public java.util.Collection getAllCacheKey(java.lang.Object dataKey)
look up all cachekeys that is equals to dataKey

Parameters:
dataKey -
Returns:
Collection