public DementiaAssessAndInvestigateVo getFollowUpAMTS(DementiaAssessAndInvestigateRefVo amtsRefVo) { if (amtsRefVo == null || amtsRefVo.getID_DementiaAssessAndInvestigate()== null) { throw new CodingRuntimeException("Cannot get DementiaAssessAndInvestigateRefVo on null Id "); } DomainFactory factory = getDomainFactory(); DementiaAssessAndInvestigate domainDementia = (DementiaAssessAndInvestigate) factory.getDomainObject(DementiaAssessAndInvestigate.class, amtsRefVo.getID_DementiaAssessAndInvestigate()); return DementiaAssessAndInvestigateVoAssembler.create(domainDementia); }
public void saveDementia(DementiaAssessAndInvestigateVo stepTwoAssesstoSave)throws StaleObjectException { if (stepTwoAssesstoSave == null ) { throw new CodingRuntimeException("Cannot get DementiaAssessAndInvestigateVo on null Id "); } DomainFactory factory = getDomainFactory(); DementiaAssessAndInvestigate domainDementia = DementiaAssessAndInvestigateVoAssembler.extractDementiaAssessAndInvestigate(factory, stepTwoAssesstoSave); factory.save(domainDementia); }