com.ontimize.cache
Class CacheManager
java.lang.Object
com.ontimize.cache.CacheManager
- public class CacheManager
- extends java.lang.Object
|
Method Summary |
void |
addCachedComponent(CachedComponent c)
|
protected void |
checkMaximumSizeDataCacheId()
|
boolean |
existsCache(java.lang.String entity,
java.util.Vector attributes,
java.util.Hashtable keysValues)
|
protected CacheManager.DataCacheId |
findKey(java.lang.String entity,
java.util.Hashtable keysValues)
|
java.lang.String |
getCachedEntities()
|
int |
getCacheSize()
|
EntityResult |
getDataCache(java.lang.String entity,
java.util.Vector attributes,
java.util.Hashtable keysValues)
|
static CacheManager |
getDefaultCacheManager(EntityReferenceLocator locator)
|
long |
getLastCacheTime(java.lang.String entity,
java.util.Hashtable keysValues)
|
protected CacheManager.DataCacheId |
getMaxDataCacheId(java.lang.String entity,
java.util.Hashtable keysValues)
|
void |
invalidateCache(java.lang.String entity,
java.util.Hashtable keysValues)
|
void |
printCacheSize()
|
protected EntityResult |
query(java.lang.String entity,
java.util.Hashtable kv,
java.util.Vector attributes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static boolean DEBUG
defaultParentKeyCache
public static boolean defaultParentKeyCache
cacheManager
protected static CacheManager cacheManager
cachedComponents
protected java.util.Vector cachedComponents
data
protected java.util.Hashtable data
locator
protected EntityReferenceLocator locator
maximumDataCacheIdSize
public static int maximumDataCacheIdSize
addCachedComponent
public void addCachedComponent(CachedComponent c)
getDefaultCacheManager
public static CacheManager getDefaultCacheManager(EntityReferenceLocator locator)
invalidateCache
public void invalidateCache(java.lang.String entity,
java.util.Hashtable keysValues)
findKey
protected CacheManager.DataCacheId findKey(java.lang.String entity,
java.util.Hashtable keysValues)
existsCache
public boolean existsCache(java.lang.String entity,
java.util.Vector attributes,
java.util.Hashtable keysValues)
getLastCacheTime
public long getLastCacheTime(java.lang.String entity,
java.util.Hashtable keysValues)
getDataCache
public EntityResult getDataCache(java.lang.String entity,
java.util.Vector attributes,
java.util.Hashtable keysValues)
query
protected EntityResult query(java.lang.String entity,
java.util.Hashtable kv,
java.util.Vector attributes)
getMaxDataCacheId
protected CacheManager.DataCacheId getMaxDataCacheId(java.lang.String entity,
java.util.Hashtable keysValues)
checkMaximumSizeDataCacheId
protected void checkMaximumSizeDataCacheId()
getCachedEntities
public java.lang.String getCachedEntities()
getCacheSize
public int getCacheSize()
printCacheSize
public void printCacheSize()