setSavepoint()
Syntax:
Savepoint setSavepoint() throws SQLException
Description:
Creates an unnamed savepoint 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.
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()