wood burning stoves 2.0*
The moose likes JDBC and the fly likes How does the Resultset Interface work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How does the Resultset Interface work" Watch "How does the Resultset Interface work" New topic
Author

How does the Resultset Interface work

Rajesh Savitri
Greenhorn

Joined: Sep 13, 2002
Posts: 21
The ResultSet present in the Java SDK is a interface. It has the methods that are not implemented. But we are able to invoke menthods that help us in retriving the values from the Data retrieved from the Database. Where does this implementations come from?
Hartmut Ludwig
Ranch Hand

Joined: Aug 31, 2002
Posts: 51
Originally posted by rajeshas:
Where does this implementations come from?

They come from the JDBC-Driver you use. It contains the concrete implementation for this interface. Like for example the MM.MySQL-JDBC Driver contains the following Class:
public class ResultSet extends org.gjt.mm.mysql.ResultSet implements java.sql.ResultSet
cheers
Hartmut
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Moving this to JDBC.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Rajesh Savitri
Greenhorn

Joined: Sep 13, 2002
Posts: 21
Hi Hartmut Ludwig,
Thanks for the answer.
For the Admin's note: This question could be closed.
Thanks
Rajesh
[ September 15, 2002: Message edited by: rajeshas ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Originally posted by rajeshas:
For the Admin's note: This question could be closed.

Nah, that's far too sensible.
but...
"rajeshas",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
Don't get me started about those stupid light bulbs.
 
subject: How does the Resultset Interface work