6. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:08 AM 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.

6.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\common Facility.java Wed May 29 15:26:30 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\common Facility.java Mon Jun 10 19:19:20 2019 UTC

6.2 Comparison summary

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

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

6.4 Active regular expressions

No regular expressions were active.

6.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.c cht.model. common;
  5  
  6   import jav ax.persist ence.Colum n;
  7   import jav ax.persist ence.Entit y;
  8   import jav ax.persist ence.Gener atedValue;
  9   import jav ax.persist ence.Id;
  10   import jav ax.persist ence.JoinC olumn;
  11   import jav ax.persist ence.ManyT oOne;
  12   import jav ax.persist ence.Table ;
  13   import jav ax.persist ence.Trans ient;
  14  
  15   import gov .va.med.fw .model.loo kup.Lookup ;
  16   import gov .va.med.fw .util.Stri ngUtils;
  17  
  18   /**
  19    * @author   DNS
  20    *
  21    */
  22   @Entity
  23   @Table(sch ema="dbo",  name="Fac ilities")
  24   public cla ss Facilit y implemen ts Lookup,  Comparabl e<Facility > {
  25  
  26           pr ivate stat ic final l ong serial VersionUID  = 3691312 1692796958 41L;
  27  
  28           pu blic stati c final Fa cility ALL _FACILITIE S = new Fa cility("Al l Faciliti es");
  29           
  30           pr ivate Stri ng name;
  31           pr ivate Visn  visn;
  32           pr ivate Stri ng station Number;   
  33           pr ivate int  id;
  34           
  35           pu blic Facil ity() {
  36                    supe r();
  37           }
  38           
  39           pr ivate Faci lity(Strin g name) {
  40                    supe r();
  41                    this .name = na me;
  42           }
  43           
  44           @I d
  45           @G eneratedVa lue(strate gy = javax .persisten ce.Generat ionType.ID ENTITY)
  46           @C olumn(name  = "ID", u nique = tr ue, nullab le = false )
  47           pu blic int g etId() {
  48                    retu rn id;
  49           }
  50  
  51           pu blic void  setId(int  id) {
  52                    this .id = id;
  53           }
  54  
  55           @C olumn(name  = "Facili ty_Name",  length = 5 0)
  56           pu blic Strin g getName( ) {
  57                    retu rn name;
  58           }
  59  
  60           pu blic void  setName(St ring name)  {
  61                    this .name = na me;
  62           }
  63  
  64           @T ransient
  65           pu blic Strin g getCode( ) {
  66                    retu rn station Number;
  67           }
  68           
  69           @M anyToOne
  70       @JoinC olumn(name ="VISN_ID" )
  71           pu blic Visn  getVisn()  {
  72                    retu rn visn;
  73           }
  74  
  75           pu blic void  setVisn(Vi sn visn) {
  76                    this .visn = vi sn;
  77           }
  78  
  79           @C olumn(name  = "Facili ty_ID", le ngth = 50)
  80           pu blic Strin g getStati onNumber()  {
  81                    retu rn station Number;
  82           }
  83  
  84           pu blic void  setStation Number(Str ing statio nNumber) {
  85                    this .stationNu mber = sta tionNumber ;
  86           }
  87  
  88           @T ransient
  89           pu blic Strin g getDescr iption() {
  90                    // T ODO: IMPLE MENT
  91                    Stri ng desc =  visn == nu ll ? "" :  visn.getNa me().trim( );
  92                    if ( StringUtil s.isNotEmp ty(station Number)) {
  93                             desc =  desc + "  Facility "  + station Number;
  94                    }
  95                    desc  = desc +  " " + name ;
  96                    retu rn desc.tr im();
  97           }
  98  
  99           @T ransient
  100           pr ivate Inte ger getVis nId() {
  101                    retu rn visn ==  null ? 0  : visn.get Id();
  102           }
  103  
  104           pu blic int c ompareTo(F acility o)  {
  105                    
  106                    if ( o == null)
  107                             return  0;
  108                    /* R elies on t he fact th at the IDs  in the DB  for each  VISN align  with the  VISN numbe r - CPB */
  109                    
  110                    int  c = getVis nId().comp areTo(o.ge tVisnId()) ;
  111                    if ( c == 0) {
  112                             return  (stationN umber + na me).compar eTo(o.stat ionNumber  + o.name);
  113                    } el se {
  114                             return  c;
  115                    }
  116           }
  117  
  118           pu blic Strin g toString () {
  119                    retu rn getDesc ription();
  120           }
  121  
  122   }