Package com.mckoi.database
Class SimpleRowEnumeration
- java.lang.Object
-
- com.mckoi.database.SimpleRowEnumeration
-
- All Implemented Interfaces:
RowEnumeration
public final class SimpleRowEnumeration extends java.lang.Object implements RowEnumeration
A RowEnumeration implementation that represents a sequence of rows that can be referenced in incremental order between 0 and row_count (exclusive). A Table that returns a SimpleRowEnumeration is guarenteed to provide valid TObject values via the 'getCellContents' method between rows 0 and getRowCount().- Author:
- Tobias Downer
-
-
Constructor Summary
Constructors Constructor Description SimpleRowEnumeration(int row_count)Constructs the RowEnumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreRows()Determines if there are any rows left in the enumeration.intnextRowIndex()Returns the next row index from the enumeration.
-
-
-
Method Detail
-
hasMoreRows
public final boolean hasMoreRows()
Description copied from interface:RowEnumerationDetermines if there are any rows left in the enumeration.- Specified by:
hasMoreRowsin interfaceRowEnumeration
-
nextRowIndex
public final int nextRowIndex()
Description copied from interface:RowEnumerationReturns the next row index from the enumeration.- Specified by:
nextRowIndexin interfaceRowEnumeration
-
-