4. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/7/2017 12:14:05 PM 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.

4.1 Files compared

# Location File Last Modified
1 cpss.zip\cpss\src\main\java\gov\va\cpss\dao\impl PSDetailsItemPreparedStatementSetter.java Wed Feb 1 21:07:28 2017 UTC
2 cpss.zip\cpss\src\main\java\gov\va\cpss\dao\impl PSDetailsItemPreparedStatementSetter.java Fri Feb 3 20:29:33 2017 UTC

4.2 Comparison summary

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

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

4.4 Active regular expressions

No regular expressions were active.

4.5 Comparison detail

  1   package go v.va.cpss. dao.impl;
  2  
  3   import jav a.sql.Date ;
  4   import jav a.sql.Prep aredStatem ent;
  5   import jav a.sql.SQLE xception;
  6  
  7   import org .apache.lo g4j.Logger ;
  8   import org .springfra mework.bat ch.item.da tabase.Ite mPreparedS tatementSe tter;
  9  
  10   import gov .va.cpss.m odel.fps.P SDetails;
  11  
  12   /**
  13    * Custom  ItemPrepar edStatemen tSetter fo r JdbcBatc hItemWrite r to set v alues in
  14    * prepare d statemen t for batc h data ins ert into t he PSDetai ls table.
  15    * 
  16    * @author   DN S      P II
  17    */
  18   public cla ss PSDetai lsItemPrep aredStatem entSetter  implements  ItemPrepa redStateme ntSetter<P SDetails>  {
  19  
  20           pr ivate fina l Logger p rocessorLo gger;
  21  
  22           pu blic PSDet ailsItemPr eparedStat ementSette r() {
  23                    proc essorLogge r = Logger .getLogger (this.getC lass().get CanonicalN ame());
  24           }
  25  
  26           @O verride
  27           pu blic void  setValues( PSDetails  arg0, Prep aredStatem ent arg1)  throws SQL Exception  {
  28  
  29                    proc essorLogge r.info("Se tting valu es to inse rt PD row" );
  30  
  31                    arg1 .setLong(1 , arg0.get PsPatientI d());
  32                    // N ull is all owed.
  33                    if ( arg0.getDa tePosted()  == null)  {
  34                             arg1.s etDate(2,  null);
  35                    } el se {
  36                             arg1.s etDate(2,  new Date(a rg0.getDat ePosted(). getTime()) );
  37                    }
  38                    arg1 .setString (3, arg0.g etTransDes c());
  39                    arg1 .setDouble (4, arg0.g etTransAmo unt().getD ouble());
  40                    arg1 .setString (5, arg0.g etTransAmo unt().getC obol());
  41                    arg1 .setString (6, arg0.g etReferenc eNum());
  42                    arg1 .setString (7, arg0.g etIcnNumbe r());
  43                    arg1 .setInt(8,  arg0.getS eqNum());
  44           
  45           }
  46  
  47   }