Package org.sonar.api.database

Examples of org.sonar.api.database.DatabaseSession.createQuery()


  }

  protected final Rule doFindById(int ruleId) {
    DatabaseSession session = sessionFactory.getSession();
    return session.getSingleResult(
      session.createQuery("FROM " + Rule.class.getSimpleName() + " r WHERE r.id=:id and r.status<>:status")
        .setParameter("id", ruleId)
        .setParameter("status", Rule.STATUS_REMOVED
        ),
      null);
  }
View Full Code Here

TOP
Copyright © 2015 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.