Home arrow static arrow Java Programming [Archive] - DataSet in Java
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - DataSet in Java
This topic has 2 replies on 1 page.

Posts:1
Registered: 3/23/04
DataSet in Java  
Mar 23, 2004 9:59 AM



 
Good Afternoon,
I wanted to know if someone knows where to get a JAVA implementation of .Net framework DATASET
I want to migrate a .net framework webservice to JAVA. Anyone knows if there is something equal to DATASET in JAVA?
Thanks to any reply.

sincerely,

Carlos Vales
 

Posts:21,718
Registered: 98-02-20
Re: DataSet in Java  
Mar 23, 2004 10:11 AM (reply 1 of 2)



 
No.

MOD
 

Posts:10
Registered: 10/23/98
Re: DataSet in Java  
Jul 30, 2004 3:28 PM (reply 2 of 2)



 
I believe the Java equivalent of the .NET DataSet is the JDBC Rowset. The following info is an excerpt from the JDBC tutorial @ http://java.sun.com/developer/Books/JDBCTutorial/chapter5.html.

5.1 Types and Uses of Rowsets
A RowSet object contains a set of rows from a result set or some other source of tabular data, like a file or spreadsheet. Because a RowSet object follows the JavaBeans model for properties and event notification, it is a JavaBeans component that can be combined with other components in an application. As is true with other Beans, application programmers will probably use a development tool to create a RowSet object and set its properties.

Rowsets may have many different implementations to fill different needs. These implementations fall into two broad categories, rowsets that are connected and those that are disconnected. A disconnected rowset gets a connection to a data source in order to fill itself with data or to propagate changes in data back to the data source, but most of the time it does not have a connection open. While it is disconnected, it does not need a JDBC driver or the full JDBC API, so its footprint is very small. Thus a rowset is an ideal format for sending data over a network to a thin client.

Because it is not continually connected to its data source, a disconnected rowset stores its data in memory. It needs to maintain metadata about the columns it contains and information about its internal state. It also needs a facility for making connections, for executing commands, and for reading and writing data to and from the data source. A connected rowset, by contrast, opens a connection and keeps it open for as long as the rowset is in use.

Although anyone can implement a rowset, most implementations will probably be provided by vendors offering RowSet classes designed for fairly specific purposes. To make writing an implementation easier, the Java Software division of Sun Microsystems, Inc., plans to provide reference implementations for three different styles of rowsets in the future. The following list of planned implementations gives you an idea of some of the possibilities.

A CachedRowSet class�a disconnected rowset that caches its data in memory; not suitable for very large data sets, but an ideal way to provide thin Java clients, such as a Personal Digital Assistant (PDA) or Network Computer (NC), with tabular data

A JDBCRowSet class�a connected rowset that serves mainly as a thin wrapper around a ResultSet object to make a JDBC driver look like a JavaBeans component

A WebRowSet class�a connected rowset that uses the HTTP protocol internally to talk to a Java servlet that provides data access; used to make it possible for thin web clients to retrieve and possibly update a set of rows
 
This topic has 2 replies on 1 page.