public ims.ocrr.vo.OrderSetEditVo getOrderSet(Integer recordID) { if(recordID == null) return null; DomainFactory factory = getDomainFactory(); OrderSet record = (OrderSet)factory.getDomainObject(OrderSet.class, recordID); if(record != null) return OrderSetEditVoAssembler.create(record); return null; }
/** * saveOrderSet */ public ims.ocrr.vo.OrderSetEditVo saveOrderSet(ims.ocrr.vo.OrderSetEditVo record) throws ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.StaleObjectException { DomainFactory factory = getDomainFactory(); if(record.isValidated() == false) throw new DomainRuntimeException("Order set not validated"); //WDEV-11073 - removed delete items as hibernate handles orphans OrderSet doRecord = OrderSetEditVoAssembler.extractOrderSet(factory, record); factory.save(doRecord); return OrderSetEditVoAssembler.create(doRecord); }