Interface DataRow
-
- All Known Implementing Classes:
AbstractDataFactory.DataRowWrapper
,CompoundDataRow
,DataRowConnector
,FastGlobalView
,ImportedVariablesDataRow
,LegacyDataRowWrapper
,ParameterDataRow
,QueryDataRowWrapper
,ReportEnvironmentDataRow
,ReportParameterValues
,StaticDataRow
public interface DataRow
The datarow is used to access the current row in theTableModel
,Expression
s andFunction
s using a generic interface. The Engine assumes, that the tablemodels given for reporting are immutable and do not change during the report processing.- Author:
- Thomas Morgner
- See Also:
Expression
,Function
,TableModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
get(String col)
Returns the value of the function, expression or column using its specific name.String[]
getColumnNames()
Returns the known column names, this data-row understands.boolean
isChanged(String name)
Checks whether the value contained in the column has changed since the last advance-operation.
-
-
-
Method Detail
-
get
Object get(String col)
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.- Parameters:
col
- the item index.- Returns:
- the value.
-
getColumnNames
String[] getColumnNames()
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.- Returns:
- the column names as array.
-
isChanged
boolean isChanged(String name)
Checks whether the value contained in the column has changed since the last advance-operation.- Parameters:
name
- the name of the column.- Returns:
- true, if the value has changed, false otherwise.
-
-