fr.lri.bd.olap.model
Class AggregateModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by fr.lri.bd.olap.model.AggregateModel
All Implemented Interfaces:
Serializable, TableModel

public class AggregateModel
extends AbstractTableModel

AggregateModel class represents results from query in specified Top window table

Author:
holubec
See Also:
Serialized Form

Constructor Summary
AggregateModel(OlapTree tree, List<GraphPath> classifierList, List<GraphPath> meassureList, List<String> operations, boolean isAbsolute)
          Executes and counts results of specified query
 
Method Summary
 void exportCSV(String fileName)
          Export results to specified CSV file
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 ViewDTO getView()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateModel

public AggregateModel(OlapTree tree,
                      List<GraphPath> classifierList,
                      List<GraphPath> meassureList,
                      List<String> operations,
                      boolean isAbsolute)
Executes and counts results of specified query

Parameters:
tree - Olap tree of query
classifierList - list of classifiers
meassureList - list of meassures
operations - list of operations
isAbsolute - true when classifier is just root vertex
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

exportCSV

public void exportCSV(String fileName)
Export results to specified CSV file

Parameters:
fileName - file name

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getView

public ViewDTO getView()
Returns:
asociated view class