Produced by Araxis Merge on 11/14/2017 6:57:19 AM Central 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\dao\impl | SiteBalanceNewPreparedStatementSetter.java | Thu Nov 9 14:19:50 2017 UTC |
| 2 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\dao\impl | SiteBalanceNewPreparedStatementSetter.java | Tue Nov 14 12:25:45 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 78 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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.bal.S iteBalance ; | |
| 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 CBSSite Trans tabl e. | |
| 15 | * | |
| 16 | * @author DN S BROWNL | |
| 17 | */ | |
| 18 | public cla ss SiteBal anceNewPre paredState mentSetter implement s ItemPrep aredStatem entSetter< SiteBalanc e> { | |
| 19 | ||
| 20 | pr ivate fina l Logger s etterLogge r; | |
| 21 | ||
| 22 | pu blic SiteB alanceNewP reparedSta tementSett er() { | |
| 23 | sett erLogger = Logger.ge tLogger(th is.getClas s().getCan onicalName ()); | |
| 24 | } | |
| 25 | ||
| 26 | @O verride | |
| 27 | pu blic void setValues( SiteBalanc e siteBala nce, Prepa redStateme nt ps) thr ows SQLExc eption { | |
| 28 | ||
| 29 | sett erLogger.d ebug("Sett ing values to insert SiteBal r ow"); | |
| 30 | ||
| 31 | ps.s etLong(1, siteBalanc e.getPatie ntDfn()); | |
| 32 | ps.s etString(2 , siteBala nce.getSta tionNum()) ; | |
| 33 | ps.s etString(3 , siteBala nce.getOld AcctNum()) ; | |
| 34 | ps.s etDouble(4 , siteBala nce.getBal ance()); | |
| 35 | ps.s etDate(5, new Date(s iteBalance .getOldest BillDate() .getTime() )); | |
| 36 | ps.s etDate(6, new Date(s iteBalance .getProces sDate().ge tTime())); | |
| 37 | ps.s etLong(7, siteBalanc e.getSiteB alRec().ge tId()); | |
| 38 | } | |
| 39 | ||
| 40 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.