You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Jacob Danner (JIRA)" <ji...@apache.org> on 2007/12/03 18:13:43 UTC

[jira] Updated: (BEEHIVE-1206) netui databinding iterator does not support Rowset, but javadoc says it does

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

Jacob Danner updated BEEHIVE-1206:
----------------------------------

    Attachment: beehive1206.patch

A fix for this issue

> netui databinding iterator does not support Rowset, but javadoc says it does
> ----------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1206
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1206
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.2
>            Reporter: Jacob Danner
>            Priority: Minor
>             Fix For: V.Next
>
>         Attachments: beehive1206.patch
>
>
> 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

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