Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.treetable.db
Class DefaultGroupCache

java.lang.Object
  extended by com.citra.table.cache.AbstractCache
      extended by com.citra.treetable.db.AbstractGroupCache
          extended by com.citra.treetable.db.DefaultGroupCache
All Implemented Interfaces:
Cache, TreeTableCache

public class DefaultGroupCache
extends AbstractGroupCache

DefaultGroupCache assumes that the row objects are an Object array. Therefore the convertObject method casts the supplied object to an Object array and returns the first element.


Field Summary
 
Fields inherited from class com.citra.treetable.db.AbstractGroupCache
model
 
Fields inherited from class com.citra.table.cache.AbstractCache
chunkSize, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_CACHE_SIZE, maximumCacheSize
 
Constructor Summary
DefaultGroupCache(CacheableTreeTableModel model)
          Constructs a DefaultGroupCache.
DefaultGroupCache(CacheableTreeTableModel model, int chunkSize, int maximumCacheSize)
          Constructs a DefaultGroupCache.
 
Method Summary
 Object convertObject(Object rowObject)
          Converts the object rowObject, as received from the database, and returns the result.
 
Methods inherited from class com.citra.treetable.db.AbstractGroupCache
get, getValueAt, isValueCached, isValueCached, put, remove, removeAll, setCacheTreeTableModel
 
Methods inherited from class com.citra.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

DefaultGroupCache

public DefaultGroupCache(CacheableTreeTableModel model)
Constructs a DefaultGroupCache.


DefaultGroupCache

public DefaultGroupCache(CacheableTreeTableModel model,
                         int chunkSize,
                         int maximumCacheSize)
Constructs a DefaultGroupCache.

Method Detail

convertObject

public Object convertObject(Object rowObject)
Converts the object rowObject, as received from the database, and returns the result.

Specified by:
convertObject in class AbstractGroupCache
Parameters:
rowObject - the object as received from the database.
Returns:
the converted object.

Copyright © 2011 Citra Technologies. All Rights Reserved.