Saturday 20 July 2013

Drawbacks of JDBC

    Drawbacks of JDBC

  • Developer has to take care of exception by using try & catch. Closing of connection is also done explicitly
  • In JDBC, SQL statements are embeded inside the java code. If the table structure is modified then the jdbc program will throws some exception, so again programer has to modify the sql command and compile the program and re-deploy.
  • JDBC is generated database related error codes if any exception occurs but java programmer are unknown about error codes.
  • Generally in any JEE applications, the data flow will flow among objects . JDBC can not map object into row of table directly. So first object will be converted into text. Then store the data into database.

No comments:

Post a Comment