use of org.nextprot.api.rdf.domain.OWLEvidence in project nextprot-api by calipho-sib.
the class SchemaDaoImpl method findAllEvidence.
@Override
public List<OWLEvidence> findAllEvidence() {
SqlParameterSource params = new MapSqlParameterSource();
List<OWLEvidence> evidences = new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("schema-evidence-list"), params, new ParameterizedRowMapper<OWLEvidence>() {
@Override
public OWLEvidence mapRow(ResultSet resultSet, int row) throws SQLException {
OWLEvidence evidence = new OWLEvidence();
evidence.setType(resultSet.getString("type"));
evidence.setDescription(resultSet.getString("description"));
evidence.setCount(resultSet.getInt("n"));
return evidence;
}
});
return evidences;
}
Aggregations