org.eclipse.birt.chart.internal.factory
Class SqlDataRowEvaluator

java.lang.Object
  extended byorg.eclipse.birt.chart.factory.DataRowExpressionEvaluatorAdapter
      extended byorg.eclipse.birt.chart.internal.factory.SqlDataRowEvaluator
All Implemented Interfaces:
IDataRowExpressionEvaluator

public class SqlDataRowEvaluator
extends DataRowExpressionEvaluatorAdapter

A java.sql.ResultSet implementation for IDataRowExpressionEvaluator.


Constructor Summary
SqlDataRowEvaluator(java.sql.ResultSet resultSet)
          The constructor.
 
Method Summary
 void close()
          Closes the underlying resultset.
 java.lang.Object evaluate(java.lang.String expression)
          Evaluates the expression based on the current row
 boolean first()
          Moves to the first row.
 boolean next()
          Moves to the next row.
 
Methods inherited from class org.eclipse.birt.chart.factory.DataRowExpressionEvaluatorAdapter
evaluateGlobal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlDataRowEvaluator

public SqlDataRowEvaluator(java.sql.ResultSet resultSet)
The constructor.

Parameters:
resultSet -
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.String expression)
Description copied from interface: IDataRowExpressionEvaluator
Evaluates the expression based on the current row

Specified by:
evaluate in interface IDataRowExpressionEvaluator
Overrides:
evaluate in class DataRowExpressionEvaluatorAdapter

next

public boolean next()
Description copied from interface: IDataRowExpressionEvaluator
Moves to the next row.

Specified by:
next in interface IDataRowExpressionEvaluator
Overrides:
next in class DataRowExpressionEvaluatorAdapter

close

public void close()
Description copied from interface: IDataRowExpressionEvaluator
Closes the underlying resultset. This is optional (it can be a no-op if the close is handled externally or not needed).

Specified by:
close in interface IDataRowExpressionEvaluator
Overrides:
close in class DataRowExpressionEvaluatorAdapter

first

public boolean first()
Description copied from interface: IDataRowExpressionEvaluator
Moves to the first row. Optional if already positioned on the first row when passed to Generator.bindData()

Specified by:
first in interface IDataRowExpressionEvaluator
Overrides:
first in class DataRowExpressionEvaluatorAdapter


Copyright © 2005-2007 Actuate Corp. All rights reserved.