public interface Savepoint
Savepoints are used to mark intermediate points within a transaction. After a savepoint has been set, the transaction can be rolled back to that savepoint without affecting preceding work.
getSavepointId
public int getSavepointId() throws SQLException
This gets the ID of the savepoint. A SQLException is thrown if the savepoint is named instead of being numbered.
Returns: The numeric ID of the savepoint
getSavepointName
public String getSavepointName() throws SQLException
This gets the name of the savepoint. A SQLException is thrown if the savepoint isn’t named but uses number IDs instead.
Returns: The name of the savepoint