- JDBC 4.0 and Oracle JDeveloper for J2EE Development
- Deepak Vohra
- 138字
- 2021-08-25 18:08:44
Connection Interface
The Connection
interface represents a connection with the database. SQL statements may be run in a connection session by using a Statement
object. A Connection
object is in auto-commit
mode, by default. In the auto-commit
mode, changes are committed to the database after an SQL statement is executed. The auto-commit
mode can be modified by calling the setAutoCommit(boolean autoCommit)
method. For example, auto-commit
may be set to false
:
If auto-commit
is set to false
, it would be required to commit changes by calling the commit()
method:
connection.commit();
A Connection
object can be set to read-only by calling the setReadOnly()
method:
connection.setReadOnly(true);
If a Connection
object is not required, close the connection by calling the close()
method:
connection.close();
The following table discusses the methods in JDBC 4.0 that have been added to the Connection
interface.

- Painter 現代服裝效果圖表現技法
- iOS應用逆向與安全之道
- AutoCAD Civil 3D 2018 場地設計實例教程
- 好的PPT會說話:如何打造完美幻燈片
- 中文版CorelDRAW X8基礎培訓教程(全彩版)
- UG NX 完全實例解析
- Unity 3D\2D手機游戲開發:從學習到產品(第4版)
- VRP11/3ds Max虛擬現實制作標準實訓教程
- 從零開始:AutoCAD 2010中文版建筑制圖基礎培訓教程(第2版)
- UG NX 12.0完全自學寶典
- 構筑敏捷的開發團隊:微軟Visual Studio 2010實戰兵法
- 零基礎學Photoshop CS6(全視頻教學版)
- JBoss AS 5 Performance Tuning
- 攝影師的后期課:Lightroom后期技法篇
- Excel 2016 VBA入門與應用