CacheableTableModel

Top  Previous  Next

 

CacheableTableModel contains methods for determining whether the row count or certain cell values have been retrieved (cached). These are:

 

public boolean isCountCached();

public boolean isValueCached(int row, int column);

 

In addition, the method:

 

public boolean isRangedModel();

 

, determines whether or not the model can fetch data in ranges.

 

Finally, the method:

 

public java.util.List getUncachedRows(int from, int to);

 

, retrieves the cell values from the table model by specifying a row interval. In our framework, this method is used by a Cache (TableCache) object.