use of org.nextprot.api.core.domain.Identifier in project nextprot-api by calipho-sib.
the class IdentifierDaoImpl method findIdentifiersByMaster.
@Override
public List<Identifier> findIdentifiersByMaster(String uniqueName) {
Map<String, Object> params = new HashMap<>();
params.put("uniqueName", uniqueName);
List<Identifier> ids = new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("identifiers-by-master-unique-name"), params, new IdentifierRowMapper(uniqueName));
return ids.stream().filter(Objects::nonNull).filter(i -> isValidIdentifier(i)).collect(Collectors.toList());
}
Aggregations