private GenderInvestigationVo getGenderInvestigationFromSelectedComponentFromSelectOrder(SelectedComponentFromSelectOrderVo component) { if(component == null) return null; GenderInvestigationVo inv = new GenderInvestigationVo(); inv.setID_Investigation(component.getID()); InvestigationIndexForGenderInvestigationVo invIndex = new InvestigationIndexForGenderInvestigationVo(); invIndex.setName(component.getText()); invIndex.setIsProfile(SelectAndOrderComponentType.PROFILE.equals(component.getComponentType())); inv.setInvestigationIndex(invIndex); return inv; }
private GenderInvestigationVo getGenderInvestigationFromInvestShort(InvestShortVo investShortVo) { if(investShortVo == null) return null; GenderInvestigationVo inv = new GenderInvestigationVo(investShortVo.getID_Investigation(), investShortVo.getVersion_Investigation()); InvestigationIndexForGenderInvestigationVo invIndex = new InvestigationIndexForGenderInvestigationVo(investShortVo.getInvestigationIndex().getID_InvestigationIndex(), investShortVo.getInvestigationIndex().getVersion_InvestigationIndex()); invIndex.setName(investShortVo.getInvestigationIndex().getName()); invIndex.setIsProfile(investShortVo.getInvestigationIndex().getIsProfile()); inv.setInvestigationIndex(invIndex); return inv; }