commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Southern" <south...@scripps.edu>
Subject [dbutils] ResultSetIterator should utilize ResultSetHandler, not RowProcessor?
Date Mon, 11 Jun 2007 14:26:45 GMT
ResultSetIterator can take a RowProcessor as an argument but then the
RowProcessor.toArray() method is always used in
ResultSetIterator.next().

If ResultSetIterator utilized a ResultSetHandler instead, it's handle()
method could be invoked on next() and then the ResultSet row could be
processed in a number of different ways, including the RowProcessor's
toArray, toBean, toBeanList and toMap methods.

Regards,

~Mark.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message