[
https://issues.apache.org/jira/browse/BEEHIVE-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547903
]
Jacob Danner commented on BEEHIVE-1206:
---------------------------------------
I've worked out and done some simple testing on patch for this.
I began by trying to write a new RowSetIterator, but that didn't make a lot of
sense since using the Rowset interfaces would yield a result similar to that
of the ResultSetIterator code.
Instead, I thought the best solution to be using the ResultSetIterator for
RowSet iteration since RowSet extends ResultSet. I made the check AFTER we look
for Custom IteratorFactory so that users could implement there own resultset
and make use of any of the RowSetImpls available (Web, Cached, JDBC, etc.)
-jacobd
> 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.