Package org.mariadb.jdbc
Class MariaDbSavepoint
- java.lang.Object
-
- org.mariadb.jdbc.MariaDbSavepoint
-
- All Implemented Interfaces:
java.sql.Savepoint
public class MariaDbSavepoint extends java.lang.Object implements java.sql.Savepoint
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description MariaDbSavepoint(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSavepointId()
Retrieves the generated ID for the savepoint that thisSavepoint
object represents.java.lang.String
getSavepointName()
Retrieves the name of the savepoint that thisSavepoint
object represents.java.lang.String
toString()
-
-
-
Method Detail
-
getSavepointId
public int getSavepointId() throws java.sql.SQLException
Retrieves the generated ID for the savepoint that thisSavepoint
object represents.- Specified by:
getSavepointId
in interfacejava.sql.Savepoint
- Returns:
- the numeric ID of this savepoint
- Throws:
java.sql.SQLException
-
getSavepointName
public java.lang.String getSavepointName()
Retrieves the name of the savepoint that thisSavepoint
object represents.- Specified by:
getSavepointName
in interfacejava.sql.Savepoint
- Returns:
- the name of this savepoint
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-