Hi,
Currently, you need to do this:
List<Test> list = (List<Test>) BasicRowProcessor.instance().toBeanList(rs,
Test.class);
what about using generics?
List<Test> list = BasicRowProcessor.instance().toBeanList(rs, Test.class);
public static <T> List<T> toBeanList(
ResultSet rs,
Class<T> clazz) throws SQLException {
return (List<T>) toBeanList(rs, clazz);
}
Of course this would be required for other cases as well. I'm not sure if you
should create a new class or overwrite the existing class for the generic
version. Maybe the Class<T> could be removed in some way (I'm not a generics
expert).
Thomas
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]