Class CommunityHealthWorkerRepositoryImpl

    • Constructor Detail

      • CommunityHealthWorkerRepositoryImpl

        public CommunityHealthWorkerRepositoryImpl()
    • Method Detail

      • searchCommunityHealthWorkers

        public org.springframework.data.domain.Page<CommunityHealthWorker> searchCommunityHealthWorkers​(java.lang.String chwId,
                                                                                                        java.lang.String chwName,
                                                                                                        java.lang.String phoneNumber,
                                                                                                        java.lang.String villageName,
                                                                                                        java.lang.String facilityName,
                                                                                                        java.lang.String sectorName,
                                                                                                        java.lang.String districtName,
                                                                                                        java.lang.String groupName,
                                                                                                        java.lang.Boolean selected,
                                                                                                        org.springframework.data.domain.Pageable pageable)
        Finds CommunityHealthWorkers (CHW) matching all of the provided parameters. If there are no parameters, return all CommunityHealthWorkers.
        Specified by:
        searchCommunityHealthWorkers in interface CommunityHealthWorkerRepositoryCustom
        Parameters:
        pageable - pagination parameters (page size, page number, sort order)
        selected - flag indicating that CHW is selected
        chwId - id of a CHW
        chwName - name of a CHW
        districtName - name of District that CHW may belong
        facilityName - name of Facility that CHW may belong
        groupName - name of Group that CHW may belong
        phoneNumber - phone number of CHW
        sectorName - name of Sector that CHW may belong
        villageName - name of Village that CHW may belong
        Returns:
        page with found CHWs
      • getPath

        protected javax.persistence.criteria.Path getPath​(javax.persistence.criteria.Root root,
                                                          org.springframework.data.domain.Sort.Order order)
        Overrides:
        getPath in class BaseRepositoryImpl