Package org.motechproject.mots.mapper
Interface CommunityHealthWorkerMapper
-
public interface CommunityHealthWorkerMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DistricttoDistrict(java.lang.String districtId)Create district object with given id.CommunityHealthWorkerDtotoDto(CommunityHealthWorker healthWorker)java.util.List<CommunityHealthWorkerDto>toDtos(java.lang.Iterable<CommunityHealthWorker> healthWorkers)default FacilitytoFacility(java.lang.String facilityId)Create facility object with given id.default GrouptoGroup(java.lang.String groupId)Create group object with given id.default SectortoSector(java.lang.String sectorId)Create sector object with given id.default VillagetoVillage(java.lang.String villageId)Create village object with given id.voidupdateFromDto(CommunityHealthWorkerDto healthWorkerDto, CommunityHealthWorker healthWorker)
-
-
-
Method Detail
-
toDto
CommunityHealthWorkerDto toDto(CommunityHealthWorker healthWorker)
-
toDtos
java.util.List<CommunityHealthWorkerDto> toDtos(java.lang.Iterable<CommunityHealthWorker> healthWorkers)
-
updateFromDto
void updateFromDto(CommunityHealthWorkerDto healthWorkerDto, CommunityHealthWorker healthWorker)
-
toVillage
default Village toVillage(java.lang.String villageId)
Create village object with given id.- Parameters:
villageId- id of village to create- Returns:
- Village object with given id
-
toFacility
default Facility toFacility(java.lang.String facilityId)
Create facility object with given id.- Parameters:
facilityId- id of facility to create- Returns:
- Facility object with given id
-
toSector
default Sector toSector(java.lang.String sectorId)
Create sector object with given id.- Parameters:
sectorId- id of sector to create- Returns:
- Sector object with given id
-
toDistrict
default District toDistrict(java.lang.String districtId)
Create district object with given id.- Parameters:
districtId- id of district to create- Returns:
- District object with given id
-
toGroup
default Group toGroup(java.lang.String groupId)
Create group object with given id.- Parameters:
groupId- id of group to create- Returns:
- Group object with given id
-
-