This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes jdbc api have interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc api have interfaces
 
Similar Threads
interfaces
JDBC
Some issues related with interfaces
JDBC implementions
Where is Connection interface implemented