Package ch.hortis.sonar.core.service

Examples of ch.hortis.sonar.core.service.TransactionalSnapshotProcessor


    return query.getResultList();
  }

  protected void processGroup(SnapshotGroup group) throws Throwable {
    // each snapshots of the group will be processed within their own transaction
    SnapshotProcessor snapshotProcessor = new TransactionalSnapshotProcessor(getEntityManager(), getTaskServices());
    snapshotProcessor.process(group.getRootSnapshot());
    getEntityManager().getTransaction().begin();
    try {
      group.setProcessed(true);
      Query query = getEntityManager().createQuery("SELECT g FROM SnapshotGroup g WHERE g.mavenProject = :project AND g.last=true AND g.processed=true");
      query.setParameter("project", group.getMavenProject());
View Full Code Here

TOP

Related Classes of ch.hortis.sonar.core.service.TransactionalSnapshotProcessor

Copyright © 2018 www.massapicom. 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.