Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.db
Interface DatabaseTableModel

All Superinterfaces:
TableModel
All Known Subinterfaces:
PivotTableModel
All Known Implementing Classes:
AbstractDatabaseTableModel, DefaultDatabaseTableModel, DefaultPivotTableModel, DistinctDatabaseTableModel, MSAccessPivotTableModel

public interface DatabaseTableModel
extends TableModel

DatabaseTableModel defines methods for retrieving multiple rows from an underlying data source.


Method Summary
 int readRowCount()
          Reads and returns the row count from the underlying data source.
 List retrieveRows(int from, int to)
          Fetches multiple rows from the underlying data source.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

readRowCount

int readRowCount()
Reads and returns the row count from the underlying data source.

Returns:
the row count

retrieveRows

List retrieveRows(int from,
                  int to)
Fetches multiple rows from the underlying data source. The following condition must be true: from >= to. The List returned must contain the row elements starting at from. However, the List may contain less elements than those specified in the range.

Parameters:
from - the starting row
to - the ending row
Returns:
the retrieved rows

Copyright © 2005 Scientific Applications. All Rights Reserved.