commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan B. Canon (JIRA)" <>
Subject [jira] Commented: (DBUTILS-17) [dbutils] ScalarHandler subclasses that return Integers and Longs
Date Fri, 03 Nov 2006 18:49:17 GMT
    [ ] 
Alan B. Canon commented on DBUTILS-17:

I lean towards inclusion in 1.1. The bloat to the API is not severe. The patch adds new general
functionality, though it solves a particular issue for the suggestor. It does not alter existing
API in any way, but extends an existing class into two complementary subspecies.

> [dbutils] ScalarHandler subclasses that return Integers and Longs
> -----------------------------------------------------------------
>                 Key: DBUTILS-17
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: Improvement
>         Environment: Operating System: All
> Platform: All
>            Reporter: greg hawkes
>            Priority: Minor
>             Fix For: 1.1
>         Attachments: DBUTILS-17.patch,,
> 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.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message