Package org.eclipse.birt.chart.factory
Class DataRowExpressionEvaluatorAdapter
- java.lang.Object
-
- org.eclipse.birt.chart.factory.DataRowExpressionEvaluatorAdapter
-
- All Implemented Interfaces:
IDataRowExpressionEvaluator
public class DataRowExpressionEvaluatorAdapter extends java.lang.Object implements IDataRowExpressionEvaluator
An adapter class for IDataRowExpressionEvaluator
-
-
Constructor Summary
Constructors Constructor Description DataRowExpressionEvaluatorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the underlying resultset.java.lang.Objectevaluate(java.lang.String expression)Evaluates the expression based on the current rowjava.lang.ObjectevaluateGlobal(java.lang.String expression)Evaluates the global expressions which are not associated with the data rows.booleanfirst()Moves to the first row.booleannext()Moves to the next row.
-
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(java.lang.String expression)
Description copied from interface:IDataRowExpressionEvaluatorEvaluates the expression based on the current row- Specified by:
evaluatein interfaceIDataRowExpressionEvaluator- Returns:
- An Object representing the evaluated expression. The Object must be of a type String, Number, Date, Calendar, or it will be evaluated as a String using toString(). If there is any BirtException being caught by evaluation, the return value will be the caught BirtException.
-
evaluateGlobal
public java.lang.Object evaluateGlobal(java.lang.String expression)
Description copied from interface:IDataRowExpressionEvaluatorEvaluates the global expressions which are not associated with the data rows.- Specified by:
evaluateGlobalin interfaceIDataRowExpressionEvaluator- Returns:
- An Object representing the evaluated expression. The Object must be of a type String, Number, Date, Calendar, or it will be evaluated as a String using toString().
-
first
public boolean first()
Description copied from interface:IDataRowExpressionEvaluatorMoves to the first row. Optional if already positioned on the first row when passed to Generator.bindData()- Specified by:
firstin interfaceIDataRowExpressionEvaluator- Returns:
trueif the cursor is on a valid row;falseif there are no rows in the result set
-
next
public boolean next()
Description copied from interface:IDataRowExpressionEvaluatorMoves to the next row.- Specified by:
nextin interfaceIDataRowExpressionEvaluator- Returns:
- False if the last row has been reached. True otherwise.
-
close
public void close()
Description copied from interface:IDataRowExpressionEvaluatorCloses the underlying resultset. This is optional (it can be a no-op if the close is handled externally or not needed).- Specified by:
closein interfaceIDataRowExpressionEvaluator
-
-