Savepoint setSavepoint() throws SQLException
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.
SQLException - if a database access error occurs or auto commit mode is enabled
For more information, reference JDBC documentation for: Connection.setSavepoint()