Most visited

Recently visited

Added in API level 1

Savepoint

public interface Savepoint

java.sql.Savepoint


保存点的表示,它是当前事务中的一个点,可以从Connection.rollback方法引用。 当事务回滚到保存点时,保存点后所做的所有更改都将被撤消。

保存点可以是已命名的或未命名的。 未命名的保存点由基础数据源生成的ID标识。

Summary

Public methods

abstract int getSavepointId()

检索此 Savepoint对象表示的保存点的生成ID。

abstract String getSavepointName()

获取此保存点的名称 Savepoint对象表示。

Public methods

getSavepointId

Added in API level 1
int getSavepointId ()

检索此 Savepoint对象表示的保存点的生成ID。

Returns
int the numeric ID of this savepoint
Throws
SQLException if this is a named savepoint

getSavepointName

Added in API level 1
String getSavepointName ()

检索此 Savepoint对象所表示的保存点的名称。

Returns
String the name of this savepoint
Throws
SQLException if this is an un-named savepoint

Hooray!