Search in sources :

Example 1 with JobLogEntryDtoCollection

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

the class JournalRecordDaoImpl method mapRowSetToJobLogDtoCollection.

private JobLogEntryDtoCollection mapRowSetToJobLogDtoCollection(RowSet<Row> rowSet) {
    var jobLogEntryDtoCollection = new JobLogEntryDtoCollection().withTotalRecords(0);
    rowSet.forEach(row -> jobLogEntryDtoCollection.withTotalRecords(row.getInteger(TOTAL_COUNT)).getEntries().add(mapJobLogEntryRow(row)));
    return jobLogEntryDtoCollection;
}
Also used : JobLogEntryDtoCollection(org.folio.rest.jaxrs.model.JobLogEntryDtoCollection)

Aggregations

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