Examples of doCatch()


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

      Collection result = hc.list();
      return result.iterator();
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

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

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

      return model;
    }
    catch (PersistenceException e)
    {
      tg.doCatch();
      throw new ModelException("DatabaseOperation", "Error loading model from the database: " + e.getMessage(), e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

    {
      getHibernateSession().delete(o);
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

      return item;
    }
    catch (PersistenceException e)
    {
      tg.doCatch();
      throw new ModelException("DatabaseOperation", "Error loading models from the database: " + e.getMessage(), e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

      int count = query.executeUpdate();
      return count;
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

      Collection root = query.list();
      return root.iterator();
    }
    catch (HibernateException e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

        }
        getDataContext().invalidateObjects(Collections.singletonList(obj));
      }
      catch (CayenneRuntimeException e)
      {
        tg.doCatch();

        // We assume that the object doesn't exist any more.
        String msg = LogUtil.error(getClass(), "Persistence error.", e);
        throw new PersistentObjectNotFoundException(msg, e);
      }
View Full Code Here

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

      List result = getDataContext().performQuery(cq);
      return new CayenneIterator(result.iterator());
    }
    catch (Exception e)
    {
      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
View Full Code Here

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

    {
      getDataContext().deleteObject(o);
    }
    catch (Exception 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.