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 | BinaryDAO.java | Thu Feb 22 14:27:18 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\dao | BinaryDAO.java | Tue Feb 27 14:29:53 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 112 |
| 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 gov .va.med.nh in.adapter .subscript ion.web.en tity.Binar y; | |
| 9 | import jav a.math.Big Decimal; | |
| 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 | ||
| 17 | /** | |
| 18 | * | |
| 19 | * @author DN S VAZQUD | |
| 20 | */ | |
| 21 | @Named("Bi naryDAO") | |
| 22 | @Applicati onScoped() | |
| 23 | public cla ss BinaryD AO | |
| 24 | { | |
| 25 | @Persi stenceCont ext | |
| 26 | privat e EntityMa nager enti tyManager; | |
| 27 | ||
| 28 | public void stor e(Binary b inary) | |
| 29 | { | |
| 30 | en tityManage r.persist( binary); | |
| 31 | } | |
| 32 | ||
| 33 | public void upda te(Binary binary) | |
| 34 | { | |
| 35 | en tityManage r.merge(bi nary); | |
| 36 | } | |
| 37 | ||
| 38 | public Binary fi ndByBinary ID(BigDeci mal binary ID) | |
| 39 | { | |
| 40 | re turn entit yManager.f ind(Binary .class, bi naryID); | |
| 41 | } | |
| 42 | ||
| 43 | public Binary fi ndByResour ceID(Strin g resource ID) | |
| 44 | { | |
| 45 | Bi nary ret; | |
| 46 | Qu ery query = entityMa nager.crea teNamedQue ry("Binary .findByRes ourceId"); | |
| 47 | qu ery.setPar ameter("re sourceId", resourceI D); | |
| 48 | tr y { | |
| 49 | ret = (B inary) que ry.getSing leResult() ; | |
| 50 | } | |
| 51 | ca tch (NoRes ultExcepti on nre) { | |
| 52 | ret = nu ll; | |
| 53 | } | |
| 54 | ||
| 55 | re turn ret; | |
| 56 | } | |
| 57 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.