Class DefaultTableMetaData
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.misc.tablemodel.DefaultTableMetaData
-
- All Implemented Interfaces:
Serializable
,TableMetaData
public class DefaultTableMetaData extends Object implements TableMetaData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultTableMetaData(int colCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addColumn()
void
addRow()
Deprecated.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)
-
-
-
Method Detail
-
addRow
@Deprecated public void addRow()
Deprecated.
-
addColumn
public void addColumn()
-
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.- Specified by:
getCellDataAttribute
in interfaceTableMetaData
- 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()
- Specified by:
isCellDataAttributesSupported
in interfaceTableMetaData
-
getColumnAttribute
public DataAttributes getColumnAttribute(int column)
- Specified by:
getColumnAttribute
in interfaceTableMetaData
-
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.- Specified by:
getTableAttribute
in interfaceTableMetaData
- Returns:
-
setColumnAttribute
public void setColumnAttribute(int column, String metaAttributeDomain, String metaAttributeId, Object value)
-
-