void restore ( CallInfo callInfo ) { // Note: this is a conservative implementation, it sets another save-point // after roll-back, some engines seem to implicitly release the save point on roll-back // (an issue with HSQLDB) access ( callInfo , ( ) -> { logSetup ( callInfo ) ; try { if ( ! savepointSupport ) { throw new UnsupportedOperationException ( "Savepoints are not supported by the database driver." ) ; } if ( savepoint == null ) { throw new InvalidOperationException ( "Save point is not set." ) ; } Savepoint s = savepoint ; savepoint = null ; connection . rollback ( s ) ; return 0 ; } finally { clearSavePointIfSet ( ) ; } } ) ; }
Roll back changes to JDBDT save - point .