use of org.nextprot.api.rdf.domain.OWLDatasource in project nextprot-api by calipho-sib.
the class SchemaDaoImpl method findAllSource.
@Override
public List<OWLDatasource> findAllSource() {
SqlParameterSource params = new MapSqlParameterSource();
List<OWLDatasource> datasources = new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("schema-datasource-list"), params, new ParameterizedRowMapper<OWLDatasource>() {
@Override
public OWLDatasource mapRow(ResultSet resultSet, int row) throws SQLException {
OWLDatasource datasource = new OWLDatasource();
datasource.setName(resultSet.getString("name"));
datasource.setDescription(resultSet.getString("description"));
datasource.setURL(resultSet.getString("url"));
return datasource;
}
});
return datasources;
}
Aggregations