You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2012/07/20 21:39:36 UTC
[jira] [Updated] (DBUTILS-74) New ListResultSetHandler with a
ResultSetHandler as parameter
[ https://issues.apache.org/jira/browse/DBUTILS-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi updated DBUTILS-74:
----------------------------------
Fix Version/s: (was: 1.5)
1.6
> New ListResultSetHandler with a ResultSetHandler as parameter
> -------------------------------------------------------------
>
> Key: DBUTILS-74
> URL: https://issues.apache.org/jira/browse/DBUTILS-74
> Project: Commons DbUtils
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Olivier Grégoire
> Fix For: 1.6
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> It would be great if we could have such a class:
> public class DefaultListResultSetHandler<T> extends AbstractListHandler<T> {
> public DefaultListResultSetHandler (ResultSetHandler<T> handler) {
> if (handler == null) throw new NullPointerException();
> this.handler = handler;
> }
> protected T handleRow (ResultSet rs) {
> return handler.handle(rs);
> }
> }
> This way, we avoid having two classes, one for the object handler itself and one for the list handler. It's a all at once.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira