wood burning stoves 2.0*
The moose likes JDBC and the fly likes java.sql.Connection ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.sql.Connection ???" Watch "java.sql.Connection ???" New topic
Author

java.sql.Connection ???

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi,

Can any one please tell me why java.sql.Connection is a interface ?

And which class implement this Connection interface ?

Thanks & Regards
Bikash
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Its vendor specific. So the interface is implemented by a class in your JDBC driver.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

And therein lies the complete and blinding beauty of interfaces. Despite the fact that each vendor has a unique class that implements the connection, your program doesn't need to care. Isn't that a wonderful thing?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all,

Lot of thanks for all of your's reply.

Thanks & Regards
Bikash
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.Connection ???
 
Similar Threads
[resolved] Newbie JDBC Connection Issue
Regarding Connection interface
is it an interface or a class
What are NEW FEATURE in Java Tiger ??
why connection is a interface