Examples of doFinally()


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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  /**
   * Returns a list of the objects of a particular type that match the given criterion.
View Full Code Here

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

      tg.doCatch();
      throw new ModelException("DatabaseOperation", "Error loading models from the database: " + e.getMessage(), e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  private void readModelsFromDatabase(PersistenceContext pc)
  {
View Full Code Here

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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  //////////////////////////////////////////////////
  // @@ Object modification
View Full Code Here

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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  /**
   * Deletes an object from persistent storage.
View Full Code Here

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

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

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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  //////////////////////////////////////////////////
  // @@ SQL support
View Full Code Here

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

      tg.doCatch();
      throw new ModelException("DatabaseOperation", "Error loading models from the database: " + e.getMessage(), e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  //////////////////////////////////////////////////
  // @@ Helpers
View Full Code Here

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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  /**
   * Runs the given SQL select statement.
View Full Code Here

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

      tg.doCatch();
      throw createLoggedException(e);
    }
    finally
    {
      tg.doFinally();
    }
  }

  //////////////////////////////////////////////////
  // @@ Transaction control
View Full Code Here

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

        String msg = LogUtil.error(getClass(), "Persistence error.", e);
        throw new PersistentObjectNotFoundException(msg, e);
      }
      finally
      {
        tg.doFinally();
      }
    }
    return obj;
  }
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.