public ims.core.vo.LocSiteVo buildVo(ims.vo.ValueObjectBeanMap map) { ims.core.vo.LocSiteVo vo = null; if (map != null) vo = (ims.core.vo.LocSiteVo) map.getValueObject(this); if (vo == null) { vo = new ims.core.vo.LocSiteVo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; }
public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.LocSiteVo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.name = vo.getName(); this.isactive = vo.getIsActive(); this.isvirtual = vo.getIsVirtual(); this.type = vo.getType() == null ? null : (ims.vo.LookupInstanceBean) vo.getType().getBean(); this.displayinedtracking = vo.getDisplayInEDTracking(); this.casenotefolderlocation = vo.getCaseNoteFolderLocation(); this.address = vo.getAddress() == null ? null : (ims.core.vo.beans.PersonAddressBean) vo.getAddress().getBean(map); this.secureaccommodation = vo.getSecureAccommodation(); this.treatinghosp = vo.getTreatingHosp(); this.referringhospital = vo.getReferringHospital(); this.codemappings = vo.getCodeMappings() == null ? null : vo.getCodeMappings().getBeanCollection(); this.locations = vo.getLocations() == null ? null : vo.getLocations().getBeanCollection(); this.parentlocation = vo.getParentLocation() == null ? null : (ims.core.vo.beans.LocMostVoBean) vo.getParentLocation().getBean(map); this.printers = vo.getPrinters() == null ? null : vo.getPrinters().getBeanCollection(); this.defaultprinter = vo.getDefaultPrinter() == null ? null : (ims.admin.vo.beans.PrinterVoBean) vo.getDefaultPrinter().getBean(map); this.designatedprinterfornewresults = vo.getDesignatedPrinterForNewResults() == null ? null : (ims.admin.vo.beans.PrinterVoBean) vo.getDesignatedPrinterForNewResults().getBean(map); this.designatedprinterforocsorder = vo.getDesignatedPrinterForOCSOrder() == null ? null : (ims.admin.vo.beans.PrinterVoBean) vo.getDesignatedPrinterForOCSOrder().getBean(map); this.parentorganisation = vo.getParentOrganisation() == null ? null : (ims.core.vo.beans.OrganisationVoBean) vo.getParentOrganisation().getBean(map); this.allsecureaccommodation = vo.getAllSecureAccommodation(); this.commchannels = vo.getCommChannels() == null ? null : vo.getCommChannels().getBeanCollection(); }