This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Statement,PrepareStatement 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 "Statement,PrepareStatement" Watch "Statement,PrepareStatement" New topic


Sudhakar Gaharwar

Joined: Oct 10, 2005
Posts: 15
Statement and prepareStatement are interface so what's the name of their implementation class. I mean what is the name of the class which exactly defining the methods of statement and preparestatemnt..

Beginning is the half of every action..............
stu derby
Ranch Hand

Joined: Dec 15, 2005
Posts: 333
The Statement and PreparedStatement interfaces define the methods those classes support. You can work very succesfully with JDBC just using the interface methods.

Vendor implementations of JDBC drivers sometimes have additional methods, but many programmers avoid using vendor methods because they're not part of the JDBC standard and therefore not available when using other drivers and databases.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Implementation class names depends on vendor, normally we do not use those class names as they are not part Java api.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Statement,PrepareStatement
Similar Threads
Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?
method with SQL parameter
Would this cause problems closing statements ?
Pre compilation of Prepared Statement