|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.DataIteratorBase
Used to iterate through TabularData objects. The DataIterator allows the code to iterate through any form of TabularData (ResultSets, 2 dimensional arrays, ...) with the same code. This class is used to iterate throught a TabularData object when the number of items it contains are known in advance (2 dim arrays satisfy this criterion, but ResultSets do not as you don't know how many rows are in a ResultSet).
| Constructor Summary | |
protected |
DataIteratorBase()
|
protected |
DataIteratorBase(int numberOfItems)
Number of items that need to be iterated over |
| Method Summary | |
int |
getCurrentItemNumber()
Returns the number of the current item. |
protected int |
getNumberOfItems()
Gets the total number of items in the DataSet. |
boolean |
next()
Returns true if there are more items in the DataSet and also moves the internal pointer of the DataSet to the next available item. |
protected void |
setCurrentItemNumber(int currentItemNumber)
Sets the current item number within the DataSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DataIteratorBase()
protected DataIteratorBase(int numberOfItems)
| Method Detail |
protected int getNumberOfItems()
public int getCurrentItemNumber()
DataIterator
getCurrentItemNumber in interface DataIteratorprotected void setCurrentItemNumber(int currentItemNumber)
public boolean next()
next in interface DataIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||