4272. EPMO Open Source Coordination Office Redaction File Detail Report

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

4272.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:25 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-web\src\main\java\gov\va\nvap\web\dao FacilityDAO.java Fri Apr 21 20:03:30 2017 UTC

4272.2 Comparison summary

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

4272.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

4272.4 Active regular expressions

No regular expressions were active.

4272.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. web.dao;
        7  
        8   import gov .va.nvap.w eb.facilit y.Facility ;
        9   import jav a.util.Arr ayList;
        10   import jav a.util.Arr ays;
        11   import jav a.util.Lis t;
        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  Johann So nnenberg
        20    */
        21   public cla ss Facilit yDAO {
        22  
        23       @Persi stenceCont ext
        24       privat e EntityMa nager em;
        25  
        26       public  void setE ntityManag er(EntityM anager ent ityManager ) {
        27           th is.em = en tityManage r;
        28       }
        29       
        30       public  List<Faci lity> find All() {
        31           tr y {
        32                final Qu ery q = th is.em.crea teNamedQue ry("Facili ty.findAll ");
        33                return ( List<Facil ity>) q.ge tResultLis t();
        34           }  catch (fin al NoResul tException  nre) {
        35                return n ew ArrayLi st<Facilit y>();
        36           }
        37       }
        38       
        39       public  List<Faci lity> find AllSortByV isn() {
        40           tr y {
        41                final Qu ery q = th is.em.crea teNamedQue ry("Facili ty.findAll SortByVisn ");
        42                return ( List<Facil ity>) q.ge tResultLis t();
        43           }  catch (fin al NoResul tException  nre) {
        44                return n ew ArrayLi st<Facilit y>();
        45           }
        46       }
        47       
        48       public  Facility  findByStat ionNumber( String sta tionNumber ) {
        49           tr y {
        50                final Qu ery q = th is.em.crea teNamedQue ry("Facili ty.findByF acilitySta tion");
        51                q.setPar ameter("fa cilityStat ion", stat ionNumber) ;
        52                return ( Facility)  q.getSingl eResult();
        53           }  catch (fin al NoResul tException  nre) {
        54                return n ull;
        55           }
        56       }
        57  
        58       public  List<Faci lity> find ByStationN umbers(Str ing statio nNumbers)  {
        59           tr y {
        60                final Qu ery q = th is.em.crea teNamedQue ry("Facili ty.findByF acilitySta tions");
        61                List<Str ing> items  = Arrays. asList(sta tionNumber s.split(", "));
        62                q.setPar ameter("fa cilityStat ions", ite ms);
        63                return ( List<Facil ity>) q.ge tResultLis t();
        64           }  catch (fin al NoResul tException  nre) {
        65                return n ull;
        66           }
        67       }
        68   }