|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.table.cache.AbstractCache
com.sciapp.table.cache.AbstractTableCache
public abstract class AbstractTableCache
AbstractTableCache is a TableCache that uses a map as the cache store.
Field Summary | |
---|---|
protected int |
lastRow
the last row read |
protected Object |
lastRowOb
the last object data read |
protected CacheableTableModel |
model
the cacheable table model |
Fields inherited from class com.sciapp.table.cache.AbstractCache |
---|
chunkSize, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_CACHE_SIZE, maximumCacheSize |
Constructor Summary | |
---|---|
AbstractTableCache(CacheableTableModel model)
Creates an AbstractTableCache. |
|
AbstractTableCache(CacheableTableModel model,
int chunkSize,
int maximumCacheSize)
Creates an AbstractTableCache. |
Method Summary | |
---|---|
Object |
get(Object key)
Retrieves a value from the cache. |
abstract Object |
getObjectAt(Object row,
int column)
Returns the Object found at column of row passed as a parameter. |
Object |
getValueAt(int row,
int column)
Retrieves the cached value at the cell at (row, column). |
boolean |
isValueCached(int row,
int column)
Determines whether the cell's value at (row, column) is cached. |
boolean |
isValueCached(Object key)
Determines whether the value specificed by key is cached. |
void |
put(int row,
Object rowObject)
Inserts a row in the cache. |
void |
put(Object key,
Object value)
Inserts a value in the cache store. |
Object |
remove(int row)
Removes a row from the cache. |
Object |
remove(Object key)
Removes a value from the cache store. |
void |
removeAll()
Clears the cache. |
void |
setCacheTableModel(CacheableTableModel model)
Assigns a CacheableTableModel that will be used to retrieve the uncached values. |
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 |
Field Detail |
---|
protected int lastRow
protected Object lastRowOb
protected CacheableTableModel model
Constructor Detail |
---|
public AbstractTableCache(CacheableTableModel model)
public AbstractTableCache(CacheableTableModel model, int chunkSize, int maximumCacheSize)
Method Detail |
---|
public Object get(Object key)
get
in interface Cache
key
- an object whose associated value is cached.
public abstract Object getObjectAt(Object row, int column)
row
- the row datacolumn
- an index
public Object getValueAt(int row, int column)
getValueAt
in interface TableCache
row
- the cell's row indexcolumn
- the cell's column index
public boolean isValueCached(int row, int column)
isValueCached
in interface TableCache
row
- the cell's row indexcolumn
- the cell's column index
public boolean isValueCached(Object key)
isValueCached
in interface Cache
key
- an object whose associated value is cached.
public void put(int row, Object rowObject)
put
in interface TableCache
row
- the row to insert torowObject
- the object to insert at row
public void put(Object key, Object value)
put
in interface Cache
key
- an object whose associated value is cached.value
- the value to cache.public void removeAll()
removeAll
in interface Cache
public void setCacheTableModel(CacheableTableModel model)
setCacheTableModel
in interface TableCache
model
- the cacheable table model that will be used as the source.public Object remove(int row)
remove
in interface TableCache
row
- the row to remove from the cachepublic Object remove(Object key)
remove
in interface Cache
key
- an object whose associated value is cached.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |