java.lang.Object
javatools.db.DbRowSetIterator
- All Implemented Interfaces:
- DbIterator, java.util.Iterator
- public class DbRowSetIterator
- extends java.lang.Object
- implements DbIterator
|
Method Summary |
boolean |
hasNext()
Tests whether there are elements remaining in the collection. |
boolean |
hasNextRow()
Are there more rows to iterator through? |
java.lang.Object |
next()
Obtain the next element in the collection. |
DbRow |
nextRow()
Get the next DbRow in the table. |
void |
remove()
Removes the current element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rowIt
private java.util.Iterator rowIt
DbRowSetIterator
public DbRowSetIterator(DbRowSet rs)
- Creates a new instance of DbRowSetIterator
hasNext
public boolean hasNext()
- Description copied from interface:
java.util.Iterator
- Tests whether there are elements remaining in the collection. In other
words, calling
next() will not throw an exception.
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- Description copied from interface:
java.util.Iterator
- Obtain the next element in the collection.
- Specified by:
next in interface java.util.Iterator
remove
public void remove()
- Description copied from interface:
DbIterator
- Removes the current element.
- Specified by:
remove in interface DbIterator
hasNextRow
public boolean hasNextRow()
throws DbException
- Are there more rows to iterator through?
- Specified by:
hasNextRow in interface DbIterator
nextRow
public DbRow nextRow()
throws DbException
- Get the next DbRow in the table.
- Specified by:
nextRow in interface DbIterator