@Override public List<StorageServerConnections> getStorageConnectionsByStorageTypeAndStatus(Guid pool, StorageType storageType, Set<StorageDomainStatus> statuses) { List<String> statusesVals = statuses.stream().map(status -> Integer.toString(status.getValue())).collect(Collectors.toList()); return getCallsHandler().executeReadList("GetStorageConnectionsByStorageTypeAndStatus", mapper, getCustomMapSqlParameterSource() .addValue("storage_pool_id", pool) .addValue("storage_type", (storageType != null) ? storageType.getValue() : null) .addValue("statuses", StringUtils.join(statusesVals, ","))); }