Class LegacyDataRowWrapper
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.states.LegacyDataRowWrapper
-
- All Implemented Interfaces:
DataRow
public final class LegacyDataRowWrapper extends Object implements DataRow
This data-row wrapper supports the full interface as it was defined in version 0.8.9. This class makes sure that scripts and introspection code does not break. However, this class should not be used outside of that scope or evil things will happen.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description LegacyDataRowWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findColumn(String name)
Object
get(int col)
Object
get(String col)
Returns the value of the function, expression or column using its specific name.int
getColumnCount()
String
getColumnName(int col)
String[]
getColumnNames()
Returns the known column names, this data-row understands.DataRow
getParent()
boolean
isChanged(int index)
boolean
isChanged(String name)
Checks whether the value contained in the column has changed since the last advance-operation.void
setParent(DataRow parent)
-
-
-
Method Detail
-
getParent
public DataRow getParent()
-
setParent
public void setParent(DataRow parent)
-
get
public Object get(int col)
-
get
public Object get(String col)
Description copied from interface:DataRow
Returns the value of the function, expression or column using its specific name. The given name is translated into a valid column number and the the column is queried. For functions and expressions, thegetValue()
method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)
gets called.
-
getColumnName
public String getColumnName(int col)
-
findColumn
public int findColumn(String name)
-
getColumnCount
public int getColumnCount()
-
isChanged
public boolean isChanged(String name)
Description copied from interface:DataRow
Checks whether the value contained in the column has changed since the last advance-operation.
-
isChanged
public boolean isChanged(int index)
-
getColumnNames
public String[] getColumnNames()
Description copied from interface:DataRow
Returns the known column names, this data-row understands. The column names may change over time but do not change while a event is processed by a function. The array returned is a copy of the internal data-storage and can be safely modified.- Specified by:
getColumnNames
in interfaceDataRow
- Returns:
- the column names as array.
-
-