commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Aymé (JIRA) <>
Subject [jira] Commented: (DBUTILS-69) Change generic type from Object to T
Date Fri, 04 Jun 2010 13:22:55 GMT


Julien Aymé commented on DBUTILS-69:

I think that in order to do what you want, you will need to implement a new StringColumnListHandler
class, which will call rs.getString method instead of rs.getObject.
You just have to copy the ColumnListHandler code, and change it as you want.

This way, no cast would be required, and the list will contain only String (since ResultSet#getString
method is used).

It is safer to leave the current implementation as is, since there is no way to know for sure
the type returned by the getObject method.

> Change generic type from Object to T
> ------------------------------------
>                 Key: DBUTILS-69
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Stas Agarkov
>             Fix For: 1.3
>         Attachments: ColumnListHandler.patch
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
> Please change generic type from Object to T in the class ColumnListHandler.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message