Produced by Araxis Merge on 3/1/2018 12:13:17 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\dao | DocumentReferenceDAO.java | Thu Feb 22 14:27:20 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\dao | DocumentReferenceDAO.java | Tue Feb 27 14:29:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 144 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |
| 2 | * To chan ge this li cense head er, choose License H eaders in Project Pr operties. | |
| 3 | * To chan ge this te mplate fil e, choose Tools | Te mplates | |
| 4 | * and ope n the temp late in th e editor. | |
| 5 | */ | |
| 6 | package go v.va.med.n hin.adapte r.subscrip tion.web.d ao; | |
| 7 | ||
| 8 | import jav a.math.Big Decimal; | |
| 9 | import jav a.util.Dat e; | |
| 10 | import jav ax.enterpr ise.contex t.Applicat ionScoped; | |
| 11 | import jav ax.inject. Named; | |
| 12 | import jav ax.persist ence.Entit yManager; | |
| 13 | import jav ax.persist ence.NoRes ultExcepti on; | |
| 14 | import jav ax.persist ence.Persi stenceCont ext; | |
| 15 | import jav ax.persist ence.Query ; | |
| 16 | import gov .va.med.nh in.adapter .subscript ion.web.en tity.Docum entReferen ce; | |
| 17 | import jav a.util.Lis t; | |
| 18 | ||
| 19 | /** | |
| 20 | * | |
| 21 | * @author DN S VAZQUD | |
| 22 | */ | |
| 23 | @Named("Do cumentRefe renceDAO") | |
| 24 | @Applicati onScoped() | |
| 25 | public cla ss Documen tReference DAO | |
| 26 | { | |
| 27 | @Persi stenceCont ext | |
| 28 | privat e EntityMa nager enti tyManager; | |
| 29 | ||
| 30 | public void stor e(Document Reference documentRe ference) | |
| 31 | { | |
| 32 | en tityManage r.persist( documentRe ference); | |
| 33 | } | |
| 34 | ||
| 35 | public void upda te(Documen tReference documentR eference) | |
| 36 | { | |
| 37 | en tityManage r.merge(do cumentRefe rence); | |
| 38 | } | |
| 39 | ||
| 40 | public DocumentR eference f indByDocum entReferen ceID(BigDe cimal docu mentRefere nceID) | |
| 41 | { | |
| 42 | re turn entit yManager.f ind(Docume ntReferenc e.class, d ocumentRef erenceID); | |
| 43 | } | |
| 44 | ||
| 45 | public DocumentR eference f indByResou rceID(Stri ng resourc eID) | |
| 46 | { | |
| 47 | Do cumentRefe rence ret; | |
| 48 | Qu ery query = entityMa nager.crea teNamedQue ry("Docume ntReferenc e.findByRe sourceId") ; | |
| 49 | qu ery.setPar ameter("re sourceId", resourceI D); | |
| 50 | tr y { | |
| 51 | ret = (D ocumentRef erence) qu ery.getSin gleResult( ); | |
| 52 | } | |
| 53 | ca tch (NoRes ultExcepti on nre) { | |
| 54 | ret = nu ll; | |
| 55 | } | |
| 56 | ||
| 57 | re turn ret; | |
| 58 | } | |
| 59 | ||
| 60 | public List<Docu mentRefere nce> findB yPatientID AndLastUpd atedTime(S tring pati entID, | |
| 61 | D ate lastUp datedTime) | |
| 62 | { | |
| 63 | Qu ery query = entityMa nager.crea teNamedQue ry("Docume ntReferenc e.findByPa tientIdAnd LastUpdate dTime"); | |
| 64 | qu ery.setPar ameter("pa tientId", patientID) ; | |
| 65 | qu ery.setPar ameter("la stUpdatedT ime", last UpdatedTim e); | |
| 66 | re turn query .getResult List(); | |
| 67 | } | |
| 68 | ||
| 69 | public void setE ntityManag er(EntityM anager ent ityManager ) | |
| 70 | { | |
| 71 | th is.entityM anager = e ntityManag er; | |
| 72 | } | |
| 73 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.