Package java.sql
Interface Savepoint
-
public interface SavepointA savepoint is an instant during the current transaction that can be utilized by a rollback via theConnection.rollback()command. Rolling back to a particular savepoint means that all changes that occurred after that savepoint are undone.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSavepointId()Returns the constructed ID for this savepoint.StringgetSavepointName()Returns the name for this savepoint.
-
-
-
Method Detail
-
getSavepointId
int getSavepointId() throws SQLExceptionReturns the constructed ID for this savepoint.- Returns:
- the ID for this savepoint.
- Throws:
SQLException- if an error occurrs accessing the database.
-
getSavepointName
String getSavepointName() throws SQLException
Returns the name for this savepoint.- Returns:
- the name of this savepoint.
- Throws:
SQLException- if an error occurrs accessing the database.
-
-