This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Statement,PrepareStatement

 
Sudhakar Gaharwar
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 333
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1704
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implementation class names depends on vendor, normally we do not use those class names as they are not part Java api.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic