db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Mogley" <michael.mog...@verizon.net>
Subject rowsets
Date Thu, 19 Dec 2002 02:31:11 GMT
All,

How would you feel about supporting RowSets in Ojb?  By that, I mean being able to do something
like:

    RowSet rowset = getRowSetFromXmlFile();

    Iterator iterator = broker.getIteratorForRowset(Class objectClass, rowset);

The source of the rowset could be absolutely anything imaginable, so don't get hung up on
the Xml example.

It would also be cool to do something like:

    Iterator iterator = broker.getIteratorForQuery(Query query, Class rowsetClass);

Here, the broker would instantiate an instance of the request RowSet implementation class
and populate it with the results of the query.  This would make it easy to add external functionality
such as logical cursors, or  -- to use the Jdbc 2.0 terminology -- disconnected scrollable
ResultSets that materialize rows on-demand.

Michael

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message