rollback(Savepoint savepoint)
Syntax:
void rollback(Savepoint savepoint) throws SQLException
Description:
Undoes all changes made after the given Savepoint
object was set. This method should be used only when auto-commit mode has been disabled.
Parameters:
savepoint
Type: Savepoint
the Savepoint
object to roll back to
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.rollback(Savepoint)