public STHKPendingElectiveAdmissionListVo savePendingRecord(STHKPendingElectiveAdmissionListVo voPending) throws DomainInterfaceException, StaleObjectException { if (!voPending.isValidated()) throw new CodingRuntimeException("Pending Record has not been validated"); if(voPending == null) throw new CodingRuntimeException("Cannot save null STHKPendingElectiveAdmissionListVo"); DomainFactory factory = getDomainFactory(); PendingElectiveAdmission doElective = STHKPendingElectiveAdmissionListVoAssembler.extractPendingElectiveAdmission(factory, voPending); factory.save(doElective); return (STHKPendingElectiveAdmissionListVoAssembler.create(doElective)); }
public STHKPendingElectiveAdmissionListVo getCurrentPendingRecord(PendingElectiveAdmissionRefVo electiveRefVo) { DomainFactory factory = getDomainFactory(); return STHKPendingElectiveAdmissionListVoAssembler.create((PendingElectiveAdmission) factory.getDomainObject(PendingElectiveAdmission.class, electiveRefVo.getID_PendingElectiveAdmission())); }