Year | JDBC Version | JDK Implementation |
---|---|---|
2006 | JDBC 4.0 | Java SE 6/JDK 1.6 |
2001 | JDBC 3.0 | JDK 1.4 |
1999 | JDBC 2.1 | JDK 1.2 |
1997 | JDBC 1.2 | JDK 1.1 |
Interface/Class | Description |
---|---|
java.sql.Connection (Interface) | Used to create connection with specific database. |
java.sql.DriverManager (Class) | Its basic service is to manage the set of JDBC drivers. |
java.sql.Statement (Interface) | It is used to execute a static SQL statement and retrieve the result. |
java.sql.PreparedStatement (Interface) | It represents a pre-compiled SQL statement. |
java.sql.CallableStatement (Interface) | It is used to execute stored procedures. |
java.sql.ResultSet (Interface) | It is represented a table of data generated by executing a query. |
java.sql.ResultSetMetaData (Interface) | It is used to get information about ResultSet. |
Java.sql.DataBaseMetaData (Interface) | It is used to collect information about the database. |
Method | Description |
---|---|
Public void deregister Driver (Driver obj) throws SQL Exception | Drops a Driver from the DriverManager’s list. |
Public static synchronized void registerDriver (Driver Obj) throws SQLException | Register the given driver with the DriverManager. |
Connection getConnection (String url, String uid, String pwd) throws SQLException | Attempts to establish a connection to the given database URL. |
Void registerDriver (Driver obj) throws SQL Exception | Register the given driver with the DriverManager. |