Class CommunityHealthWorkerRepositoryImpl
- java.lang.Object
-
- org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
-
- org.motechproject.mots.repository.custom.impl.CommunityHealthWorkerRepositoryImpl
-
- All Implemented Interfaces:
CommunityHealthWorkerRepositoryCustom
public class CommunityHealthWorkerRepositoryImpl extends BaseRepositoryImpl implements CommunityHealthWorkerRepositoryCustom
-
-
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 CommunityHealthWorkerRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.persistence.criteria.PathgetPath(javax.persistence.criteria.Root root, org.springframework.data.domain.Sort.Order order)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)FindsCommunityHealthWorkers (CHW) matching all of the provided parameters.-
Methods inherited from class org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
addSortProperties, getFirstResult, getPageSize, getSortDirection
-
-
-
-
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)
FindsCommunityHealthWorkers (CHW) matching all of the provided parameters. If there are no parameters, return all CommunityHealthWorkers.- Specified by:
searchCommunityHealthWorkersin interfaceCommunityHealthWorkerRepositoryCustom- Parameters:
pageable- pagination parameters (page size, page number, sort order)selected- flag indicating that CHW is selectedchwId- id of a CHWchwName- name of a CHWdistrictName- name ofDistrictthat CHW may belongfacilityName- name ofFacilitythat CHW may belonggroupName- name ofGroupthat CHW may belongphoneNumber- phone number of CHWsectorName- name ofSectorthat CHW may belongvillageName- name ofVillagethat 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:
getPathin classBaseRepositoryImpl
-
-