This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "query about rowset" Watch "query about rowset" New topic

query about rowset

ravi v kumar
Ranch Hand

Joined: Dec 14, 2004
Posts: 56

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

Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 160
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: 1082

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:
subject: query about rowset
It's not a secret anymore!