|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.db.DbIterator
An iterator class for DbTables. There is no public constructor. Use DbTable.iterator(). While this class supports the java.util.Iterator interface, it is recommended not to use it because they do not throw the proper DbException on error. Instead use the similar hasNextRow() and nextRow().
Method Summary | |
boolean |
hasNext()
Are there more items in this iterator? |
boolean |
hasNextRow()
Are there more rows to iterator through? |
java.lang.Object |
next()
Returns the next item. |
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 |
Method Detail |
public void remove()
remove
in interface java.util.Iterator
public boolean hasNextRow() throws DbException
true
: there are still more rows;
false
: no there are not.
DbException
- If something goes wrong.public boolean hasNext()
hasNext
in interface java.util.Iterator
true
: there are still more items;
false
: no there are not.public java.lang.Object next()
next
in interface java.util.Iterator
public DbRow nextRow() throws DbException
DbException
- If something goes wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |