Search in sources :

Example 1 with JobProfileInfoCollection

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;
}
Also used : JobProfileInfoCollection(org.folio.rest.jaxrs.model.JobProfileInfoCollection)

Aggregations

JobProfileInfoCollection (org.folio.rest.jaxrs.model.JobProfileInfoCollection)1