public ims.core.vo.NeedsAssessmentEditVo save(ims.core.vo.NeedsAssessmentEditVo record) throws StaleObjectException { if(record == null) throw new DomainRuntimeException("Invalid need assessment record to save"); if(!record.isValidated()) throw new DomainRuntimeException("Needs assessment record not validated"); DomainFactory factory = getDomainFactory(); NeedsAssessment domainRecord = NeedsAssessmentEditVoAssembler.extractNeedsAssessment(factory, record); factory.save(domainRecord); return NeedsAssessmentEditVoAssembler.create(domainRecord); }
public NeedsAssessmentEditVo get(NeedsAssessmentRefVo record) { if(record == null || record.getID_NeedsAssessment() == null) throw new DomainRuntimeException("Invalid need assessment record to get"); return NeedsAssessmentEditVoAssembler.create((NeedsAssessment)getDomainFactory().getDomainObject(NeedsAssessment.class, record.getID_NeedsAssessment())); }