my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes Implementing ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Implementing ResultSet" Watch "Implementing ResultSet" New topic

Implementing ResultSet

Prabhat Jha
Ranch Hand

Joined: Aug 13, 2007
Posts: 58

Can there be any need for implementing ResultSet if i am not a Database Driver Provider?



SCJP 1.5, SCWCD 1.5, SCBCD 1.5
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

A slight nuance to Pauls answer:

Sun has a Reference Implementation that provides a javax.sql.rowset CachedRowSet.
In essence, this RI is not a database driver, and contains a class that implements ResultSet.

(hope this explanation is not confusing. I do not understand it myself when re-reading it )

OCUP UML fundamental and ITIL foundation
Prabhat Jha
Ranch Hand

Joined: Aug 13, 2007
Posts: 58
Thanks for the response.

The bottom line it doesn't makes sense implement it.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Paul Sturrock wrote:No.

Applying the HMS Pinafore rule:

Chorus: What, never?

Captain: No, never!

Chorus: What, never?

Captain: ... Hardly ever!
I agree. Here's the link:
subject: Implementing ResultSet
It's not a secret anymore!