You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2010/01/10 03:31:54 UTC

[jira] Resolved: (BEANUTILS-371) RowSetDynaClass.setUseColumnLabel() property setter is useless: the "use column label" flag must be known at construction time

     [ https://issues.apache.org/jira/browse/BEANUTILS-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved BEANUTILS-371.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8.3
         Assignee: Niall Pemberton

I have added constructors which have useColumnLabel parameter to ResultSetDynaClass and RowSetDynaClass:

http://svn.apache.org/viewvc?view=revision&revision=897588

> RowSetDynaClass.setUseColumnLabel() property setter is useless: the "use column label" flag must be known at construction time
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-371
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-371
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: DynaBean
>    Affects Versions: 1.8.2
>         Environment: Any
>            Reporter: David Tonhofer
>            Assignee: Niall Pemberton
>             Fix For: 1.8.3
>
>
> If one wants to slurp a "ResultSet" into a "RowSetDynaClass", one may want to use JDBC column labels instead of the JDBC column names.
> The constructor of RowSetDynaClass takes the ResultSet, and slurps it in one operation, using the JDBC column names by default.
> This operation is controlled by a boolean "useColumnLabel" telling whether to use column names of column labels. A setter,
>   RowSetDynaClass.setUseColumnLabel()
> allows one to set that boolean.
> However, as the boolean is used at construction time only, the setter is useless. Instead, the "useColumnLabel" flag should be passed to the constructor!

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