public ReferralAppointmentDetailsOrderInvestigationVo getReferralAppointmentDetailsOrderInv(OrderInvestigationRefVo orderInvRef) { if (orderInvRef==null || orderInvRef.getID_OrderInvestigation()==null) throw new CodingRuntimeException("OrderInvestigation parameter cannot be null !"); DomainFactory factory = getDomainFactory(); OrderInvestigation domainOrderInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orderInvRef.getID_OrderInvestigation()); return ReferralAppointmentDetailsOrderInvestigationVoAssembler.create(domainOrderInv); }
public void saveOrderInv(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) throws StaleObjectException { if(voOrderInv == null) throw new CodingRuntimeException("voOrderInv is null in method saveOrderInv"); DomainFactory factory = getDomainFactory(); OrderInvestigation doOrderInv = ReferralAppointmentDetailsOrderInvestigationVoAssembler.extractOrderInvestigation(factory, voOrderInv); factory.save(doOrderInv); }