releaseSavepoint(Savepoint savepoint)

Syntax:

void releaseSavepoint(Savepoint savepoint)
                      throws SQLException

Description:

Removes the specified Savepoint and any Savepoints that were created after it from the current transaction. Any reference to any of the removed savepoints will cause an SQLException to be thrown. When a transaction is completely committed or rolled back all associated savepoints will get removed automatically, so this function is only needed inside a transaction when a savepoint is no longer needed.

Parameters:

savepoint

Type: Savepoint 

the Savepoint object to be removed

Throws:

SQLException - if a database access error occurs or the specified savepoint is not associated with the current transaction or auto commit mode is enabled

Reference:

For more information, reference JDBC documentation for: Connection.releaseSavepoint(Savepoint)