/** * getPACSConfigVo */ public ims.core.vo.PacsConfigurationVo getPACSConfigVo() { DomainFactory factory = getDomainFactory(); List<?> lstPACS = factory.find("select e1_1 from PACSConfiguration as e1_1 "); if(lstPACS != null && lstPACS.size() >0) { PacsConfigurationVoCollection tempColl = PacsConfigurationVoAssembler.createPacsConfigurationVoCollectionFromPACSConfiguration(lstPACS); if( tempColl != null && tempColl.size() > 0) return tempColl.get(0); } return null; }
public ims.core.vo.PacsConfigurationVo savePACSConfigVo(ims.core.vo.PacsConfigurationVo pacsVO) throws ims.domain.exceptions.StaleObjectException { if (pacsVO == null) throw new CodingRuntimeException("Cannot save null PacsConfigurationVo"); DomainFactory factory = getDomainFactory(); PACSConfiguration doPACS = PacsConfigurationVoAssembler.extractPACSConfiguration(factory, pacsVO); factory.save(doPACS); return PacsConfigurationVoAssembler.create(doPACS); }