Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.3
-
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.