org.pentaho.reporting.engine.classic.core.modules.misc.tablemodel
Class DefaultTableMetaData

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.misc.tablemodel.DefaultTableMetaData

public class DefaultTableMetaData
extends Object

Todo: Document Me

Author:
Thomas Morgner

Constructor Summary
DefaultTableMetaData(int colCount)
           
 
Method Summary
 DataAttributes getCellDataAttribute(int row, int column)
          Returns the meta-attribute as Java-Object.
 DataAttributes getColumnAttribute(int column)
           
 DataAttributes getTableAttribute()
          Returns table-wide attributes.
 boolean isCellDataAttributesSupported()
           
 void setColumnAttribute(int column, String metaAttributeDomain, String metaAttributeId, Object value)
           
 void setTableAttribute(String namespace, String name, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableMetaData

public DefaultTableMetaData(int colCount)
Method Detail

getCellDataAttribute

public DataAttributes getCellDataAttribute(int row,
                                           int column)
Returns the meta-attribute as Java-Object. The object type that is expected by the report engine is defined in the TableMetaData property set. It is the responsibility of the implementor to map the native meta-data model into a model suitable for reporting.

Meta-data models that only describe meta-data for columns can ignore the row-parameter.

Parameters:
row - the row of the cell for which the meta-data is queried.
column - the index of the column for which the meta-data is queried.
Returns:
the meta-data object.

isCellDataAttributesSupported

public boolean isCellDataAttributesSupported()

getColumnAttribute

public DataAttributes getColumnAttribute(int column)

getTableAttribute

public DataAttributes getTableAttribute()
Returns table-wide attributes. This usually contain hints about the data-source used to query the data as well as hints on the sort-order of the data.

Returns:

setColumnAttribute

public void setColumnAttribute(int column,
                               String metaAttributeDomain,
                               String metaAttributeId,
                               Object value)

setTableAttribute

public void setTableAttribute(String namespace,
                              String name,
                              Object value)