You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by David Graham <gr...@yahoo.com> on 2004/03/09 03:38:45 UTC

[dbutils] Bean Handling

The factoring of bean processing in DbUtils doesn't feel right to me. 
BasicRowProcessor is overwhelmed by support methods for bean conversions. 
We needed more flexibility with column to property matching so we created
the ColumnProcessor interface causing bean handling to be split across
multiple classes.

My proposal is to move all BasicColumnProcessor methods and bean related
BasicRowProcessor methods to a new class called BeanProcessor that would
be solely responsible for bean handling.  Then we would remove the
ColumnProcessor interface and BasicColumnProcessor class as they haven't
been released yet.  BeanProcessor would use the Template Method pattern so
subclasses could override methods like mapColumnsToProperties() with
custom implementations.

Comments?

David

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com

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