setSavepoint(String name)
Syntax:
Savepoint setSavepoint(String name) throws SQLException
Description:
Creates a savepoint with the given name in the current transaction and returns the new Savepoint
object that represents it. If setSavepoint
is invoked outside of an active transaction, a transaction will be started at this newly created savepoint.
Parameters:
name
a String
containing the name of the savepoint
Returns:
the new Savepoint
object
Throws:
SQLException - if a database access error occurs or auto commit mode is enabled
Reference:
For more information, reference JDBC documentation for: Connection.setSavepoint(String)