aspose file tools*
The moose likes JDBC 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
Bookmark "Regarding Connection interface" Watch "Regarding Connection interface" New topic
Author

Regarding Connection interface

Kiran Baratam
Greenhorn

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.
Kiran
Rajasekar Kayamboo
Greenhorn

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.


Sekar
 
jQuery in Action, 2nd edition
 
subject: Regarding Connection interface