public class CacheManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheManager.CacheManagerViewer |
protected class |
CacheManager.DataCacheId
It identifies the characteristics of one data set (corresponding to one
entity), several attributes and without conditions
|
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
cachedComponents |
protected static CacheManager |
cacheManager |
protected Hashtable |
data |
static boolean |
defaultParentKeyCache |
protected EntityReferenceLocator |
locator |
static int |
maximumDataCacheIdSize |
| Modifier and Type | Method and Description |
|---|---|
void |
addCachedComponent(CachedComponent c) |
protected void |
checkMaximumSizeDataCacheId() |
boolean |
existsCache(String entity,
Vector attributes,
Hashtable keysValues) |
protected CacheManager.DataCacheId |
findKey(String entity,
Hashtable keysValues) |
String |
getCachedEntities() |
int |
getCacheSize() |
EntityResult |
getDataCache(String entity,
Vector attributes,
Hashtable keysValues) |
static CacheManager |
getDefaultCacheManager(EntityReferenceLocator locator) |
long |
getLastCacheTime(String entity,
Hashtable keysValues) |
protected CacheManager.DataCacheId |
getMaxDataCacheId(String entity,
Hashtable keysValues) |
void |
invalidateCache(String entity,
Hashtable keysValues) |
void |
printCacheSize() |
protected EntityResult |
query(String entity,
Hashtable kv,
Vector attributes) |
public static boolean defaultParentKeyCache
protected static CacheManager cacheManager
protected Vector cachedComponents
protected Hashtable data
protected EntityReferenceLocator locator
public static int maximumDataCacheIdSize
public void addCachedComponent(CachedComponent c)
public static CacheManager getDefaultCacheManager(EntityReferenceLocator locator)
protected CacheManager.DataCacheId findKey(String entity, Hashtable keysValues)
public EntityResult getDataCache(String entity, Vector attributes, Hashtable keysValues)
protected EntityResult query(String entity, Hashtable kv, Vector attributes)
protected CacheManager.DataCacheId getMaxDataCacheId(String entity, Hashtable keysValues)
protected void checkMaximumSizeDataCacheId()
public String getCachedEntities()
public int getCacheSize()
public void printCacheSize()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.