Criterion

public interface Criterion

Criteria interface provides methods to fetch records from database and to filter records in memory.

Methods

fetch

List<Enrollment> fetch(AllEnrollments allEnrollments)

Returns list of the enrollments from the database using the given DAO service.

Parameters:
  • allEnrollments – the DAO service used to retrieve enrollments
Returns:

the list of the enrollments

filter

List<Enrollment> filter(List<Enrollment> enrollments)

Returns filtered list of the enrollments from the given enrollments list.

Parameters:
  • enrollments – the enrollments to filter
Returns:

the filtered list of the enrollments