public class MysqlSavepoint
extends java.lang.Object
implements java.sql.Savepoint
| Modifier and Type | Field and Description |
|---|---|
private ExceptionInterceptor |
exceptionInterceptor |
private java.lang.String |
savepointName |
| Constructor and Description |
|---|
MysqlSavepoint(ExceptionInterceptor exceptionInterceptor)
Creates an unnamed savepoint.
|
MysqlSavepoint(java.lang.String name,
ExceptionInterceptor exceptionInterceptor)
Creates a named savepoint
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSavepointId() |
java.lang.String |
getSavepointName() |
private java.lang.String savepointName
private ExceptionInterceptor exceptionInterceptor
MysqlSavepoint(ExceptionInterceptor exceptionInterceptor) throws java.sql.SQLException
exceptionInterceptor - exception interceptorjava.sql.SQLException - if an error occursMysqlSavepoint(java.lang.String name,
ExceptionInterceptor exceptionInterceptor)
throws java.sql.SQLException
name - the name of the savepoint.exceptionInterceptor - exception interceptorjava.sql.SQLException - if name == null or is empty.public int getSavepointId()
throws java.sql.SQLException
getSavepointId in interface java.sql.Savepointjava.sql.SQLExceptionpublic java.lang.String getSavepointName()
throws java.sql.SQLException
getSavepointName in interface java.sql.Savepointjava.sql.SQLException