Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.cache
Class DefaultTableCache

java.lang.Object
  extended by com.sciapp.table.cache.AbstractCache
      extended by com.sciapp.table.cache.AbstractTableCache
          extended by com.sciapp.table.cache.DefaultTableCache
All Implemented Interfaces:
Cache, TableCache

public class DefaultTableCache
extends AbstractTableCache

DefaultTableCache assumes that the row objects are an Object array. Therefore, the getObjectAt method casts the supplied object to an array and returns the element specified by the column parameter.


Field Summary
 
Fields inherited from class com.sciapp.table.cache.AbstractTableCache
lastRow, lastRowOb, model
 
Fields inherited from class com.sciapp.table.cache.AbstractCache
chunkSize, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_CACHE_SIZE, maximumCacheSize
 
Constructor Summary
DefaultTableCache(CacheableTableModel model)
          Creates a DefaultTableCache.
DefaultTableCache(CacheableTableModel model, int chunkSize, int maximumCacheSize)
          Creates a DefaultTableCache.
 
Method Summary
 Object getObjectAt(Object rowObject, int column)
          Returns the Object found at column of row passed as a parameter.
 
Methods inherited from class com.sciapp.table.cache.AbstractTableCache
get, getValueAt, isValueCached, isValueCached, put, put, remove, remove, removeAll, setCacheTableModel
 
Methods inherited from class com.sciapp.table.cache.AbstractCache
setChunkSize, setMaximumCacheSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableCache

public DefaultTableCache(CacheableTableModel model)
Creates a DefaultTableCache.


DefaultTableCache

public DefaultTableCache(CacheableTableModel model,
                         int chunkSize,
                         int maximumCacheSize)
Creates a DefaultTableCache.

Method Detail

getObjectAt

public Object getObjectAt(Object rowObject,
                          int column)
Returns the Object found at column of row passed as a parameter.

Specified by:
getObjectAt in class AbstractTableCache
Parameters:
rowObject - the row data
column - an index
Returns:
the object found at column of the row data row

Copyright © 2005 Scientific Applications. All Rights Reserved.