- 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.

- PS是這樣玩的:輕松掌握 Photoshop 通關秘籍
- 3ds Max 2014標準教程(全視頻微課版)
- 突破平面Premiere Pro 2022短視頻與視頻制作
- CorelDRAW X5實用教程(第2版)
- Tomcat 6 Developer's Guide
- Photoshop CS6實戰基礎培訓教程(全視頻微課版)
- Drupal 6 Panels Cookbook
- 有趣的Flutter:從0到1構建跨平臺App
- Photoshop+CorelDRAW平面設計案例實戰:從入門到精通(視頻自學全彩版)
- 中文版Photoshop CS6完全自學手冊(超值版)
- Photoshop后期強:多重曝光專業技法寶典
- AutoCAD 2019中文版實戰從入門到精通
- AI設計時代:Midjourney實戰應用手冊
- Building Websites with Mambo
- UG NX 11中文版基礎教程