Package org.openbp.server.persistence

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


  public void shutdown()
  {
    PersistenceContext pc = getExistingPersistenceContext();
    if (pc != null)
    {
      pc.release();
    }
    getPersistenceContextProvider().shutdown();
  }

  //////////////////////////////////////////////////
View Full Code Here


   */
  public void rollback()
  {
    PersistenceContext pc = getPersistenceContext();
    pc.rollbackTransaction();
    pc.release();
  }

  /**
   * Clears any this token context service might have.
   */
 
View Full Code Here

  public void clearCache()
  {
    PersistenceContext pc = getExistingPersistenceContext();
    if (pc != null)
    {
      pc.release();
    }
  }

  //////////////////////////////////////////////////
  // @@ Context management
View Full Code Here

      model.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS | ModelObject.INSTANTIATE_ITEM);
    }
    catch (PersistenceException e)
    {
      pc.rollbackTransaction();
      pc.release();
      throw new ModelException("DatabaseOperation", "Error reloading descriptor of model '" + model.getQualifier() + "' to the database: "
        + e.getMessage(), e);
    }
  }
View Full Code Here

      item.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS | ModelObject.INSTANTIATE_ITEM);
    }
    catch (PersistenceException e)
    {
      pc.rollbackTransaction();
      pc.release();
      throw new ModelException("DatabaseOperation", "Error reloading descriptor of component '" + item.getQualifier() + "' to the database: "
        + e.getMessage(), e);
    }
  }
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.