• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which class implements Resultset

 
radhika S
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me which class impelments Resultset Interface? I have asked many ppl but couldn't find the answer to it.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"radhika radhika",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the beauty of Interfaces!

We don't immediately know and should not need to know the implementing Class for the interface. The Driver for the Database manages that for us and returns something that behaves like a ResultSet. We treat it like a ResultSet, and regardless of what exists behind the Interface should behave correctly.

You can always find the class using rs.getClass().getName() if you really need to know.
 
radhika S
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you do that ... Looking at the class name, do you think it will be the same for Oracle, UDB, MySQL and every other database?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15627
46
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
radhika S - Your name is still not according to the JavaRanch naming policy.

Your second name should not consist of only initials, such as "S". Please use a real-sounding name as your second name.

Please read the naming policy carefully and change your display name again.

Jesper Young - Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic