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 | CBSStmtReplacedItemPreparedStatementSetter.java | Thu Nov 9 14:19:50 2017 UTC |
| 2 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\dao\impl | CBSStmtReplacedItemPreparedStatementSetter.java | Tue Nov 14 12:25:39 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 88 |
| 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.Prep aredStatem ent; | |
| 4 | import jav a.sql.SQLE xception; | |
| 5 | ||
| 6 | import org .apache.lo g4j.Logger ; | |
| 7 | import org .springfra mework.bat ch.item.da tabase.Ite mPreparedS tatementSe tter; | |
| 8 | ||
| 9 | import gov .va.cpss.m odel.Proce ssStatus; | |
| 10 | import gov .va.cpss.s ervice.Cbs Service; | |
| 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 to update a C BSStmt to replaced s tatus. | |
| 15 | * | |
| 16 | * @author DN S BROWNL | |
| 17 | */ | |
| 18 | public cla ss CBSStmt ReplacedIt emPrepared StatementS etter impl ements Ite mPreparedS tatementSe tter<Long> { | |
| 19 | ||
| 20 | pr ivate fina l Logger s etterLogge r; | |
| 21 | ||
| 22 | pr ivate CbsS ervice cbs Service; | |
| 23 | ||
| 24 | pu blic CBSSt mtReplaced ItemPrepar edStatemen tSetter() { | |
| 25 | sett erLogger = Logger.ge tLogger(th is.getClas s().getCan onicalName ()); | |
| 26 | } | |
| 27 | ||
| 28 | pu blic CbsSe rvice getC bsService( ) { | |
| 29 | retu rn cbsServ ice; | |
| 30 | } | |
| 31 | ||
| 32 | pu blic void setCbsServ ice(CbsSer vice cbsSe rvice) { | |
| 33 | this .cbsServic e = cbsSer vice; | |
| 34 | } | |
| 35 | ||
| 36 | @O verride | |
| 37 | pu blic void setValues( Long arg0, PreparedS tatement a rg1) throw s SQLExcep tion { | |
| 38 | ||
| 39 | sett erLogger.d ebug("Sett ing values to update CBSStmt s tatus to r eplaced ro w"); | |
| 40 | ||
| 41 | arg1 .setInt(1, cbsServic e.getProce ssStatusDA O().getSta tusFromEnu m(ProcessS tatus.Stat us.REPLACE D)); | |
| 42 | arg1 .setLong(2 , arg0); | |
| 43 | } | |
| 44 | ||
| 45 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.