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

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.

主站蜘蛛池模板: 涡阳县| 广元市| 安多县| 资中县| 东山县| 西峡县| 霍城县| 阿拉尔市| 伊吾县| 普定县| 华安县| 邢台县| 绥德县| 商都县| 灵川县| 秀山| 望都县| 木兰县| 张掖市| 木兰县| 长沙县| 闻喜县| 丹凤县| 茂名市| 阳城县| 荥阳市| 厦门市| 中超| 策勒县| 涟源市| 陕西省| 高密市| 海阳市| 崇左市| 清流县| 织金县| 东台市| 连平县| 卢氏县| 乌鲁木齐县| 株洲市|