|
I don't think it's necessary to create a separate OptimalBeanListHandler... I think nobody should be using the old implementation.
I checked in a change to the "bugfixing" branch in revision 743097 that just replaces the old implementation with this new faster implementation. svn ci -m "Merging in Dab Fabulich's work on https://svn.apache.org/repos/asf/commons/sandbox/dbutils/bugfixing
Sending pom.xml |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
With the change I propose, the BeanListHandler#handleRow(ResultSet) method is never called anymore. So, any subclass of BeanListHandler which would override this method would not work properly anymore.
In order to prevent this from happening, I preferred to create a new class (named OptimalBeanListHandler - created from BeanListHandler with svn copy), which would implements ResultSetHandler directly rather than extends GenericListHandler.