Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-74

New ListResultSetHandler with a ResultSetHandler as parameter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ogregoire Olivier Grégoire
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified