wood burning stoves*
The moose likes JDBC and the fly likes jdbc api have interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc api have interfaces" Watch "jdbc api have interfaces" New topic
Author

jdbc api have interfaces

varma kothapalli
Greenhorn

Joined: Jan 12, 2005
Posts: 2
In jdbc api, most of the things defined are interfaces and not classes. Why most of them are interfaces?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Varma,
Welcome to JavaRanch!

JDBC uses interfaces because it only provides a contract for the classes. The actually implementation is provided by the JDBC driver. For example, if you use Oracle, you have a driver in the classes12.zip file. This file contains all of Oracle's custom classes that implement the JDBC interfaces.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
varma kothapalli
Greenhorn

Joined: Jan 12, 2005
Posts: 2
Thank you
 
jQuery in Action, 2nd edition
 
subject: jdbc api have interfaces