Correct, this does not involve the Servlet API. I got the idea after using the MapListHandler. In this case, I did not want to have to iterate over the result set to find the specific row of data I was looking for. A Map seemed most natural.
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Hi, > You mean it's a copy of the > javax.jsp.jstl.sql.ResultSupport/Result > classes? ;) Those things have been copied over for ages. I > supposed > DBUtils is yet another appropriate place for such a useful > little > utility, since I assume yours doesn't require the JSP/JSTL > APIs ;) > > Yoav Shapira http://www.yoavshapira.com > > > >-----Original Message----- > >From: Norris Shelton [mailto:[EMAIL PROTECTED] > >Sent: Friday, October 22, 2004 9:53 AM > >To: Jakarta Commons Developers List > >Subject: Re: [dbutils] Anyone working on this project? > > > >Turns a result set into a map of maps. I needed it to turn a > >result set into a map of state abbreviations keys with state > >information maps as values. > > > >It has 2 constructors. The empty constructor assumes that > there > >is going to be a column named key that will serve as the map > >key. there is another constructor that takes a String that > is > >used to identify the key column. > > > >Here is the code. FYI, I get a depracated warning on the > >BasicRowProcessor.instance(), but I was not familiar enough > with > >the code to know what it does or what it should now be or if > it > >was even needed. > > > > > > > >--- David Graham <[EMAIL PROTECTED]> wrote: > > > >> What does MapMapHandler do? > >> > >> David > >> > >> --- Norris Shelton <[EMAIL PROTECTED]> wrote: > >> > >> > I made a MapMapHandler and wanted someone to look at it > to > >> see > >> > if it is worth submitting. > >> > > >> > ===== > >> > > >> > Norris Shelton > >> > Software Engineer > >> > Sun Certified Java 1.1 Programmer > >> > Appriss, Inc. > >> > ICQ# 26487421 > >> > AIM NorrisEShelton > >> > YIM norrisshelton > >> > > >> > > >> > > >> > > >> > _______________________________ > >> > Do you Yahoo!? > >> > Declare Yourself - Register online to vote today! > >> > http://vote.yahoo.com > >> > > >> > > >> > >--------------------------------------------------------------------- > >> > To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> > For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > > >> > > >> > >> > >> > >> > >> _______________________________ > >> Do you Yahoo!? > >> Declare Yourself - Register online to vote today! > >> http://vote.yahoo.com > >> > >> > >--------------------------------------------------------------------- > >> To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > >> > > > >===== > > > >Norris Shelton > >Software Engineer > >Sun Certified Java 1.1 Programmer > >Appriss, Inc. > >ICQ# 26487421 > >AIM NorrisEShelton > >YIM norrisshelton > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection > around > >http://mail.yahoo.com > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, > and may not be saved, copied, printed, disclosed or used by > anyone else. If you are not the(an) intended recipient, > please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ===== Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]