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

ResultSetDynaClass should implement Iterable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.0-BETA
    • 2.0.0
    • None
    • None

    Description

      org.apache.commons.beanutils.ResultSetDynaClass already provides an iterator() method. If it would implement the Iterable interface too, it could be used with the new Java5 for loop construct, e.g.:

      for (final Object dynaBean : new ResultSetDynaClass(resultSet, false))
      {

      }

      Changes to ResultSetDynaClass are minimal and will not break the API.

      Attachments

        1. BEANUTILS-292.patch
          2 kB
          Benedikt Ritter

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johan1 Johan Stenberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: