|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.db.DbIterator | +--javatools.db.DbCachedIterator
A class to represent a "cached" DbIterator, that is an iterator that can be called more than once.
Constructor Summary | |
DbCachedIterator(DbCachedTable table)
Creates new DbCachedIterator |
Method Summary | |
boolean |
hasNext()
Checks if this iterator has a value after the current one. |
boolean |
hasNextRow()
Are there more rows to iterator through? |
java.lang.Object |
next()
Takes the next object from the iterator. |
DbRow |
nextRow()
Get the next DbRow in the table. |
void |
remove()
Removes the current element in the iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbCachedIterator(DbCachedTable table)
table
- The table to point the iterator to.Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class DbIterator
true
: if there is another value;
false
: otherwise.public boolean hasNextRow() throws DbException
hasNextRow
in class DbIterator
true
: if there is another row;
false
: otherwise.
DbException
- If something goes wrong.public java.lang.Object next()
next
in interface java.util.Iterator
next
in class DbIterator
public DbRow nextRow() throws DbException
nextRow
in class DbIterator
DbException
- If something goes wrong.public void remove()
remove
in interface java.util.Iterator
remove
in class DbIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |