use of org.folio.rest.jaxrs.model.JobProfileInfoCollection in project mod-source-record-manager by folio-org.
the class JobExecutionDaoImpl method mapRowToJobProfileInfoCollection.
private JobProfileInfoCollection mapRowToJobProfileInfoCollection(RowSet<Row> rowSet) {
JobProfileInfoCollection jobCollection = new JobProfileInfoCollection().withTotalRecords(0);
rowSet.iterator().forEachRemaining(row -> {
jobCollection.getJobProfilesInfo().add(mapRowToJobProfileInfo(row));
jobCollection.setTotalRecords(row.getInteger(TOTAL_COUNT_FIELD));
});
return jobCollection;
}
Aggregations