wood burning stoves 2.0*
The moose likes JDBC and the fly likes Which set of SQL Classes do I use, JDBC, java.sql.* or javax.persistance? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Which set of SQL Classes do I use, JDBC, java.sql.* or javax.persistance?" Watch "Which set of SQL Classes do I use, JDBC, java.sql.* or javax.persistance?" New topic
Author

Which set of SQL Classes do I use, JDBC, java.sql.* or javax.persistance?

Daniel Pride
Greenhorn

Joined: May 09, 2008
Posts: 11
I am doing some java interactivity with a mysql database, mainly using Netbeans and beans binding. Most of the code is done for you but I'm going to be making applications which interact with a database independent of the binding process. I was wondering which set of Query, ResultSet, Statments etc I use, the ones provided by java.sql library or the ones that come with the JDBC (Connector/J in my case).
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You use the classes in the java.sql package, AND you use the classes in the Connector/J driver. But you use them in different ways. Rather than me trying to explain that, let me direct you to a document that already explains it in great detail:

JDBC Tutorial
 
jQuery in Action, 2nd edition
 
subject: Which set of SQL Classes do I use, JDBC, java.sql.* or javax.persistance?
 
Similar Threads
having problem with jdbc connection for Personal Oracle8i on win98
A question about JDBC database access
Interfaces in Java
Cofiguring JDBC
MS-acces-database and Java