157158159160161162163164165166
); assertEquals(artist, retrievedArtist); } finally { // End the transaction, roll-back to restore original database state td.end(true); } } }
101102103104105106107108109110111
" We did not get back the item just created from the repository.", item2 ); rollback = false; } finally { // End the transaction, rollback on error td.end(rollback); // shut down Nucleus n.stopService(); // Shut down HSQLDB db.shutdown(); }
265266267268269270271272273274275
} finally { close(s); close(c); } } finally { td.end(); } } /** * executes the specified query and returns a List of values for the specified column name.
308309310311312313314315316317318
close(rs); close(s); close(c); } } finally { td.end(); } return results; } /**
303304305306307308309310311312313
} else if ( isLoggingError() ) { logError(e1); } } finally { try { td.end(); } catch ( TransactionDemarcationException e2 ) { if ( error == null ) { error = new SQLProcessorException(e2); } else if ( isLoggingError() ) { logError(e2);
12191220122112221223122412251226122712281229
success = true; } catch (TransactionDemarcationException e) { logError(e); } finally { try { td.end(!success); } catch (TransactionDemarcationException e) { logError(e); } } }