|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBReader.DBReaderIterator
org.apache.empire.db.DBReader.DBReaderForwardIterator
public class DBReader.DBReaderForwardIterator
This is an iterator for forward only resultsets. There is an important limitation on this iterator: After calling hasNext() the caller may not use any functions on the current item any more. i.e. Example: while (i.hasNext()) { DBRecordData r = i.next(); Object o = r.getValue(0); // ok bool last = i.hasNext(); // ok Object o = r.getValue(0); // Illegal call! }
Field Summary |
---|
Fields inherited from class org.apache.empire.db.DBReader.DBReaderIterator |
---|
curCount, maxCount |
Constructor Summary | |
---|---|
DBReader.DBReaderForwardIterator(int maxCount)
|
Method Summary | |
---|---|
boolean |
hasNext()
Implements the Iterator Interface. |
DBRecordData |
next()
Implements the Iterator Interface. |
Methods inherited from class org.apache.empire.db.DBReader.DBReaderIterator |
---|
dispose, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBReader.DBReaderForwardIterator(int maxCount)
Method Detail |
---|
public boolean hasNext()
public DBRecordData next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |