I use "Column" prefix for this handler at home too. BTW I faund "ColumnPairHandler" handler is a one usefull too:
"SELECT ID,NAME FROM SOME_TABLE"
Object handle(ResultSet rs)throws SQLException{
Map map = new HashMap();
while(rs.next()){
map.put(rs.getObject(1),rs.getObject(2));
}
return map;
}David Graham wrote:
Well, everything is an Object so that doesn't help much. Maybe ColumnListHandler?
David
--- Bagyinszki Péter <[EMAIL PROTECTED]> wrote:
David Graham <[EMAIL PROTECTED]> 2004.03.02. 06:34:41 -8h-kor írta:
Please create a bugzilla enhancement ticket and attach these files toit
so they don't get lost. While I think the handler is useful, its nameis
non-sensical :-). It fits with the other naming conventions forhandlers
but you can't really have a scalar and a list at the same time.What do you think about the name "ObjectListHandler"?
David
-- petike http://petike1.uw.hu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
