public ims.framework.utils.DateTime getAttendanceRegistrationDateTime(CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get AllocatedMedicVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List<?> list = factory.find(hql.toString(), new String[] { "careContextID" }, new Object[] { careContextRef.getID_CareContext() }); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public DateTime getAttendanceRegistrationDateTime(CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get SentToXRayVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()}); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public DateTime getAttendanceRegistrationDateTime(CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get AllocatedMedicVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()}); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public ims.framework.utils.DateTime getAttendanceRegistrationDateTime(ims.core.admin.vo.CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get AllocatedMedicVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List<?> list = factory.find(hql.toString(), new String[] { "careContextID" }, new Object[] { careContextRef.getID_CareContext() }); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public DateTime getAttendanceRegistrationDateTime(CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get AllocatedMedicVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List<?> list = factory.find(hql.toString(), new String[] { "careContextID" }, new Object[] { careContextRef.getID_CareContext() }); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public ims.framework.utils.DateTime getAttendanceRegistrationDateTime(ims.core.admin.vo.CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get RegistrationDateTime on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select att from EmergencyAttendance as att where att.careContext.id = :careContextID "); List<?> list = factory.find(hql.toString(), new String[] { "careContextID" }, new Object[] { careContextRef.getID_CareContext() }); return EmergencyAttendanceForTrackingVoAssembler.createEmergencyAttendanceForTrackingVoCollectionFromEmergencyAttendance(list).get(0).getRegistrationDateTime(); }
public ims.emergency.vo.EmergencyAttendanceForTrackingVo getEmergencyAttendance(ims.emergency.vo.TrackingRefVo trackingRef) { if (trackingRef == null || trackingRef.getID_Tracking() == null) { throw new CodingRuntimeException("Cannot get EmergencyAttendanceForTrackingVo on null Id for Tracking "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select tracking.attendance from Tracking as tracking where tracking.id = :trackingID "); List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() }); if (list!=null && list.size()>0) { return EmergencyAttendanceForTrackingVoAssembler.create((EmergencyAttendance) list.get(0)); } return null; }
public ims.emergency.vo.EmergencyAttendanceForTrackingVo save(ims.emergency.vo.EmergencyAttendanceForTrackingVo emergencyAttendance) throws ims.domain.exceptions.StaleObjectException { if (emergencyAttendance == null ) throw new CodingRuntimeException("Cannot save null EmergencyAttendanceForTrackingVo "); DomainFactory factory = getDomainFactory(); EmergencyAttendance domainEmergAttendance = EmergencyAttendanceForTrackingVoAssembler.extractEmergencyAttendance(factory, emergencyAttendance); factory.save(domainEmergAttendance); return EmergencyAttendanceForTrackingVoAssembler.create(domainEmergAttendance); }