Features of JDBC 3.0 API

Reusabilty of prepared statements by connection pools. In this version there is number of properties defined for the ConnectionPoolDataSource.

Ads

Tutorials   
JDBC Video Tutorial: Create, Read, Update and Delete (CRUD) Operation examples JDBC Video tutorial - How to read Data from MySQL Database? JDBC Video tutorial - How to delete Data in a MySQL Database? Solving java.lang.ClassNotFoundException: com.mysql.jdbc.Driver exception JDBC Video tutorial - How to update Data in a MySQL Database? JDBC Video Tutorial- How to insert data into MySQL database table? JDBC Video Tutorial: How to download JDBC Driver for MySQL? JDBC Tutorial - Writing first JDBC example and running in Eclipse Java Cross Join MySQL Database Connectivity Example In Java Change Column Name in MySQL Java Mysql Connection Example JDBC ODBC Connection In Java ResultSet In Java Prepared Statement Example JdbcRowSet interface Java JdbcRowSet Example First Step towards JDBC! JDBC Training, Learn JDBC yourself Jdbc Get Column Names JDBC Example with MySQL JDBC Prepared Statement Update JDBC Prepared Statement Insert JDBC Prepared Statement Example JDBC Prepared statement Close JDBC Prepared Statement Addbatch JDBC Nested Resultset JDBC-Odbc Connection JDBC-Odbc Connectivity JDBC Insert Preparedstatement JDBC Insert Null JDBC Get Metadata JDBC Insert Record Jdbc Insert Statement JDBC Meta Data Get tables Jdbc Mysql Connection String Jdbc Mysql Connection Url JDBC Next Jdbc Get Connection JDBC Get Int JDBC Exception JDBC Get Row Count JDBC Functions JDBC Fetch JDBC Execute Update Example JDBC Execute Statement JDBC Execute Query JDBC Drive For Mysql JDBC Connectivity Code In Java JDBC connection timeout
Ads

Features of JDBC 3.0 API

     

  1.  Reusabilty of prepared statements by connection pools.
  2. In this version there is number of properties defined for the ConnectionPoolDataSource. These properties can be used to describe how the PooledConnection objects created by DataSource objects should be pooled.
  3. A new concept has been added to this API is of savepoints: One of the useful new features is transactional savepoints. With JDBC 3.0, the transactional model is now more flexible. Now you can start a transaction , insert several rows in it and then create a savepoint. This savepoint serves as a bookmark. The application can rollback to the savepoint and then commit the group of inserts as if the updates have never been attempted.  For eg:

    Statement st=connection.createStatement();
    int rowcount=st.executeUpdate("insert into employee  values("tim"));
    int rowcoutn=st.executeUpdate("insert into salary values(20000.0);
    Savepoint sv=connection.setSavePoint("savepoint");  //create save point for inserts
    int rowcount=st.executeUpdate("delete from employee");
    connection.rollback(sv);    //discard the delete statement but keeps the inserts
    connection.commit();    //inserts are now permanent
  4. Retrieval of parameter metadata.
  5. It has added a means of retrieving values from columns containing automatically generated values.
  6. Added a new data type i.e. java.sql.BOOLEAN.
  7. Passing parameters to CallableStatement.
  8. The data in the Blob and Clob can be altered: JDBC 3.0 introduces a standard mechanism for  updating BLOB and CLOB data.
  9. DatabaseMetaData API has been added.
  10. It allows stored procedure parameters to be called by name.

Advertisements

Share on Google+Share on Google+

Features of JDBC 3.0 API

Posted on: April 13, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Features of JDBC 3.0 API   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
Abbas
July 30, 2012
Good article

Good article...

Ads

 

Ads