Package org.openbp.server.persistence

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


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

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

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

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

      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

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

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

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

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

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

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

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

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

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

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

  /**
   * Creates a conjunction between 'exp1' and 'exp2'.
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.