最近很多小伙伴都在问ims.clinical.vo.domain.SystemReviewVoAssembler的实例源码和isempty源码这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还
最近很多小伙伴都在问ims.clinical.vo.domain.SystemReviewVoAssembler的实例源码和isempty源码这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展ims.admin.vo.domain.ServiceVoLiteVoAssembler的实例源码、ims.admin.vo.domain.SystemJobVoAssembler的实例源码、ims.admin.vo.domain.SystemLogVoAssembler的实例源码、ims.admin.vo.domain.SystemReportVoAssembler的实例源码等相关知识,下面开始了哦!
本文目录一览:- ims.clinical.vo.domain.SystemReviewVoAssembler的实例源码(isempty源码)
- ims.admin.vo.domain.ServiceVoLiteVoAssembler的实例源码
- ims.admin.vo.domain.SystemJobVoAssembler的实例源码
- ims.admin.vo.domain.SystemLogVoAssembler的实例源码
- ims.admin.vo.domain.SystemReportVoAssembler的实例源码
ims.clinical.vo.domain.SystemReviewVoAssembler的实例源码(isempty源码)
/** * getSystemReview for a clinical contact. */ public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort) { if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null) throw new DomainRuntimeException("Contact not provided for get call. "); DomainFactory factory = getDomainFactory(); List sysReviewList = factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",new String[]{"idCC" },new Object[]{ voClinicalContactShort.getID_ClinicalContact()}); SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList); if(voColl.size()>0) return voColl.get(0); else return null; }
/** * getSystemReview for a clinical contact. */ public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort) { if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null) throw new DomainRuntimeException("Contact not provided for get call. "); DomainFactory factory = getDomainFactory(); List sysReviewList = factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",new Object[]{ voClinicalContactShort.getID_ClinicalContact()}); SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList); if(voColl.size()>0) return voColl.get(0); else return null; }
/** * getSystemReview for a clinical contact. */ public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort) { if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null) throw new DomainRuntimeException("Contact not provided for get call. "); DomainFactory factory = getDomainFactory(); List sysReviewList = factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",new Object[]{ voClinicalContactShort.getID_ClinicalContact()}); SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList); if(voColl.size()>0) return voColl.get(0); else return null; }
/** * saveSystemReview */ public ims.clinical.vo.SystemReviewVo saveSystemReview(ims.clinical.vo.SystemReviewVo voSystemReview) throws StaleObjectException { if (!voSystemReview.isValidated()) { throw new DomainRuntimeException("Systemreview VO has not been validated."); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from SystemReview sr "); if(voSystemReview.getID_SystemReview() == null) hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ")"); else hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ") and sr.id <> " + voSystemReview.getID_SystemReview()); List list = (factory.find(hql.toString())); if(list.size() > 0) throw new DomainRuntimeException("A record exists for this clinical contact,the screen will be refreshed"); SystemReview doSystemReview = SystemReviewVoAssembler.extractSystemReview(factory,voSystemReview); factory.save(doSystemReview); return SystemReviewVoAssembler.create(doSystemReview); }
/** * saveSystemReview */ public ims.clinical.vo.SystemReviewVo saveSystemReview(ims.clinical.vo.SystemReviewVo voSystemReview) throws StaleObjectException { if (!voSystemReview.isValidated()) { throw new DomainRuntimeException("Systemreview VO has not been validated."); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from SystemReview sr "); if(voSystemReview.getID_SystemReview() == null) hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ")"); else hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ") and sr.id <> " + voSystemReview.getID_SystemReview()); List list = (factory.find(hql.toString())); if(list.size() > 0) throw new DomainRuntimeException("A record exists for this clinical contact,voSystemReview); factory.save(doSystemReview); return SystemReviewVoAssembler.create(doSystemReview); }
/** * saveSystemReview */ public ims.clinical.vo.SystemReviewVo saveSystemReview(ims.clinical.vo.SystemReviewVo voSystemReview) throws StaleObjectException { if (!voSystemReview.isValidated()) { throw new DomainRuntimeException("Systemreview VO has not been validated."); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from SystemReview sr "); if(voSystemReview.getID_SystemReview() == null) hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ")"); else hql.append(" where (sr.clinicalContact.id = " + voSystemReview.getClinicalContact().getID_ClinicalContact() + ") and sr.id <> " + voSystemReview.getID_SystemReview()); List list = (factory.find(hql.toString())); if(list.size() > 0) throw new DomainRuntimeException("A record exists for this clinical contact,voSystemReview); factory.save(doSystemReview); return SystemReviewVoAssembler.create(doSystemReview); }
ims.admin.vo.domain.ServiceVoLiteVoAssembler的实例源码
public ims.admin.vo.ServiceVoLiteVoCollection getServices(String serviceName,ims.core.vo.lookups.ServiceCategory serviceCategory) { if (serviceName == null || serviceName.length() == 0 ) { throw new DomainRuntimeException("No search criteria specified"); } StringBuilder hqlBuilder = new StringBuilder("select s1_1 from Service as s1_1 left join s1_1.serviceCategory as l1_1 where "); ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); String and = ""; if (serviceName!=null && serviceName.length()>0) { hqlBuilder.append(and); hqlBuilder.append(" s1_1.upperName like :cName "); and = "and "; paramNames.add("cName"); paramValues.add("%" + serviceName.toupperCase() + "%"); } if (serviceCategory != null) { hqlBuilder.append(and); hqlBuilder.append(" l1_1.id = :cType "); and = "and "; paramNames.add("cType"); paramValues.add(serviceCategory.getID()); } hqlBuilder.append(and); hqlBuilder.append(" s1_1.isActive = :isActive"); paramNames.add("isActive"); paramValues.add(new Boolean(true)); List dos = getDomainFactory().find(hqlBuilder.toString(),paramNames,paramValues); if (dos == null || dos.size() == 0) return null; return ServiceVoLiteVoAssembler.createServiceVoLiteVoCollectionFromService(dos); }
public ims.admin.vo.ServiceVoLiteVoCollection getServices(String serviceName,paramValues); if (dos == null || dos.size() == 0) return null; return ServiceVoLiteVoAssembler.createServiceVoLiteVoCollectionFromService(dos); }
public ims.admin.vo.ServiceVoLiteVoCollection getServices(String serviceName,paramValues); if (dos == null || dos.size() == 0) return null; return ServiceVoLiteVoAssembler.createServiceVoLiteVoCollectionFromService(dos); }
ims.admin.vo.domain.SystemJobVoAssembler的实例源码
@SuppressWarnings("unchecked") public IScheduledJob[] getAvailableScheduledJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new String[] {"ACTIVE"},new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray(); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVo getSystemJobVo(Integer id) { if(id == null) { throw new CodingRuntimeException("SystemJobVo id is null"); } DomainFactory factory = getDomainFactory(); SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class,id); return (SystemJobVoAssembler.create(doSystemJob)); }
public SystemJobVo getSystemJobByimsId(Integer imsId) { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID"; List jobs = factory.find(hqlString,new String[] {"isActive","imsID"},new Object[] {true,new Integer(imsId)}); if (jobs != null && jobs.size() > 0) { return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0); } return null; }
@SuppressWarnings("unchecked") public IScheduledJob[] getAvailableScheduledJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray(); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVo getSystemJobVo(Integer id) { if(id == null) { throw new CodingRuntimeException("SystemJobVo id is null"); } DomainFactory factory = getDomainFactory(); SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class,id); return (SystemJobVoAssembler.create(doSystemJob)); }
public SystemJobVo getSystemJobByimsId(Integer imsId) { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID"; List jobs = factory.find(hqlString,new Integer(imsId)}); if (jobs != null && jobs.size() > 0) { return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0); } return null; }
@SuppressWarnings("unchecked") public IScheduledJob[] getAvailableScheduledJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray(); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVoCollection listAvailableSystemJobs() { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :ACTIVE"; List jobs = factory.find(hqlString,new Object[] {Boolean.TRUE}); return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs); }
public SystemJobVo getSystemJobVo(Integer id) { if(id == null) { throw new CodingRuntimeException("SystemJobVo id is null"); } DomainFactory factory = getDomainFactory(); SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class,id); return (SystemJobVoAssembler.create(doSystemJob)); }
public SystemJobVo getSystemJobByimsId(Integer imsId) { DomainFactory factory = getDomainFactory(); String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID"; List jobs = factory.find(hqlString,new Integer(imsId)}); if (jobs != null && jobs.size() > 0) { return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0); } return null; }
ims.admin.vo.domain.SystemLogVoAssembler的实例源码
public ISystemLog save(DateTime dateTime,SystemLogType type,SystemLogLevel level,String server,String user,String source,String computer,String userAgent,String sessionId,String message) { SystemLogVo entry = new SystemLogVo(); entry.setEventDateTime(dateTime); entry.setEventType(type.getId()); entry.setEventLevel(level.getId()); entry.setApplicationServer(server); entry.setUser(user); entry.setSource(source); entry.setComputer(computer); entry.setMessage(message); entry.setSessionId(sessionId); entry.setUserAgent(userAgent); ims.core.admin.domain.objects.SystemLog domainObject = SystemLogVoAssembler.extractSystemLog(getDomainFactory(),entry); try { getDomainFactory().save(domainObject); } catch (StaleObjectException e) { return null; } return SystemLogVoAssembler.create(domainObject); }
@SuppressWarnings("unchecked") public SystemLogVoCollection getEntries(String sessionId) { if(sessionId == null || sessionId.trim().length() == 0) return new SystemLogVoCollection(); DomainFactory factory = getDomainFactory(); String hql = " from SystemLog sl where sl.sessionId = '" + sessionId + "' order by sl.id desc"; List entries = factory.find(hql); return SystemLogVoAssembler.createSystemLogVoCollectionFromSystemLog(entries); }
public ISystemLog save(DateTime dateTime,entry); try { getDomainFactory().save(domainObject); } catch (StaleObjectException e) { return null; } return SystemLogVoAssembler.create(domainObject); }
@SuppressWarnings("unchecked") public SystemLogVoCollection getEntries(String sessionId) { if(sessionId == null || sessionId.trim().length() == 0) return new SystemLogVoCollection(); DomainFactory factory = getDomainFactory(); String hql = " from SystemLog sl where sl.sessionId = '" + sessionId + "' order by sl.id desc"; List entries = factory.find(hql); return SystemLogVoAssembler.createSystemLogVoCollectionFromSystemLog(entries); }
public ISystemLog save(DateTime dateTime,entry); try { getDomainFactory().save(domainObject); } catch (StaleObjectException e) { return null; } return SystemLogVoAssembler.create(domainObject); }
@SuppressWarnings("unchecked") public SystemLogVoCollection getEntries(String sessionId) { if(sessionId == null || sessionId.trim().length() == 0) return new SystemLogVoCollection(); DomainFactory factory = getDomainFactory(); String hql = " from SystemLog sl where sl.sessionId = '" + sessionId + "' order by sl.id desc"; List entries = factory.find(hql); return SystemLogVoAssembler.createSystemLogVoCollectionFromSystemLog(entries); }
public SystemLogVo getEntry(Integer eventId) { return SystemLogVoAssembler.create((SystemLog)getDomainFactory().getDomainObject(SystemLog.class,eventId)); }
public SystemLogVo getEntry(Integer eventId) { return SystemLogVoAssembler.create((SystemLog)getDomainFactory().getDomainObject(SystemLog.class,eventId)); }
public SystemLogVo getEntry(Integer eventId) { return SystemLogVoAssembler.create((SystemLog)getDomainFactory().getDomainObject(SystemLog.class,eventId)); }
ims.admin.vo.domain.SystemReportVoAssembler的实例源码
/** * listSystemReports */ @SuppressWarnings("rawtypes") public ims.admin.vo.SystemReportVoCollection listSystemReports() { DomainFactory factory = getDomainFactory(); String hqlString = "from ReportBo as rep where rep.imsId is not null order by rep.reportName"; List reports = factory.find(hqlString); return SystemReportVoAssembler.createSystemReportVoCollectionFromreportBo(reports); }
public ims.admin.vo.SystemReportVoCollection listReports(Boolean systemReportsOnly,String reportName) { DomainFactory factory = getDomainFactory(); ArrayList<String> markers = new ArrayList<String>(); ArrayList<Object> values = new ArrayList<Object>(); StringBuffer hql = new StringBuffer(); hql.append(" FROM ReportBo AS rep "); if (Boolean.TRUE.equals(systemReportsOnly) || reportName != null) { hql.append(" WHERE "); } if (Boolean.TRUE.equals(systemReportsOnly)) { hql.append("rep.imsId IS NOT NULL "); } if (reportName != null) { hql.append(" AND UPPER(rep.reportName) like :reportName "); markers.add("reportName"); values.add("%" + reportName.toupperCase() + "%"); } hql.append(" order by UPPER(rep.reportName) asc"); return SystemReportVoAssembler.createSystemReportVoCollectionFromreportBo(factory.find(hql.toString(),markers,values)); }
public ims.admin.vo.SystemReportVo saveReport(SystemReportVo report) throws ims.domain.exceptions.StaleObjectException { if (report == null) throw new CodingRuntimeException("Cannot save null Report"); if (!report.isValidated()) throw new DomainRuntimeException("SystemReportVo Not Validated."); DomainFactory factory = getDomainFactory(); ReportBo doReport = SystemReportVoAssembler.extractReportBo(factory,report); factory.save(doReport); return SystemReportVoAssembler.create(doReport); }
public SystemReportVo getReport(ReportBoRefVo reportRef) { if (reportRef == null) throw new CodingRuntimeException("Cannot get Report on null Id."); return SystemReportVoAssembler.create((ReportBo) getDomainFactory().getDomainObject(ReportBo.class,reportRef.getID_ReportBo())); }
/** * listSystemReports */ @SuppressWarnings("rawtypes") public ims.admin.vo.SystemReportVoCollection listSystemReports() { DomainFactory factory = getDomainFactory(); String hqlString = "from ReportBo as rep where rep.imsId is not null order by rep.reportName"; List reports = factory.find(hqlString); return SystemReportVoAssembler.createSystemReportVoCollectionFromreportBo(reports); }
public ims.admin.vo.SystemReportVoCollection listReports(Boolean systemReportsOnly,values)); }
public ims.admin.vo.SystemReportVo saveReport(SystemReportVo report) throws ims.domain.exceptions.StaleObjectException { if (report == null) throw new CodingRuntimeException("Cannot save null Report"); if (!report.isValidated()) throw new DomainRuntimeException("SystemReportVo Not Validated."); DomainFactory factory = getDomainFactory(); ReportBo doReport = SystemReportVoAssembler.extractReportBo(factory,report); factory.save(doReport); return SystemReportVoAssembler.create(doReport); }
public SystemReportVo getReport(ReportBoRefVo reportRef) { if (reportRef == null) throw new CodingRuntimeException("Cannot get Report on null Id."); return SystemReportVoAssembler.create((ReportBo) getDomainFactory().getDomainObject(ReportBo.class,reportRef.getID_ReportBo())); }
/** * listSystemReports */ @SuppressWarnings("rawtypes") public ims.admin.vo.SystemReportVoCollection listSystemReports() { DomainFactory factory = getDomainFactory(); String hqlString = "from ReportBo as rep where rep.imsId is not null order by rep.reportName"; List reports = factory.find(hqlString); return SystemReportVoAssembler.createSystemReportVoCollectionFromreportBo(reports); }
public ims.admin.vo.SystemReportVoCollection listReports(Boolean systemReportsOnly,values)); }
public ims.admin.vo.SystemReportVo saveReport(SystemReportVo report) throws ims.domain.exceptions.StaleObjectException { if (report == null) throw new CodingRuntimeException("Cannot save null Report"); if (!report.isValidated()) throw new DomainRuntimeException("SystemReportVo Not Validated."); DomainFactory factory = getDomainFactory(); ReportBo doReport = SystemReportVoAssembler.extractReportBo(factory,report); factory.save(doReport); return SystemReportVoAssembler.create(doReport); }
public SystemReportVo getReport(ReportBoRefVo reportRef) { if (reportRef == null) throw new CodingRuntimeException("Cannot get Report on null Id."); return SystemReportVoAssembler.create((ReportBo) getDomainFactory().getDomainObject(ReportBo.class,reportRef.getID_ReportBo())); }
关于ims.clinical.vo.domain.SystemReviewVoAssembler的实例源码和isempty源码的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于ims.admin.vo.domain.ServiceVoLiteVoAssembler的实例源码、ims.admin.vo.domain.SystemJobVoAssembler的实例源码、ims.admin.vo.domain.SystemLogVoAssembler的实例源码、ims.admin.vo.domain.SystemReportVoAssembler的实例源码的相关知识,请在本站寻找。
本文标签: