Examples of executeUpdateOrDelete()


Examples of org.openbp.server.persistence.PersistenceContext.executeUpdateOrDelete()

    PersistenceContext pc = getPersistenceContextProvider().obtainPersistenceContext();
    TransactionGuard tg = new TransactionGuard(pc);
    try
    {
      String sql = "DELETE FROM OPENBPMODELITEM WHERE MI_MODEL_NAME = '" + model.getName() + "'";
      pc.executeUpdateOrDelete(sql);

      sql = "DELETE FROM OPENBPMODEL WHERE MO_NAME = '" + model.getName() + "'";
      pc.executeUpdateOrDelete(sql);
    }
    catch (PersistenceException e)
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.executeUpdateOrDelete()

    {
      String sql = "DELETE FROM OPENBPMODELITEM WHERE MI_MODEL_NAME = '" + model.getName() + "'";
      pc.executeUpdateOrDelete(sql);

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

Examples of org.openbp.server.persistence.PersistenceContext.executeUpdateOrDelete()

  {
    PersistenceContext pc = getProcessServer().getEngine().getPersistenceContextProvider().obtainPersistenceContext();
    pc.beginTransaction();
    try
    {
      pc.executeUpdateOrDelete("DELETE FROM " + tableName);
      pc.commitTransaction();
    }
    catch (Exception e)
    {
      // Ignore any
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.