Ontimize 5.2072EN

com.ontimize.cache
Class CacheManager

java.lang.Object
  extended bycom.ontimize.cache.CacheManager

public class CacheManager
extends java.lang.Object


Nested Class Summary
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
 
Field Summary
protected  java.util.Vector cachedComponents
           
protected static CacheManager cacheManager
           
protected  java.util.Hashtable data
           
static boolean DEBUG
           
static boolean defaultParentKeyCache
           
protected  EntityReferenceLocator locator
           
static int maximumDataCacheIdSize
           
 
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
 

Field Detail

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
Method Detail

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()

Ontimize