EnrollmentDataService¶
-
public interface
EnrollmentDataService
extends MotechDataService<Enrollment>¶ Motech Data Service interface class for Enrollment entity. The implementation is provided by the Motech Data Services module.
See also:
org.motechproject.scheduletracking.domain.Enrollment
Methods¶
findByExternalId¶
-
List<Enrollment>
findByExternalId
(String externalId)¶ Returns the list of enrollments with the given external id.
Parameters: - externalId – the external id
Returns: the list of the enrollments
findByExternalIdScheduleNameAndStatus¶
-
Enrollment
findByExternalIdScheduleNameAndStatus
(String externalId, String scheduleName, EnrollmentStatus status)¶ Returns the enrollment with the given external id, schedule name and status.
Parameters: - externalId – the external id
- scheduleName – the name of the schedule
- status – the enrollment status
Returns: the enrollment
findById¶
-
Enrollment
findById
(Long id)¶ Returns the enrollment with the given id.
Parameters: - id – id of the instance
Returns: the enrollment
findByMilestoneName¶
-
List<Enrollment>
findByMilestoneName
(String milestoneName)¶ Returns the list of enrollments with the given current milestone name.
Parameters: - milestoneName – the current milestone name
Returns: the list of the enrollments which satisfy the search conditions
findByScheduleName¶
-
List<Enrollment>
findByScheduleName
(Set<String> scheduleName)¶ Returns the list of enrollments with the given schedule names.
Parameters: - scheduleName – the names of the schedule
Returns: the list of the enrollments which satisfy the search conditions
findByStatus¶
-
List<Enrollment>
findByStatus
(EnrollmentStatus enrollmentStatus)¶ Returns the list of enrollments with the given status.
Parameters: - enrollmentStatus – the enrollment status
Returns: the list of the enrollments which satisfy the search conditions