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

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.

主站蜘蛛池模板: 东乡族自治县| 元朗区| 礼泉县| 故城县| 高台县| 报价| 丹巴县| 通山县| 陇西县| 武义县| 麻阳| 大连市| 普宁市| 松溪县| 雷山县| 滁州市| 旺苍县| 河北区| 七台河市| 增城市| 谷城县| 惠来县| 罗平县| 云林县| 客服| 来安县| 永善县| 罗江县| 南江县| 苗栗市| 波密县| 洛扎县| 辰溪县| 钟祥市| 神池县| 长岭县| 大宁县| 贡嘎县| 南通市| 天气| 宜丰县|