commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Grégoire (JIRA) <j...@apache.org>
Subject [jira] Created: (DBUTILS-74) New ListResultSetHandler with a ResultSetHandler as parameter
Date Tue, 05 Oct 2010 07:59:33 GMT
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


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message