8.2.30 rollback()
- Organization of this subsection
(1) Function
This method undoes all changes made by the transaction and releases all locks currently held by the Connection object.
If you call this method while the automatic commit mode is enabled, the method performs rollback processing without throwing an exception.
(2) Format
public synchronized void rollback() 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.
(6) Notes
-
If rollback processing is successful, the ResultSet object is invalidated.
-
If rollback processing fails, the HADB server terminates abnormally.