|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectResultSetIterator
public class ResultSetIterator
Iterator
implementation for ResultSet
.
Constructor Summary | |
---|---|
ResultSetIterator(ResultSet resultSet)
Create a ResultSetIterator for the resultSet . |
Method Summary | |
---|---|
boolean |
hasNext()
Check for a subsequent item in the ResultSet. |
Object |
next()
Advance to the next row in the ResultSet. |
void |
remove()
The remove operation is unsupported on the ResultSetIterator. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetIterator(ResultSet resultSet)
resultSet
.
resultSet
- the ResultSet to iterate over
IllegalStateException
- when a SQLException
occurs manipulating the ResultSetMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
true
if there is another element; false
otherwise
IllegalStateException
- when a SQLException
occurs advancing the ResultSetpublic Object next()
next
in interface Iterator
Map
containing the data in the next row. The keys in the map
correspond to the ResultSet's column names and are case insensitive when checking a key.
NoSuchElementException
- if the ResultSet is null or the end of the ResultSet has been reachedpublic void remove()
remove
in interface Iterator
UnsupportedOperationException
- always
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |