org.eclipse.birt.chart.datafeed
Class ResultSetDataSet

java.lang.Object
  extended byorg.eclipse.birt.chart.datafeed.ResultSetDataSet

public final class ResultSetDataSet
extends java.lang.Object

Maintains a subset of a resultset by defining a selective list of columns and a row range to be extracted from a full resultset. An instance of this class is provided to a custom data set processor that is capable of converting the resultset subset content into the expected chart dataset format.


Constructor Summary
ResultSetDataSet(java.util.List lst, int dataType)
          Creates the resultset using a given list.
ResultSetDataSet(ResultSetWrapper rsw, int[] iaColumnIndexes, long lStartRow, long lEndRow)
          The constructor that creates an instance of a resultset subset by extracting appropriate columns and a row range from a resultset
 
Method Summary
 int getColumnCount()
          Returns the columns count for current resultset dataset.
 int getDataType()
          Returns a data type (for internal usage) associated with a single column resultset subset
 long getSize()
          Returns the number of rows associated with this resultset subset instance
 boolean hasNext()
          Indicates whether another row of data is available without actually moving the cursor
 java.lang.Object[] next()
          Returns a row of data and advances the resultset subset cursor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetDataSet

public ResultSetDataSet(ResultSetWrapper rsw,
                        int[] iaColumnIndexes,
                        long lStartRow,
                        long lEndRow)
The constructor that creates an instance of a resultset subset by extracting appropriate columns and a row range from a resultset

Parameters:
lStartRow -
lEndRow -

ResultSetDataSet

public ResultSetDataSet(java.util.List lst,
                        int dataType)
Creates the resultset using a given list.

Parameters:
lst -
Method Detail

hasNext

public final boolean hasNext()
Indicates whether another row of data is available without actually moving the cursor

Returns:
'true' if another row of data is available

next

public final java.lang.Object[] next()
Returns a row of data and advances the resultset subset cursor

Returns:
An 'Object[]' that represents a resultset subset tuple

getDataType

public final int getDataType()
Returns a data type (for internal usage) associated with a single column resultset subset

Returns:
A data type associated with a single column resultset

getColumnCount

public final int getColumnCount()
Returns the columns count for current resultset dataset.

Returns:

getSize

public final long getSize()
Returns the number of rows associated with this resultset subset instance

Returns:
The number of rows associated with this resultset subset instance


Copyright © 2005 Actuate Corp. All rights reserved.