com.fdsapi
Interface TabularData

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
TabularDataBase

public interface TabularData
extends java.io.Serializable

A shared abstraction for all types of TabularData (1 and 2 dimensional arrays, result sets, result set metadata and many other types of data can be viewed as a the same with this interface. The abstraction is cell based and cells start at (1,1) (even arrays). The getCellData() methods retrieve any cell data on the current row only. Arrays can retrieve cells on any row, but result sets can't so I made the abstraction work to the more limited ResultSets capability. This limitation also means that data can only iterated through once.



View Code


Field Summary
static int NOTUSED
           
 
Method Summary
 TabularData createInstance(java.lang.Object data)
          Factory method that returns a TabularData instance.
 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
 DataIterator getColIterator()
          Return the Iterator that can iterate through the TabularData's columns
 TabularData getHeader()
          Get the Header (which is also TabularData)
 DataIterator getRowIterator()
          Return the Iterator that can iterate through the TabularData's rows
 void setHeader(TabularData header)
          Set the Header (which is also TabularData)
 

Field Detail

NOTUSED

public static final int NOTUSED
See Also:
Constant Field Values
Method Detail

getCellData

public java.lang.Object getCellData(int col)
Return cell data in the current rows specified column


getCellData

public java.lang.Object getCellData()
Return current cell data (the current row and current column)


getRowIterator

public DataIterator getRowIterator()
Return the Iterator that can iterate through the TabularData's rows


getColIterator

public DataIterator getColIterator()
Return the Iterator that can iterate through the TabularData's columns


createInstance

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


getHeader

public TabularData getHeader()
Get the Header (which is also TabularData)


setHeader

public void setHeader(TabularData header)
Set the Header (which is also TabularData)