333334335336337338339340341342343
tg.doCatch(); throw new ModelException("DatabaseOperation", "Error loading models from the database: " + e.getMessage(), e); } finally { tg.doFinally(); } } private void readModelsFromDatabase(PersistenceContext pc) {
339340341342343344345346347348349
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } ////////////////////////////////////////////////// // @@ Object modification
372373374375376377378379380381382
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } /** * Deletes an object from persistent storage.
431432433434435436437438439440441
tg.doCatch(); throw new ModelException("DatabaseOperation", "Error loading model from the database: " + e.getMessage(), e); } finally { tg.doFinally(); } } /** * Reloads the model after a model update.
397398399400401402403404405406407
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } ////////////////////////////////////////////////// // @@ SQL support
532533534535536537538539540541542
tg.doCatch(); throw new ModelException("DatabaseOperation", "Error loading models from the database: " + e.getMessage(), e); } finally { tg.doFinally(); } } ////////////////////////////////////////////////// // @@ Helpers
429430431432433434435436437438439
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } /** * Runs the given SQL select statement.
463464465466467468469470471472473
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } ////////////////////////////////////////////////// // @@ Transaction control
200201202203204205206207208209210
String msg = LogUtil.error(getClass(), "Persistence error.", e); throw new PersistentObjectNotFoundException(msg, e); } finally { tg.doFinally(); } } return obj; }
351352353354355356357358359360361
tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally(); } } /** * Creates a conjunction between 'exp1' and 'exp2'.