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.Stringname
-
Constructor Summary
Constructors Constructor Description MariaDbSavepoint(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSavepointId()Retrieves the generated ID for the savepoint that thisSavepointobject represents.java.lang.StringgetSavepointName()Retrieves the name of the savepoint that thisSavepointobject represents.java.lang.StringtoString()
-
-
-
Method Detail
-
getSavepointId
public int getSavepointId() throws java.sql.SQLExceptionRetrieves the generated ID for the savepoint that thisSavepointobject represents.- Specified by:
getSavepointIdin 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 thisSavepointobject represents.- Specified by:
getSavepointNamein interfacejava.sql.Savepoint- Returns:
- the name of this savepoint
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-