449450451452453454455456457458459
{ processor.perform(); } catch (PersistenceException e) { tg.doCatch(); throw e; } finally { tg.doFinally();
141142143144145146147148149150151
pc.saveObject(dbModel); } catch (PersistenceException e) { tg.doCatch(); throw new ModelException("DatabaseOperation", "Error saving descriptor of model '" + model.getQualifier() + "' to the database: " + e.getMessage(), e); } finally {
174175176177178179180181182183184
207208209210211212213214215216217
pc.saveObject(dbModelItem); } catch (PersistenceException e) { tg.doCatch(); throw new ModelException("DatabaseOperation", "Error saving descriptor of component '" + item.getQualifier() + "' to the database: " + e.getMessage(), e); } finally {
150151152153154155156157158159160
obj = getHibernateSession().merge(obj); return obj; } catch (HibernateException e) { tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally();
240241242243244245246247248249250
183184185186187188189190191192193
} getHibernateSession().refresh(obj); } catch (UnresolvableObjectException e) { tg.doCatch(); String msg = LogUtil.error(getClass(), "Persistence error.", e); throw new PersistentObjectNotFoundException(msg, e); } catch (HibernateException e) {
189190191192193194195196197198199
String msg = LogUtil.error(getClass(), "Persistence error.", e); throw new PersistentObjectNotFoundException(msg, e); } catch (HibernateException e) { tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally();
270271272273274275276277278279280
sql = "DELETE FROM OPENBPMODEL WHERE MO_NAME = '" + model.getName() + "'"; pc.executeUpdateOrDelete(sql); } catch (PersistenceException e) { tg.doCatch(); throw new ModelException("DatabaseOperation", "Error removing model '" + model.getQualifier() + "' from the database: " + e.getMessage(), e); } finally {
242243244245246247248249250251252
Object ret = getHibernateSession().get(beanClass, (Serializable) id); return ret; } catch (HibernateException e) { tg.doCatch(); throw createLoggedException(e); } finally { tg.doFinally();