com.fdsapi
Class TabularDataResultSet

java.lang.Object
  |
  +--com.fdsapi.TabularDataBase
        |
        +--com.fdsapi.TabularDataResultSet
All Implemented Interfaces:
java.io.Serializable, TabularData

public class TabularDataResultSet
extends TabularDataBase

TabularData for ResultSets that allows the FormattedDataSet to support them.

View Code

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.fdsapi.TabularDataBase
colIterator, rowIterator
 
Fields inherited from interface com.fdsapi.TabularData
NOTUSED
 
Constructor Summary
  TabularDataResultSet()
           
  TabularDataResultSet(java.sql.ResultSet data)
           
protected TabularDataResultSet(java.sql.ResultSet data, int numRows, int numCols)
           
 
Method Summary
 TabularData createInstance(java.lang.Object data)
          Factory method that returns a TabularData instance.
protected  void createRowIterator(int numRows)
           
 java.lang.Object getCellData()
          Return current cell data (the current row and current column)
 java.lang.Object getCellData(int col)
          Return cell data in the current rows specified column
 
Methods inherited from class com.fdsapi.TabularDataBase
createColIterator, getColIterator, getHeader, getRowIterator, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabularDataResultSet

public TabularDataResultSet()

TabularDataResultSet

public TabularDataResultSet(java.sql.ResultSet data)
                     throws java.sql.SQLException

TabularDataResultSet

protected TabularDataResultSet(java.sql.ResultSet data,
                               int numRows,
                               int numCols)
Method Detail

getCellData

public java.lang.Object getCellData(int col)
Description copied from interface: TabularData
Return cell data in the current rows specified column

Specified by:
getCellData in interface TabularData
Specified by:
getCellData in class TabularDataBase

getCellData

public java.lang.Object getCellData()
Description copied from interface: TabularData
Return current cell data (the current row and current column)

Specified by:
getCellData in interface TabularData
Specified by:
getCellData in class TabularDataBase

createRowIterator

protected void createRowIterator(int numRows)
Overrides:
createRowIterator in class TabularDataBase

createInstance

public TabularData createInstance(java.lang.Object data)
Description copied from interface: TabularData
Factory method that returns a TabularData instance. The passed object is the underlying data that will be iterated (i.e. ResultSet, Object[][] etc)

Specified by:
createInstance in interface TabularData
Specified by:
createInstance in class TabularDataBase