[ https://issues.apache.org/jira/browse/DBUTILS-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed DBUTILS-17. -------------------------------- Resolution: Won't Fix There have been no comments, so going with my view of WONTFIX on this. > [dbutils] ScalarHandler subclasses that return Integers and Longs > ----------------------------------------------------------------- > > Key: DBUTILS-17 > URL: https://issues.apache.org/jira/browse/DBUTILS-17 > Project: Commons DbUtils > Issue Type: Improvement > Environment: Operating System: All > Platform: All > Reporter: greg hawkes > Priority: Minor > Fix For: 1.2 > > Attachments: DBUTILS-17.patch, IntScalarHandler.java, > LongScalarHandler.java > > > I (and, looking around, many other people) most often use ScalarHandler to > fetch > the result of an SQL count(*) column. ScalarHandler works, but I was forever > needing to parse the result to create an Integer (and occasionally, a Long) > value. Several possible solutions have been proposed to make this task easier. > This is mine. > I have extended ScalarHandler to create IntScalarHandler and > LongScalarHandler, > which return Integers and Longs, respectively. Their usage is exactly the same > as ScalarHandler. They have been tested on Oracle, MS-SQL Server, and > PostgreSQL > databases, and have proven to be very effective. I hope that they can be > included in the DbUtils distribution, where they fit right alongside the > existing ScalarHandler. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]