|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.DataRowDataSource
public class DataRowDataSource
A DataSource that can access values from the 'data-row'. The data-row contains all values from the current row of the
report's TableModel, plus the current values of the defined expressions and functions for the report.
DataRow,
Serialized Form| Constructor Summary | |
|---|---|
DataRowDataSource()
Default constructor. |
|
DataRowDataSource(String column)
Constructs a new data source. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones the data source. |
String |
getDataSourceColumnName()
Returns the data source column name. |
String |
getField()
Deprecated. Required for legacy-parsing, do not use elsewhere. |
String |
getFormula()
Returns the formula used to compute the value of the data source. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the current value of the data source, obtained from a particular column in the data-row. |
void |
setDataSourceColumnName(String dataSourceColumnName)
Defines the name of the column in the datarow to be queried. |
void |
setField(String field)
Deprecated. Required for legacy-parsing, do not use elsewhere. |
void |
setFormula(String formula)
Defines the formula used to compute the value of this data source. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataRowDataSource()
public DataRowDataSource(String column)
column - the name of the field, function or expression in the data-row.| Method Detail |
|---|
public String getField()
public void setField(String field)
field - public String getDataSourceColumnName()
public void setDataSourceColumnName(String dataSourceColumnName)
dataSourceColumnName - the name of the column in the datarow to be queried.
NullPointerException - if the name is null.DataRow.get(java.lang.String)public String getFormula()
public void setFormula(String formula)
formula - the formula for the data source.
public Object getValue(ExpressionRuntime runtime,
Element element)
getValue in interface DataSourceruntime - the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element -
public Object clone()
throws CloneNotSupportedException
clone in interface DataSourceclone in class ObjectCloneNotSupportedException - if the cloning is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||