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

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.

主站蜘蛛池模板: 淮安市| 上林县| 分宜县| 渝中区| 棋牌| 云安县| 久治县| 新巴尔虎右旗| 通城县| 察哈| 吉林省| 镶黄旗| 庆安县| 萝北县| 无为县| 兴安盟| 通化市| 绥滨县| 锡林郭勒盟| 汕头市| 崇义县| 绍兴市| 锦州市| 象州县| 新干县| 甘南县| 堆龙德庆县| 大厂| 平昌县| 湘阴县| 武川县| 丹巴县| 龙井市| 瑞丽市| 明溪县| 霍城县| 荣昌县| 汾阳市| 竹北市| 镇赉县| 京山县|