File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes query about rowset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "query about rowset" Watch "query about rowset" New topic
Author

query about rowset

ravi v kumar
Ranch Hand

Joined: Dec 14, 2004
Posts: 56
hi

i am one more question?

what is rowset ?

and how it is different from resultset

and is the connection to db can be done my rowset without DriverManager and DataSource.

vth regards

rvk
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
RowSet is another Interface which is inherting the ResultSet interface. But the main difference is it can be used as an JavaBean component.

The RowSet interface provides a set of JavaBeans properties that allow a RowSet instance to be configured to connect to a JDBC data source and read some data from the data source

The RowSet interface supports JavaBeans events, allowing other components in an application to be notified when an event occurs on a rowset, such as a change in its value

In other words, a RowSet implementation is a layer of software that executes "on top" of a JDBC driver.


Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
Raj Chila
Ranch Hand

Joined: Mar 18, 2004
Posts: 128

it also interesting to know that, the rowsets, in its various implementations (Cached, web and JDBC), enable us to keep the data "alive" even after releasing the connection to the Database which is not possible while working with the result sets. thus helping the better resource management.

just imagine, the need to create our own data structures to keep the data "offline" and then having to work on it.

another interesting thing is the Rowset implementation libraries are available as a seperate library that can be also used with JDK 1.4, atleast it worked for me.
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

Rowset are disconnected.

So connection need not to be remain open until data is processed.


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query about rowset
 
Similar Threads
Equivalent of Dataset of .NET in J2EE
DataBase search criteria
rowset
rowset
What Is RowSet Explain With Example.