Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1206

netui databinding iterator does not support Rowset, but javadoc says it does

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.2
    • V.Next
    • NetUI
    • None

    Description

      The javadoc for the netui mentions the Rowset is an acceptable java object
      http://beehive.apache.org/docs/1.0.2/netui/apidocs/javadoc/org/apache/beehive/netui/util/iterator/IteratorFactory.html

      however the code in the IteratorFactory does not handle the Rowset properly. It uses teh AtomicTypeIterator and the Rowset is unable to look up the results of the query properly.
      Here is the logic that prevents Rowset from being used properly.

      else if(object instanceof ResultSet && !(object instanceof RowSet))
      return new ResultSetIterator((ResultSet)object);

      I'm not sure why Rowset is explicity disabled here, but since Rowset extends ResultSet it seems changing this logic would be the simplest thing to do.

      Below is an example of the kind of error one might receive if they try to use a rowset. In the below error text, bugID is a field from the database table that was queried.
      Cannot find PropertyDescriptor for 'BUG_ID' for bean 'class com.sun.rowset.CachedRowSetImpl'.

      Has anyone else on the list, noticed this issue

      Attachments

        1. beehive1206.patch
          0.9 kB
          Jacob Danner

        Activity

          People

            jzhuo Julie Zhuo
            jacobd Jacob Danner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: