Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.db
Interface PivotTableModel

All Superinterfaces:
DatabaseTableModel, TableModel
All Known Implementing Classes:
DefaultPivotTableModel, MSAccessPivotTableModel

public interface PivotTableModel
extends DatabaseTableModel

PivotTableModel is used to diplay a crosstab in tabular form.


Method Summary
 String[] retrievePivotColumns(String pivotColumn)
          Retrieves the pivot columns from the underlying data source.
 
Methods inherited from interface com.sciapp.table.db.DatabaseTableModel
readRowCount, retrieveRows
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

retrievePivotColumns

String[] retrievePivotColumns(String pivotColumn)
Retrieves the pivot columns from the underlying data source. Note that the pivot column need not be a column name, but also a column function. e.g. year(orderDate)

Parameters:
pivotColumn - a column or a column function used as the pivot.
Returns:
the pivot columns.

Copyright © 2005 Scientific Applications. All Rights Reserved.