Package org.openbp.server.persistence

Examples of org.openbp.server.persistence.TransactionGuard.doCatch()


      {
        processor.perform();
      }
      catch (PersistenceException e)
      {
        tg.doCatch();
        throw e;
      }
      finally
      {
        tg.doFinally();
View Full Code Here


      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
    {
View Full Code Here

      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
    {
View Full Code Here

      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
    {
View Full Code Here

      obj = getHibernateSession().merge(obj);
      return obj;
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

      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
    {
View Full Code Here

        }
        getHibernateSession().refresh(obj);
      }
      catch (UnresolvableObjectException e)
      {
        tg.doCatch();
        String msg = LogUtil.error(getClass(), "Persistence error.", e);
        throw new PersistentObjectNotFoundException(msg, e);
      }
      catch (HibernateException e)
      {
View Full Code Here

        String msg = LogUtil.error(getClass(), "Persistence error.", e);
        throw new PersistentObjectNotFoundException(msg, e);
      }
      catch (HibernateException e)
      {
        tg.doCatch();
        throw createLoggedException(e);
      }
      finally
      {
        tg.doFinally();
View Full Code Here

      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
    {
View Full Code Here

      Object ret = getHibernateSession().get(beanClass, (Serializable) id);
      return ret;
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.