173. EPMO Open Source Coordination Office Redaction File Detail Report

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

173.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup AbstractLookup.java Wed May 29 15:26:04 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup AbstractLookup.java Mon Jun 10 19:27:47 2019 UTC

173.2 Comparison summary

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

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

173.4 Active regular expressions

No regular expressions were active.

173.5 Comparison detail

  1   package go v.va.med.f w.model.lo okup;
  2  
  3   // Java Cl asses
  4   import jav a.lang.ref lect.Metho d;
  5   import jav a.util.Dat e;
  6  
  7   import jav ax.persist ence.Colum n;
  8   import jav ax.persist ence.Mappe dSuperclas s;
  9   import jav ax.persist ence.Trans ient;
  10   import jav ax.xml.bin d.annotati on.XmlAcce ssType;
  11   import jav ax.xml.bin d.annotati on.XmlAcce ssorType;
  12  
  13   import org .apache.co mmons.lang .builder.E qualsBuild er;
  14   import org .apache.co mmons.lang .builder.H ashCodeBui lder;
  15   import org .apache.co mmons.lang .builder.T oStringBui lder;
  16  
  17   import gov .va.med.fw .model.Abs tractEntit y;
  18   import gov .va.med.fw .util.Inva lidConfigu rationExce ption;
  19  
  20   /**
  21    * @author   DN S
  22    * 
  23    */
  24   @XmlAccess orType(Xml AccessType .FIELD)
  25   @MappedSup erclass
  26   public abs tract clas s Abstract Lookup ext ends Abstr actEntity  implements  Lookup {
  27  
  28           pr ivate stat ic final l ong serial VersionUID  = 8255942 7347546350 21L;
  29  
  30           pr ivate Long  id = new  Long(-1);
  31           pr ivate Stri ng code;
  32           pr ivate Stri ng name;
  33           pr ivate Stri ng descrip tion;
  34           pr ivate Date  startDate  = null;
  35           pr ivate Date  endDate =  null;
  36  
  37           /* *
  38            *  Default c onstructor .
  39            * /
  40           pu blic Abstr actLookup( ) {
  41                    supe r();
  42           }
  43  
  44           /* *
  45            *  Returns t he unique  business c ode for th is object.
  46            *  
  47            *  @return T he unique  business c ode for th is object.
  48            * /
  49           @C olumn(name ="CODE")
  50           pu blic Strin g getCode( ) {
  51                    retu rn this.co de;
  52           }
  53  
  54           @S uppressWar nings("unc hecked")
  55           @T ransient
  56           pu blic Abstr actCode ge tCodeObjec t() {
  57                    Stri ng classNa me = getCl ass().getN ame() + "$ Code";
  58                    try  {
  59                             Class< ? extends  AbstractCo de> clazz  = (Class<?  extends A bstractCod e>) Class
  60                                               .forName(c lassName);
  61                             Method  m = clazz .getMethod ("getByCod e", new Cl ass[] { St ring.class  });
  62                             return  (Abstract Code) m.in voke(this,  new Objec t[] { code  });
  63                    } ca tch (Class NotFoundEx ception e)  {
  64                             throw  new Invali dConfigura tionExcept ion(classN ame
  65                                               + " is not  defined i n the conc rete looku p class");
  66                    } ca tch (NoSuc hMethodExc eption e)  {
  67                             throw  new Invali dConfigura tionExcept ion(classN ame
  68                                               + " does n ot define  getByCode( String) me thod");
  69                    } ca tch (Excep tion e) {
  70                             throw  new Invali dConfigura tionExcept ion(classN ame
  71                                               + " .getBy Code(Strin g) method  can not be  invoked") ;
  72                    }
  73           }
  74  
  75           /* *
  76            *  Sets the  unique bus iness code  for this  object.
  77            *  
  78            *  @param co de
  79            *              The uniq ue busines s code for  this obje ct.
  80            * /
  81           pu blic void  setCode(St ring code)  {
  82                    this .code = co de;
  83           }
  84  
  85           /* *
  86            *  Returns t he unique  business d escription  for this  object.
  87            *  
  88            *  @return T he unique  business d escription  for this  object.
  89            * /
  90           @C olumn(name ="DESCRIPT ION")
  91           pu blic Strin g getDescr iption() {
  92                    retu rn this.de scription;
  93           }
  94  
  95           /* *
  96            *  Sets the  unique bus iness desc ription fo r this obj ect.
  97            *  
  98            *  @param de scription
  99            *              The uniq ue busines s descript ion for th is object.
  100            * /
  101           pu blic void  setDescrip tion(Strin g descript ion) {
  102                    this .descripti on = descr iption;
  103           }
  104  
  105           /* *
  106            *  @return t he name
  107            * /
  108           @C olumn(name ="NAME")
  109           pu blic Strin g getName( ) {
  110                    retu rn name;
  111           }
  112  
  113           /* *
  114            *  @param na me
  115            *              the name  to set
  116            * /
  117           pu blic void  setName(St ring name)  {
  118                    this .name = na me;
  119           }
  120  
  121           /* *
  122            *  Returns t he start d ate when t his object  becomes v alid.
  123            *  
  124            *  @return T he start d ate when t his object  becomes v alid.
  125            * /
  126           @T ransient
  127           pu blic Date  getStartDa te() {
  128                    retu rn this.st artDate;
  129           }
  130  
  131           /* *
  132            *  Sets the  start date  when this  object be comes vali d.
  133            *  
  134            *  @param st artDate
  135            *              The star t date whe n this obj ect become s valid.
  136            * /
  137           pu blic void  setStartDa te(Date st artDate) {
  138                    this .startDate  = startDa te;
  139           }
  140  
  141           /* *
  142            *  Returns t he end dat e when thi s object b ecomes inv alid.
  143            *  
  144            *  @return T he end dat e when thi s object b ecomes inv alid.
  145            * /
  146           @T ransient
  147           pu blic Date  getEndDate () {
  148                    retu rn this.en dDate;
  149           }
  150  
  151           /* *
  152            *  Sets the  end date w hen this o bject beco mes invali d.
  153            *  
  154            *  @param en dDate
  155            *              The end  date when  this objec t becomes  invalid.
  156            * /
  157           pu blic void  setEndDate (Date endD ate) {
  158                    this .endDate =  endDate;
  159           }
  160  
  161           /* *
  162            *  @see gov. va.med.fw. model.Abst ractEntity #hashCode( )
  163            * /
  164           pu blic int h ashCode()  {
  165                    retu rn new Has hCodeBuild er().appen d(this.id) .toHashCod e();
  166           }
  167  
  168           /* *
  169            *  @see gov. va.med.fw. model.Abst ractEntity #equals(ja va.lang.Ob ject)
  170            * /
  171           pu blic boole an equals( Object o)  {
  172                    retu rn ((o ins tanceof Ab stractLook up) && thi s.equals(( AbstractLo okup) o));
  173           }
  174  
  175           /* *
  176            *  @see gov. va.med.fw. model.Abst ractEntity #buildToSt ring(org.a pache.comm ons.lang.b uilder.ToS tringBuild er)
  177            * /
  178           pr otected vo id buildTo String(ToS tringBuild er builder ) {
  179                    buil der.append ("identifi er", this. id).append ("code", t his.code). append("st artDate",
  180                                      this.sta rtDate).ap pend("endD ate", this .endDate). append("na me", this. name).appe nd(
  181                                      "descrip tion", thi s.descript ion);
  182           }
  183  
  184           /* *
  185            *  @see java .lang.Obje ct#finaliz e()
  186            * /
  187           pr otected vo id finaliz e() throws  Throwable  {
  188                    supe r.finalize ();
  189  
  190                    this .setCode(n ull);
  191                    this .setStartD ate(null);
  192                    this .setEndDat e(null);
  193                    this .setDescri ption(null );
  194                    this .setName(n ull);
  195           }
  196  
  197           /* *
  198            *  @param o
  199            *  @return
  200            * /
  201           pr ivate bool ean equals (AbstractL ookup o) {
  202                    retu rn new Equ alsBuilder ().append( this.getCl ass(), o.g etClass()) .append(th is.id,
  203                                      o.id).ap pend(this. code, o.co de).isEqua ls();
  204           }
  205  
  206   }