You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ResultSetHandler from apache db utils is a good api separation concept.
at one side you can provide your own hand-coded implementation
at other side you can use sql2o RS->POJO code
at third side you can write your own generic code
so I propose to add ResultSetHandler interface and ResultSetHandlerFactory interface. Default ResultSetHandlerFactory implementation will use sql2o RS->POJO code.
The text was updated successfully, but these errors were encountered:
btw it's FunctionalInterface in Java8 terms so you can write rs->rs.getObect(1) in Java8
at other side I'm a big fun of code-reuse and generics we can use such universal interface
ResultSetHandler from apache db utils is a good api separation concept.
at one side you can provide your own hand-coded implementation
at other side you can use sql2o RS->POJO code
at third side you can write your own generic code
so I propose to add ResultSetHandler interface and ResultSetHandlerFactory interface. Default ResultSetHandlerFactory implementation will use sql2o RS->POJO code.
The text was updated successfully, but these errors were encountered: