我想比较两个保存点并检查其间是否有对数据库的任何提交。例如,考虑以下代码片段
Savepoint save1 = connection.setSavePoint("before);
// some processing happens here, which can commit some changes to the DB.
process();
Savepoint save2 = connection.setSavePoint("after");
// Now compare the two savepoints to see if there were any commits in process() method
现在我要探索的是:有没有一种方法可以以编程方式检查两个保存点之间是否有任何提交?