This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes RowSet Vs ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "RowSet Vs ResultSet" Watch "RowSet Vs ResultSet" New topic

RowSet Vs ResultSet

Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Hi Bjarki,
What is the difference b/w RowSet and ResultSet.

SCJP 1.5, SCEA, ICED (287,484,486)
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
A table of data representing a database result set, which is usually generated by executing a statement that queries the database. A ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The next method moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set.
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 JavaBeansTM 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

Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Bjarki Holm
Ranch Hand

Joined: May 25, 2001
Posts: 65
that seems to have been taken care of...

Bjarki Holm
Author of Professional Java Data

Bjarki Holm
I agree. Here's the link:
subject: RowSet Vs ResultSet
It's not a secret anymore!