Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jdbc Drivers and statments???  RSS feed

 
Amitkumar Dhama
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ranchers,

I need the material in which jdbc drivers (all the 4 types) and the statments are specified clearly.
could you tell me the link on which i can get the soft copy of that....

i need it very urgently..

Please help me out in this..

Thanking in advance...
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is it that you need? Please be more specific.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37381
531
Eclipse IDE Java VI Editor
 
Amitkumar Dhama
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi david,

i need only that much, all the four driver with explanation and the statments with clear explanation, i would be happy if you could tell me the link where i can get the explanation of these.

The explanation given in the previous link are not enough for me.

Please help me out
Thanking in advance
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16043
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The four driver types are already explained in the page that Jeanne gave you a link to.

Now, can you please explain what you mean with "...and the statments"?
 
Amitkumar Dhama
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wanna know,

Object returned by the invocation of

connect.createStatment();

Like
1. Prepared stmt
2. collable stmt

i think that now it is clear to you...
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The type of statement returned is not a primarily a function of the driver, but rather a function of the method called on the Connection object.

"createStatement" will create a Statement object.
"prepareStatement" will create a PreparedStatement object.
etc.

Secondarily, the drivers determine the type, but only that if you use the Oracle Driver, you might get an "OraclePreparedStatement" where with the MySQL driver you get a "MySQLPreparedStatement." But those details should be unimportant -- you only need be concerned with the fact that you have a PreparedStatement and let the underlying implementation manage itself.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!