Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-371

RowSetDynaClass.setUseColumnLabel() property setter is useless: the "use column label" flag must be known at construction time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.8.3
    • DynaBean
    • None
    • Any

    Description

      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!

      Attachments

        Issue Links

          Activity

            People

              niallp Niall Pemberton
              yatima David Tonhofer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: