2 つのセーブポイントを比較し、その間にデータベースへのコミットがあったかどうかを確認したいと考えています。たとえば、次のコード スニペットを検討してください。
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
今私が探求しようとしているのは、2 つのセーブポイント間にコミットがあったかどうかをプログラムで確認できる方法はありますか?