public interface Savepoint
Connection.rollback
方法参考。当一个事务回滚到保存点保存点之后所做的所有更改都毁了。
保存点可以是命名的或未命名。未命名的保存点由底层数据源生成的ID标识。
Modifier and Type | Method and Description |
---|---|
int |
getSavepointId()
检索生成的ID保存点,这
Savepoint 对象代表。
|
String |
getSavepointName()
检索保存点,这
Savepoint 对象代表的名字。
|
int getSavepointId() throws SQLException
Savepoint
对象代表。
SQLException
-如果这是一个命名的保存点
String getSavepointName() throws SQLException
Savepoint
对象代表的名字。
SQLException
-如果这是一个未命名的保存点
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.