Class FacilityRepositoryImpl

    • Constructor Detail

      • FacilityRepositoryImpl

        public FacilityRepositoryImpl()
    • Method Detail

      • search

        public org.springframework.data.domain.Page<Facility> search​(java.lang.String facilityName,
                                                                     java.lang.String inchargeFullName,
                                                                     java.lang.String inchargePhone,
                                                                     java.lang.String inchargeEmail,
                                                                     java.lang.String parentSector,
                                                                     java.lang.String districtName,
                                                                     org.springframework.data.domain.Pageable pageable)
        Finds Facilityes matching all of the provided parameters. If there are no parameters, return all Facilities.
        Specified by:
        search in interface FacilityRepositoryCustom
        Parameters:
        pageable - pagination parameters (page size, page number, sort order)
        districtName - name of District that may belong to facility
        facilityName - name of facility
        parentSector - name of Sector that may belong to facility
        inchargePhone - phone of a person in charge
        inchargeFullName - full name of a person in charge
        inchargeEmail - email of a person in charge
        Returns:
        page with found Facilities
      • addSortProperties

        protected <T> javax.persistence.criteria.CriteriaQuery<T> addSortProperties​(javax.persistence.criteria.CriteriaQuery<T> query,
                                                                                    javax.persistence.criteria.Root root,
                                                                                    org.springframework.data.domain.Pageable pageable)
        Overrides:
        addSortProperties in class BaseRepositoryImpl