public void deleteElectronicPrescribingRecord(ElectronicPrescribingConfigVo voEP) throws StaleObjectException, ForeignKeyViolationException { if(voEP == null) throw new CodingRuntimeException("ElectronicPrescribingConfigVo is null"); if (!voEP.isValidated()) throw new DomainRuntimeException("ElectronicPrescribingConfigVo not validated"); DomainFactory factory = getDomainFactory(); ElectronicPrescribingConfig doEP = ElectronicPrescribingConfigVoAssembler.extractElectronicPrescribingConfig(factory, voEP); try { factory.delete(doEP); } catch (IllegalArgumentException e) { throw new StaleObjectException(doEP); } }
public ims.admin.vo.ElectronicPrescribingConfigVoCollection listElectronicPrescribing() { DomainFactory factory = getDomainFactory(); return ElectronicPrescribingConfigVoAssembler.createElectronicPrescribingConfigVoCollectionFromElectronicPrescribingConfig(factory.listDomainObjects(ElectronicPrescribingConfig.class)).sort(); }