public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) { if(summary == null || summary.getID_Summary() == null) throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id."); return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary())); }
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException { if(summary == null) throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary."); if(!summary.isValidated()) throw new CodingRuntimeException("EDischargeSTHKSummary is not validated."); DomainFactory factory = getDomainFactory(); Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary); factory.save(doSummary); return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary); }