commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juozas Baliuka <bali...@mwm.lt>
Subject Re: [dbutils] ScalarListHandler
Date Wed, 03 Mar 2004 08:17:12 GMT
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&#233;ter  <petike1@dpg.hu> wrote:
>  
>
>>David Graham  <grahamdavid1980@yahoo.com> 2004.03.02. 06:34:41 -8h-kor
>>&#237;rta:
>>
>>    
>>
>>>Please create a bugzilla enhancement ticket and attach these files to
>>>      
>>>
>>it
>>    
>>
>>>so they don't get lost.  While I think the handler is useful, its name
>>>      
>>>
>>is
>>    
>>
>>>non-sensical :-).  It fits with the other naming conventions for
>>>      
>>>
>>handlers
>>    
>>
>>>but you can't really have a scalar and a list at the same time.
>>>
>>>David
>>>      
>>>
>>What do you think about the name "ObjectListHandler"?
>>
>>-- 
>>petike
>>http://petike1.uw.hu
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Search - Find what you’re looking for faster
>http://search.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message