File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Regarding Connection interface 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 "Regarding Connection interface" Watch "Regarding Connection interface" New topic

Regarding Connection interface

Kiran Baratam

Joined: Sep 03, 2003
Posts: 27
Hi All
I have a doubt regarding connection interface.I am using connection interface to create statement.Connection is an interface and i am calling a method on interface and my work is getting done.I know it must have implemented by some lower lever classes and conncetion interface is abstracting all of them.I wanted to know how is it working and what is happening when i say
Statement stmt = connection.createStatement();
i am not able to understand this.
Please help me.
Rajasekar Kayamboo

Joined: Sep 04, 2003
Posts: 9
The connection interface will be iomplemented by the driver. The implementors of the JDBC drivers write the methods that give you back the java.sql.COnnection object.

I agree. Here's the link:
subject: Regarding Connection interface
It's not a secret anymore!