Search in sources :

Example 1 with JobExecutionUserInfoCollection

use of org.folio.rest.jaxrs.model.JobExecutionUserInfoCollection in project mod-source-record-manager by folio-org.

the class JobExecutionDaoImpl method mapRowToJobExecutionUserInfoCollection.

private JobExecutionUserInfoCollection mapRowToJobExecutionUserInfoCollection(RowSet<Row> rowSet) {
    JobExecutionUserInfoCollection jobExecutionUserInfoCollection = new JobExecutionUserInfoCollection().withTotalRecords(0);
    for (Row row : rowSet) {
        jobExecutionUserInfoCollection.getJobExecutionUsersInfo().add(mapRowToJobExecutionUserInfoDto(row));
        jobExecutionUserInfoCollection.setTotalRecords(row.getInteger(TOTAL_COUNT_FIELD));
    }
    return jobExecutionUserInfoCollection;
}
Also used : JobExecutionUserInfoCollection(org.folio.rest.jaxrs.model.JobExecutionUserInfoCollection) Row(io.vertx.sqlclient.Row)

Aggregations

Row (io.vertx.sqlclient.Row)1 JobExecutionUserInfoCollection (org.folio.rest.jaxrs.model.JobExecutionUserInfoCollection)1