package org.sonar.core.issue.db;
import org.sonar.api.issue.IssueQuery;
import java.util.List;
public interface IssueMapper {
IssueDto selectByKey(String key);
<BUG>List<IssueDto> selectIssueAndComponentIds(IssueQuery query);</BUG>
List<IssueDto> select(IssueQuery query);
List<IssueDto> selectNonClosedIssues(int rootComponentId);
void insert(IssueDto issue);
int update(IssueDto issue);
}

package org.sonar.core.issue.db;
import org.sonar.api.issue.IssueQuery;
import java.util.List;
public interface IssueMapper {
IssueDto selectByKey(String key);
List<IssueDto> select(IssueQuery query);
List<IssueDto> selectNonClosedIssues(int rootComponentId);
void insert(IssueDto issue);
int update(IssueDto issue);
