4139. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:17 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.

4139.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:17 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-svc-consent-mgmt\src\main\java\gov\va\nvap\svc\consentmgmt\stub\dao DescriptorDAO.java Fri Apr 21 20:03:30 2017 UTC

4139.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 51
Removed 0 0

4139.3 Comparison options

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

4139.4 Active regular expressions

No regular expressions were active.

4139.5 Comparison detail

        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.nvap. svc.consen tmgmt.stub .dao;
        7  
        8   import gov .va.nvap.s vc.consent mgmt.stub. data.Descr iptor;
        9   import jav a.util.Arr ayList;
        10   import jav a.util.Lis t;
        11   import jav ax.persist ence.Entit yManager;
        12   import jav ax.persist ence.Persi stenceCont ext;
        13   import jav ax.persist ence.Query ;
        14   import org .springfra mework.tra nsaction.a nnotation. Transactio nal;
        15  
        16   /**
        17    *
        18    * @author  Johann So nnenberg
        19    */
        20   public cla ss Descrip torDAO {
        21       
        22       @Persi stenceCont ext
        23       privat e EntityMa nager em;
        24  
        25       public  void setE ntityManag er(EntityM anager ent ityManager ) {
        26           th is.em = en tityManage r;
        27       }
        28       
        29       @Trans actional
        30       public  List<Desc riptor> ge tDescripto rsByName(S tring name s) {
        31           tr y {
        32                final Qu ery q = th is.em.crea teQuery("S ELECT d FR OM Descrip tor d WHER E d.name I N (:names) ");
        33                q.setPar ameter("na mes", name s);
        34                
        35                return ( List<Descr iptor>) q. getResultL ist();
        36           }  catch (fin al Excepti on e) {
        37                return n ew ArrayLi st<Descrip tor>();
        38           }
        39       }
        40       
        41       @Trans actional
        42       public  List<Desc riptor> ge tAll() {
        43           tr y {
        44                final Qu ery q = th is.em.crea teQuery("S ELECT d FR OM Descrip tor d");
        45                
        46                return ( List<Descr iptor>) q. getResultL ist();
        47           }  catch (fin al Excepti on e) {
        48                return n ew ArrayLi st<Descrip tor>();
        49           }
        50       }
        51   }