|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.imaginary.util.ResultSetIterator
Provides an Iterator
interface into a JDBC
ResultSet
. Using this iterator, you can move through a
result set sequentially and pull each row out as a HashMap
whose keys are column names and whose values are the column values.
This class will currently function poorly for result sets with
two columns of the same name.
Last modified $Date: 1999/11/06 19:50:56 $
Constructor Summary | |
ResultSetIterator(java.sql.ResultSet rs)
Constructs a new ResultSetIterator using the
specified ResultSet as its source of data. |
Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
Provides the next row in the result set as a HashMap
where the keys are the column names and the values are the column
values. |
void |
remove()
This method is currently unsupported. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ResultSetIterator(java.sql.ResultSet rs) throws java.sql.SQLException
ResultSetIterator
using the
specified ResultSet
as its source of data.rs
- the source of data for this iteratorMethod Detail |
public boolean hasNext()
public java.lang.Object next()
HashMap
where the keys are the column names and the values are the column
values.HashMap
public void remove()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |