Package org.sonar.core.persistence

Examples of org.sonar.core.persistence.DbSession.select()


    DbSession session = mybatis.openSession(false);
    try {
      Map<String, Object> params = newHashMap();
      params.put("componentId", componentId);
      params.put("changeType", IssueChangeDto.TYPE_FIELD_CHANGE);
      session.select("org.sonar.core.issue.db.IssueChangeMapper.selectChangelogOnNonClosedIssuesByModuleAndType", params, handler);

    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here


   */
  public ResourceIndexerDao indexProjects() {
    final DbSession session = mybatis.openSession(true);
    try {
      final ResourceIndexerMapper mapper = session.getMapper(ResourceIndexerMapper.class);
      session.select("org.sonar.core.resource.ResourceIndexerMapper.selectRootProjectIds", /* workaround to get booleans */ResourceIndexerQuery.create(), new ResultHandler() {
        @Override
        public void handleResult(ResultContext context) {
          Integer rootProjectId = (Integer) context.getResultObject();
          doIndexProject(rootProjectId, session, mapper);
          session.commit();
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.