use of org.nextprot.api.core.domain.release.ReleaseContentsDataSource in project nextprot-api by calipho-sib.
the class ReleaseStatsDaoImpl method findReleaseInfoDataSources.
@Override
public List<ReleaseContentsDataSource> findReleaseInfoDataSources() {
Map<String, Object> params = new HashMap<>();
params.put("cvNames", ReleaseDataSources.getDistinctCvNamesExcept(ReleaseDataSources.PeptideAtlas));
List<ReleaseContentsDataSource> ds = new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("release-contents"), params, new ReleaseInfoRowMapper(null));
ds.addAll(new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("release-contents-peptide-atlas"), params, new ReleaseInfoRowMapper(ReleaseDataSources.PeptideAtlas)));
ds.sort((ds1, ds2) -> ds1.getSource().compareToIgnoreCase(ds2.getSource()));
return ds;
}
Aggregations