org.pentaho.reporting.engine.classic.core.cache
Class InMemoryDataCache

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.cache.InMemoryDataCache
All Implemented Interfaces:
DataCache

public class InMemoryDataCache
extends Object
implements DataCache

The simplest of all caches systems. A plain map holding all elements.

Author:
Thomas Morgner.

Constructor Summary
InMemoryDataCache()
           
InMemoryDataCache(int maximumEntries, int maximumRows)
           
 
Method Summary
 TableModel get(DataCacheKey key)
           
 DataCacheManager getCacheManager()
           
 int getMaximumEntries()
           
 int getMaximumRows()
           
 TableModel put(DataCacheKey key, TableModel model)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryDataCache

public InMemoryDataCache()

InMemoryDataCache

public InMemoryDataCache(int maximumEntries,
                         int maximumRows)
Method Detail

getMaximumEntries

public int getMaximumEntries()

getMaximumRows

public int getMaximumRows()

get

public TableModel get(DataCacheKey key)
Specified by:
get in interface DataCache

put

public TableModel put(DataCacheKey key,
                      TableModel model)
Specified by:
put in interface DataCache

getCacheManager

public DataCacheManager getCacheManager()
Specified by:
getCacheManager in interface DataCache