Class LegacyBandedMDXTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.pentaho.reporting.engine.classic.extensions.datasources.mondrian.LegacyBandedMDXTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
,org.pentaho.reporting.engine.classic.core.MetaTableModel
,org.pentaho.reporting.engine.classic.core.util.CloseableTableModel
public class LegacyBandedMDXTableModel extends AbstractTableModel implements org.pentaho.reporting.engine.classic.core.util.CloseableTableModel, org.pentaho.reporting.engine.classic.core.MetaTableModel
This tablemodel performs some preprocessing to get multi-dimensional resultset (with row and column headers) into a classical table-structure. The query must be a two-dimensional query or the whole process will break. This class exists for legacy reasons to provide existing reports the same view on MDX data as implemented in the Pentaho-Platform and the Report-Designer. It can also be somewhat useful if you have a requirement to produce banded reporting over a MDX data source.- Author:
- : Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description LegacyBandedMDXTableModel(mondrian.olap.Result resultSet, int queryLimitValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.pentaho.reporting.engine.classic.core.wizard.DataAttributes
getCellDataAttributes(int rowIndex, int columnIndex)
org.pentaho.reporting.engine.classic.core.wizard.DataAttributes
getColumnAttributes(int column)
Class<?>
getColumnClass(int columnIndex)
int
getColumnCount()
String
getColumnName(int column)
int
getRowCount()
org.pentaho.reporting.engine.classic.core.wizard.DataAttributes
getTableAttributes()
Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellDataAttributesSupported()
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
-
close
public void close()
- Specified by:
close
in interfaceorg.pentaho.reporting.engine.classic.core.util.CloseableTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
-
getCellDataAttributes
public org.pentaho.reporting.engine.classic.core.wizard.DataAttributes getCellDataAttributes(int rowIndex, int columnIndex)
- Specified by:
getCellDataAttributes
in interfaceorg.pentaho.reporting.engine.classic.core.MetaTableModel
-
isCellDataAttributesSupported
public boolean isCellDataAttributesSupported()
- Specified by:
isCellDataAttributesSupported
in interfaceorg.pentaho.reporting.engine.classic.core.MetaTableModel
-
getColumnAttributes
public org.pentaho.reporting.engine.classic.core.wizard.DataAttributes getColumnAttributes(int column)
- Specified by:
getColumnAttributes
in interfaceorg.pentaho.reporting.engine.classic.core.MetaTableModel
-
getTableAttributes
public org.pentaho.reporting.engine.classic.core.wizard.DataAttributes getTableAttributes()
- Specified by:
getTableAttributes
in interfaceorg.pentaho.reporting.engine.classic.core.MetaTableModel
-
-