commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <niall.pember...@gmail.com>
Subject Re: Commons BeanUtils: RowSetDynaClass.setUseColumnLabel() useless?
Date Fri, 11 Dec 2009 15:10:39 GMT
On Fri, Dec 4, 2009 at 9:50 PM, El Tonno <el.tonno@m-plify.net> wrote:
> Hello,
>
> Just a quick question. about Jakarta Commons BeanUtils 1.8.2 (the latest)
>
> I have to slurp a ResultSet into a RowSetDynaClass, but I have to use the
> JDBC column labels instead of the JDBC column names.
>
> It seems that the instance method
>
> RowSetDynaClass.setUseColumnLabel()
> is what I want, as its stated purpose is to make a RowSetDynaClass instance
> use the column labels.
>
> However, this instance method is useless. Indeed, the flag saying whether
> column labels are used is useful at initalization time only,
> when a RowsSetDynaClass is initialized from a ResultSet, and not later. It
> seems that the constructors have to take the "useColumnLabel" flag instead -
> but they don't.
>
> Either I don't get the API at all or this is a bug. Is it?

Its a bug, can you create a bug report please:

http://commons.apache.org/beanutils/issue-tracking.html

This was added in 1.8.2, but obviously not well thought out - apologies.

http://issues.apache.org/jira/browse/BEANUTILS-344

Niall

> I'm off patching the source a bit.
>
> Best regards,
>
> -- David
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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


Mime
View raw message