官术网_书友最值得收藏!

Summary

In this chapter, you have been introduced to the JDBC API and the new features in JDBC 4.0 specification. The DriverManager class is used to connect with a database. The Connection interface represents a database connection. The Savepoint interface represents a savepoint in a transaction. This is the point up to which the changes would be rolled back, if the transaction is rolled back. The Statement interface is used to run static SQL statements. The ResultSet interface represents the result set table generated by running SQL statements on a database. The PreparedStatement represents a compiled SQL statement that can be run more than once with different parameters. The DatabaseMetadata interface represents the database metadata, such as, table name, schema name, column name, and column type. The SQLException class represents the database access error or other SQL errors. JDBC 4.0 specification provides some new features to facilitate the development of JDBC applications. Support for new SQL data types has been added. The new features include, automatic SQL Driver loading, SQL: 2003 XML Data Type support, support for wrapper pattern, enhancements in SQLException, and enhanced connection management.

主站蜘蛛池模板: 龙川县| 黑龙江省| 鄱阳县| 布拖县| 陵川县| 巴青县| 礼泉县| 光山县| 拜城县| 镇沅| 会昌县| 班玛县| 寿阳县| 塘沽区| 旌德县| 临沭县| 江安县| 苍南县| 龙口市| 南安市| 阿勒泰市| 娱乐| 西乌珠穆沁旗| 松江区| 巴林右旗| 盐边县| 新安县| 高淳县| 苍山县| 昌江| 留坝县| 特克斯县| 波密县| 临颍县| 深州市| 镇远县| 望江县| 阿克苏市| 三穗县| 平舆县| 满城县|