/** * list the PatientEWSVoCollection */ public ims.core.vo.PatientEWSVoCollection listPatientEWS(ims.core.admin.vo.CareContextRefVo voCareContext) { StringBuffer hql = new StringBuffer(); hql.append(" select p1_1 from PatientEWS as p1_1 "); hql.append(" where"); hql.append(" p1_1.careContext.id = :careContext"); ArrayList paramValues = new ArrayList(); ArrayList paramNames = new ArrayList(); paramValues.add(voCareContext.getID_CareContext()); paramNames.add("careContext"); DomainFactory factory = getDomainFactory(); List list = factory.find(hql.toString(), paramNames, paramValues); return PatientEWSVoAssembler.createPatientEWSVoCollectionFromPatientEWS(list); }
public void savePatientEws(PatientEWSVo voPatEws) { if(voPatEws == null) throw new CodingRuntimeException("parameter voPatEws is null in method savePatientEws"); try { getDomainFactory().save( PatientEWSVoAssembler.extractPatientEWS(getDomainFactory(), voPatEws)); } catch (StaleObjectException e) { //unreachable code - always instantiating this business object - dlaffan } }
/** * savePatientEws */ public void savePatientEws(ims.core.vo.PatientEWSVo voPatEws) { if(voPatEws == null) throw new CodingRuntimeException("parameter voPatEws is null in method savePatientEws"); try { getDomainFactory().save( PatientEWSVoAssembler.extractPatientEWS(getDomainFactory(), voPatEws)); } catch (StaleObjectException e) { //unreachable code - always instantiating this business object - dlaffan } }