@CheckForNull public QualityGateDto selectByName(String name) { SqlSession session = myBatis.openSession(false); try { return selectByName(session, name); } finally { MyBatis.closeQuietly(session); } }
@CheckForNull public QualityGateDto selectById(long id) { SqlSession session = myBatis.openSession(false); try { return selectById(session, id); } finally { MyBatis.closeQuietly(session); } }
@CheckForNull public QualityProfileDto selectDefaultProfile(String language) { DbSession session = mybatis.openSession(false); try { return selectDefaultProfile(session, language); } finally { MyBatis.closeQuietly(session); } }
public Collection<QualityGateConditionDto> selectForQualityGate(long qGateId) { SqlSession session = myBatis.openSession(false); try { return selectForQualityGate(qGateId, session); } finally { MyBatis.closeQuietly(session); } }
public QualityGateConditionDto selectById(long id) { SqlSession session = myBatis.openSession(false); try { return selectById(id, session); } finally { MyBatis.closeQuietly(session); } }
@CheckForNull public QualityProfileDto selectByProjectAndLanguage(long projectId, String language) { DbSession session = mybatis.openSession(false); try { return mapper(session).selectByProjectIdAndLanguage(projectId, language); } finally { MyBatis.closeQuietly(session); } }
@CheckForNull public FileSourceDto selectTest(String fileUuid) { DbSession session = mybatis.openSession(false); try { return mapper(session).select(fileUuid, Type.TEST); } finally { MyBatis.closeQuietly(session); } }
/** * @deprecated Replaced by {@link #selectAll(DbSession)} */ @Deprecated public List<QualityProfileDto> selectAll() { DbSession session = mybatis.openSession(false); try { return mapper(session).selectAll(); } finally { MyBatis.closeQuietly(session); } }
public void insert(FileSourceDto dto) { DbSession session = mybatis.openSession(false); try { insert(session, dto); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public List<IssueChangeDto> selectChangelogOfNonClosedIssuesByComponent(String componentUuid) { DbSession session = mybatis.openSession(false); try { IssueChangeMapper mapper = mapper(session); return mapper.selectChangelogOfNonClosedIssuesByComponent(componentUuid, IssueChangeDto.TYPE_FIELD_CHANGE); } finally { MyBatis.closeQuietly(session); } }
public long count() { SqlSession session = mybatis.openSession(false); try { return session.getMapper(NotificationQueueMapper.class).count(); } finally { MyBatis.closeQuietly(session); } } }
public void delete(QualityGateDto qGate) { SqlSession session = myBatis.openSession(false); try { delete(qGate, session); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public void update(QualityGateDto qGate) { SqlSession session = myBatis.openSession(false); try { update(qGate, session); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public void deleteConditionsWithInvalidMetrics() { SqlSession session = myBatis.openSession(false); try { deleteConditionsWithInvalidMetrics(session); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public List<QualityProfileDto> selectByLanguage(String language) { DbSession session = mybatis.openSession(false); try { return mapper(session).selectByLanguage(language); } finally { MyBatis.closeQuietly(session); } }
public void insert(QualityGateDto newQualityGate) { DbSession session = myBatis.openSession(false); try { insert(session, newQualityGate); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public void delete(QualityGateConditionDto qGate) { SqlSession session = myBatis.openSession(false); try { delete(qGate, session); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public void update(QualityGateConditionDto qGate) { SqlSession session = myBatis.openSession(false); try { update(qGate, session); session.commit(); } finally { MyBatis.closeQuietly(session); } }
public Map<String, Long> countProjectsByProfileKey() { DbSession session = mybatis.openSession(false); try { Map<String, Long> countByKey = Maps.newHashMap(); for (QualityProfileProjectCount count : mapper(session).countProjectsByProfile()) { countByKey.put(count.getProfileKey(), count.getProjectCount()); } return countByKey; } finally { MyBatis.closeQuietly(session); } }
public void insert(LoadedTemplateDto loadedTemplateDto) { SqlSession session = mybatis.openSession(false); try { insert(loadedTemplateDto, session); session.commit(); } finally { MyBatis.closeQuietly(session); } }