8.2.4 commit()
- Organization of this subsection
(1) Function
This method applies all changes made since the most recent commit or rollback.
If this method is called while the automatic commit mode is enabled, the method performs commit processing without throwing an exception.
(2) Format
public synchronized void commit() throws SQLException
(3) Arguments
None.
(4) Return value
None.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The Connection object is closed.
-
A database access error occurs.
-
A row retrieval error was detected in an extension of the commit processing.
(6) Notes
-
If an exception occurs due to detection of a row retrieval error, the transaction is rolled back without being committed.
-
If commit processing fails, the HADB server terminates abnormally.