Class DistrictRepositoryImpl
- java.lang.Object
-
- org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
-
- org.motechproject.mots.repository.custom.impl.DistrictRepositoryImpl
-
- All Implemented Interfaces:
DistrictRepositoryCustom
public class DistrictRepositoryImpl extends BaseRepositoryImpl implements DistrictRepositoryCustom
-
-
Field Summary
-
Fields inherited from class org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
CHW_ID, CHW_NAME, DISTRICT, EMAIL, entityManager, FACILITY, GROUP, INCHARGE_EMAIL, INCHARGE_FULL_NAME, INCHARGE_PHONE, NAME, PHONE_NUMBER, ROLES, SECTOR, SELECTED, USERNAME, VILLAGE
-
-
Constructor Summary
Constructors Constructor Description DistrictRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<District>
search(java.lang.String districtName, org.springframework.data.domain.Pageable pageable)
FindsDistrict
s matching all of the provided parameters.-
Methods inherited from class org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
addSortProperties, getFirstResult, getPageSize, getPath, getSortDirection
-
-
-
-
Method Detail
-
search
public org.springframework.data.domain.Page<District> search(java.lang.String districtName, org.springframework.data.domain.Pageable pageable)
FindsDistrict
s matching all of the provided parameters. If there are no parameters, return all Districts.- Specified by:
search
in interfaceDistrictRepositoryCustom
- Parameters:
districtName
- name of a districtpageable
- pagination parameters (page size, page number, sort order)- Returns:
- page with found districts
-
-