public OrderInvestigationForStatusChangeVo getOrderInvestigation(OrderInvestigationRefVo investigation) { if (investigation == null) throw new CodingRuntimeException("Error - Investigation to amend must not be null"); return OrderInvestigationForStatusChangeVoAssembler.create((OrderInvestigation) getDomainFactory().getDomainObject(OrderInvestigation.class, investigation.getID_OrderInvestigation())); }
public OrderInvestigationLiteVo updateInvestigationStatus(OrderInvestigationForStatusChangeVo investigation) throws StaleObjectException { if (investigation == null) throw new CodingRuntimeException("Error - Can not update the status for a null investigation"); OrderInvestigation domInvestigation = OrderInvestigationForStatusChangeVoAssembler.extractOrderInvestigation(getDomainFactory(), investigation); getDomainFactory().save(domInvestigation); return OrderInvestigationLiteVoAssembler.create(domInvestigation); }