You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mark Southern <so...@scripps.edu> on 2007/06/11 16:26:45 UTC

[dbutils] ResultSetIterator should utilize ResultSetHandler, not RowProcessor?

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