Produced by Araxis Merge on 6/9/2017 3:50:35 PM Eastern Daylight 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 | Fri Jun 9 19:50:35 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-migration\src\main\java\gov\va\med\vler\nwhin\vap\migration | PatientDocumentDAO.java | Fri Apr 21 20:03:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 52 |
| 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 | package go v.va.med.v ler.nwhin. vap.migrat ion; | |||||
| 2 | ||||||
| 3 | import gov .va.med.nh in.vap.pip .data.Pati entDocumen t; | |||||
| 4 | import gov .va.med.nh in.vap.pip .data.Pati entDocumen tType; | |||||
| 5 | ||||||
| 6 | import jav ax.persist ence.Entit yManager; | |||||
| 7 | import jav ax.persist ence.Persi stenceCont ext; | |||||
| 8 | ||||||
| 9 | import org .apache.co mmons.logg ing.Log; | |||||
| 10 | import org .apache.co mmons.logg ing.LogFac tory; | |||||
| 11 | import org .springfra mework.tra nsaction.a nnotation. Transactio nal; | |||||
| 12 | ||||||
| 13 | /** | |||||
| 14 | * Store P atient Doc ument | |||||
| 15 | * | |||||
| 16 | * @author Asha Amri traj | |||||
| 17 | * | |||||
| 18 | */ | |||||
| 19 | ||||||
| 20 | @Transacti onal | |||||
| 21 | public cla ss Patient DocumentDA O { | |||||
| 22 | ||||||
| 23 | pr ivate stat ic final L og LOG = L ogFactory. getLog(Pat ientDocume ntDAO.clas s); | |||||
| 24 | ||||||
| 25 | @P ersistence Context(na me = "nwhi n_vap_migr ation") | |||||
| 26 | pr ivate Enti tyManager entityMana ger; | |||||
| 27 | ||||||
| 28 | pu blic void storePatie ntDocument (final Pat ientDocume nt patient Document, | |||||
| 29 | final long conse ntDirectiv eId, final int recor dNumber, | |||||
| 30 | final int record Size) { | |||||
| 31 | try { | |||||
| 32 | Patien tDocumentT ype patien tDocumentT ype = pati entDocumen t | |||||
| 33 | .getPatien tDocumentT ype(); | |||||
| 34 | if (pa tientDocum entType != null) { | |||||
| 35 | patientD ocumentTyp e = this.e ntityManag er.getRefe rence( | |||||
| 36 | pa tientDocum entType.ge tClass(), | |||||
| 37 | pa tientDocum entType.ge tDocumentT ypeId()); | |||||
| 38 | patientD ocument.se tPatientDo cumentType (patientDo cumentType ); | |||||
| 39 | } | |||||
| 40 | this.e ntityManag er.persist (patientDo cument); | |||||
| 41 | } ca tch (final Exception ex) { | |||||
| 42 | Patien tDocumentD AO.LOG | |||||
| 43 | .error("Er ror Occure d when Pro cessing Re cord " | |||||
| 44 | + co nsentDirec tiveId + " : " + reco rdNumber + " of " | |||||
| 45 | + +r ecordSize) ; | |||||
| 46 | Patien tDocumentD AO.LOG.err or("Except ion Messag e: " | |||||
| 47 | + ex.getMe ssage()); | |||||
| 48 | Patien tDocumentD AO.LOG.err or("Rollin g back tra nsaction") ; | |||||
| 49 | } | |||||
| 50 | } | |||||
| 51 | ||||||
| 52 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.