官术网_书友最值得收藏!

Savepoint Interface

Savepoint is a new interface in JDBC 3.0 specification. A Savepoint is a point within a transaction up to which the changes made in the transaction are rolled back, if the transaction is rolled back with the rollback() method. All changes before the savepoint are implemented when a transaction is rolled back. A savepoint is set with the overloaded setSavepoint() method:

Savepoint savepoint=connection.setSavepoint();
Savepoint savepoint=connection.setSavepoint("savepointName");

The getSavepointId() method returns the savepoint id, and the getSavepointName() method returns the savepoint name.

主站蜘蛛池模板: 太保市| 伊宁市| 红安县| 固阳县| 永春县| 乳山市| 南宁市| 洛扎县| 松溪县| 临颍县| 旺苍县| 嘉义县| 陇川县| 岑巩县| 兴业县| 吉木萨尔县| 汕尾市| 信宜市| 临朐县| 张北县| 海口市| 石林| 会理县| 福州市| 嘉峪关市| 伊川县| 吉木萨尔县| 五指山市| 建瓯市| 丰县| 仪陇县| 临汾市| 巴中市| 曲麻莱县| 淅川县| 双桥区| 微博| 张家港市| 天柱县| 改则县| 三河市|