Class SectorRepositoryImpl

    • Constructor Detail

      • SectorRepositoryImpl

        public SectorRepositoryImpl()
    • Method Detail

      • search

        public org.springframework.data.domain.Page<Sector> search​(java.lang.String sectorName,
                                                                   java.lang.String parentDistrict,
                                                                   org.springframework.data.domain.Pageable pageable)
        Finds Sectors matching all of the provided parameters. If there are no parameters, return all Sectors.
        Specified by:
        search in interface SectorRepositoryCustom
        Parameters:
        pageable - pagination parameters (page size, page number, sort order)
        sectorName - name of sector
        parentDistrict - name of District that may belong to a Sector
        Returns:
        page with found sectors
      • getPath

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