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.Path
getPath(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)
FindsCommunityHealthWorker
s (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)
FindsCommunityHealthWorker
s (CHW) matching all of the provided parameters. If there are no parameters, return all CommunityHealthWorkers.- Specified by:
searchCommunityHealthWorkers
in 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 ofDistrict
that CHW may belongfacilityName
- name ofFacility
that CHW may belonggroupName
- name ofGroup
that CHW may belongphoneNumber
- phone number of CHWsectorName
- name ofSector
that CHW may belongvillageName
- name ofVillage
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 classBaseRepositoryImpl
-
-