Top Description Fields Constructors Methods
com.mysql.cj.jdbc

public Class MysqlSavepoint

extends Object
implements Savepoint
Class Inheritance
All Implemented Interfaces
java.sql.Savepoint
Imports
java.sql.SQLException, .Savepoint, com.mysql.cj.Messages, com.mysql.cj.exceptions.ExceptionInterceptor, .MysqlErrorNumbers, com.mysql.cj.jdbc.exceptions.SQLError, com.mysql.cj.util.StringUtils

Represents SQL SAVEPOINTS in MySQL.

Field Summary

Modifier and TypeField and Description
private ExceptionInterceptor
private String

Constructor Summary

AccessConstructor and Description
pack-priv
MysqlSavepoint(ExceptionInterceptor
exception interceptor
exceptionInterceptor
)

Creates an unnamed savepoint.

pack-priv
MysqlSavepoint(String
the name of the savepoint.
name
,
ExceptionInterceptor
exception interceptor
exceptionInterceptor
)

Creates a named savepoint

Method Summary

Modifier and TypeMethod and Description
public int
getSavepointId()

Implements java.sql.Savepoint.getSavepointId.

Retrieves the generated ID for the savepoint that this Savepoint object represents.

public String
getSavepointName()

Implements java.sql.Savepoint.getSavepointName.

Retrieves the name of the savepoint that this Savepoint object represents.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exceptionInterceptorback to summary
private ExceptionInterceptor exceptionInterceptor
savepointNameback to summary
private String savepointName

Constructor Detail

MysqlSavepointback to summary
pack-priv MysqlSavepoint(ExceptionInterceptor exceptionInterceptor) throws SQLException

Creates an unnamed savepoint.

Parameters
exceptionInterceptor:ExceptionInterceptor

exception interceptor

Exceptions
SQLException:
if an error occurs
MysqlSavepointback to summary
pack-priv MysqlSavepoint(String name, ExceptionInterceptor exceptionInterceptor) throws SQLException

Creates a named savepoint

Parameters
name:String

the name of the savepoint.

exceptionInterceptor:ExceptionInterceptor

exception interceptor

Exceptions
SQLException:
if name == null or is empty.

Method Detail

getSavepointIdback to summary
public int getSavepointId() throws SQLException

Implements java.sql.Savepoint.getSavepointId.

Doc from java.sql.Savepoint.getSavepointId.

Retrieves the generated ID for the savepoint that this Savepoint object represents.

Returns:int

the numeric ID of this savepoint

Annotations
@Override
Exceptions
SQLException:
if this is a named savepoint
getSavepointNameback to summary
public String getSavepointName() throws SQLException

Implements java.sql.Savepoint.getSavepointName.

Doc from java.sql.Savepoint.getSavepointName.

Retrieves the name of the savepoint that this Savepoint object represents.

Returns:String

the name of this savepoint

Annotations
@Override
Exceptions
SQLException:
if this is an un-named savepoint