Search in sources :

Example 1 with EnrollmentRowCallbackHandler

use of org.hisp.dhis.dxf2.events.trackedentity.store.mapper.EnrollmentRowCallbackHandler in project dhis2-core by dhis2.

the class DefaultEnrollmentStore method getEnrollmentsByTrackedEntityInstanceIdsPartitioned.

private Multimap<String, Enrollment> getEnrollmentsByTrackedEntityInstanceIdsPartitioned(List<Long> ids, AggregateContext ctx) {
    EnrollmentRowCallbackHandler handler = new EnrollmentRowCallbackHandler();
    jdbcTemplate.query(getQuery(GET_ENROLLMENT_SQL_BY_TEI, ctx, " pi.programid IN (:programIds)", FILTER_OUT_DELETED_ENROLLMENTS), createIdsParam(ids).addValue("programIds", ctx.getPrograms()), handler);
    return handler.getItems();
}
Also used : EnrollmentRowCallbackHandler(org.hisp.dhis.dxf2.events.trackedentity.store.mapper.EnrollmentRowCallbackHandler)

Aggregations

EnrollmentRowCallbackHandler (org.hisp.dhis.dxf2.events.trackedentity.store.mapper.EnrollmentRowCallbackHandler)1