136. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/8/2018 10:11:37 AM Eastern Standard 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.

136.1 Files compared

# Location File Last Modified
1 PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\dao\impl EplDrugDrugInteractionDaoImpl.java Fri Jan 12 15:42:46 2018 UTC
2 PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\dao\impl EplDrugDrugInteractionDaoImpl.java Tue Mar 6 23:53:15 2018 UTC

136.2 Comparison summary

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

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

136.4 Active regular expressions

No regular expressions were active.

136.5 Comparison detail

  1   package go v.va.med.p harmacy.pe ps.domain. common.dao .impl;
  2  
  3  
  4   import gov .va.med.ph armacy.pep s.domain.c ommon.dao. EplDrugDru gInteracti onDao;
  5   import gov .va.med.ph armacy.pep s.domain.c ommon.mode l.EplDrugD rugInterac tionDo;
  6  
  7   import jav a.util.Lis t;
  8  
  9   import org .hibernate .Query;
  10   import org .hibernate .Session;
  11   import org .hibernate .SessionFa ctory;
  12   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  13   import org .springfra mework.ste reotype.Re pository;
  14  
  15  
  16  
  17   /**
  18    * @author     DNS
  19    *
  20    */
  21   @Repositor y
  22   public cla ss EplDrug DrugIntera ctionDaoIm pl extends  DataAcces sObjectImp l<EplDrugD rugInterac tionDo, Lo ng> implem ents EplDr ugDrugInte ractionDao    {
  23         
  24       @Autow ired
  25       privat e SessionF actory ses sionFactor y;
  26       
  27       public  SessionFa ctory getS essionFact ory() {
  28           re turn sessi onFactory;
  29       }
  30  
  31       /**
  32        * @pa ram sessio nFactory t he session Factory to  set
  33        */
  34       public  void setS essionFact ory(Sessio nFactory s essionFact ory) {
  35           th is.session Factory =  sessionFac tory;
  36       }
  37       
  38       
  39       @Overr ide
  40       public  List<EplD rugDrugInt eractionDo > retrieve () {
  41           re turn retri eveAscendi ng(EplDrug DrugIntera ctionDo.DR UG_INTERAC TION_NAME) ;
  42       }
  43       
  44       
  45       /**
  46        * Fin d By Id
  47        */
  48  
  49       @Overr ide
  50       public  EplDrugDr ugInteract ionDo find ById(Long  id) {
  51           
  52           if (id == nul l){
  53                throw ne w IllegalA rgumentExc eption("Ep lDrugDrugI nteraction  id cannot  be null") ;
  54           }
  55           
  56           Se ssion sess ion = getS essionFact ory().getC urrentSess ion();
  57           
  58           Ep lDrugDrugI nteraction Do eplDrug DrugIntera ction = (E plDrugDrug Interactio nDo) sessi on.get(Epl DrugDrugIn teractionD o.class, i d);
  59           
  60           re turn eplDr ugDrugInte raction;
  61       }
  62  
  63       
  64       @Suppr essWarning s("uncheck ed")
  65       @Overr ide
  66       public  List<EplD rugDrugInt eractionDo > retrieve DrugDrugIn teractions (String in teractionN ame) {
  67                    
  68           Se ssion sess ion = getS essionFact ory().getC urrentSess ion();
  69           Qu ery query  = session. getNamedQu ery("findD rugDrugInt eractionBy Name")
  70              .setString ("interact ionName",  interactio nName);
  71                
  72           Li st<EplDrug DrugIntera ctionDo> d rugInterac tions = qu ery.list() ;
  73           
  74           re turn drugI nteraction s;
  75           
  76       }
  77  
  78       
  79       /**
  80        * Sav e
  81        */
  82       @Overr ide
  83       public  EplDrugDr ugInteract ionDo save (EplDrugDr ugInteract ionDo eplD rugDrugInt eractions)  {
  84           
  85           Ep lDrugDrugI nteraction Do drugInt eractions  = new EplD rugDrugInt eractionDo ();
  86           
  87           Se ssion sess ion = getS essionFact ory().getC urrentSess ion();
  88           
  89           Lo ng id = (L ong) sessi on.save(ep lDrugDrugI nteraction s);
  90           
  91           dr ugInteract ions = fin dById(id);
  92           
  93           re turn drugI nteraction s;
  94       }
  95  
  96       
  97      /**
  98       * Upda te
  99       */
  100       @Overr ide
  101       public  EplDrugDr ugInteract ionDo upda te(EplDrug DrugIntera ctionDo ep lDrugDrugI nteraction s) {
  102           
  103           Se ssion sess ion = getS essionFact ory().getC urrentSess ion();
  104           se ssion.upda te(eplDrug DrugIntera ctions);
  105           re turn eplDr ugDrugInte ractions;
  106       }
  107        
  108  
  109   }
  110       
  111