Produced by Araxis Merge on 12/13/2018 10:35:25 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\batchprocess | AbstractDataFileListenerProcess.java | Fri Dec 7 17:36:22 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\batchprocess | AbstractDataFileListenerProcess.java | Wed Dec 12 22:26:41 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 158 |
| 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 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2005 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | ||
| 5 | package go v.va.med.f w.batchpro cess; | |
| 6 | ||
| 7 | import jav a.util.Lis t; | |
| 8 | ||
| 9 | import gov .va.med.fw .io.parser .FileParse rListener; | |
| 10 | ||
| 11 | /** | |
| 12 | * Special ization of AbstractD ataFilePro cess that allows for record pr ocessing | |
| 13 | * in vari able amoun ts at a ti me, rather than the entire Lis t of data at once. | |
| 14 | * The imp lementatio n of accep tData dete rmines whe n the List of data s hould be | |
| 15 | * process ed. | |
| 16 | * | |
| 17 | * Created Mar 7, 20 06 1:37:28 PM | |
| 18 | * | |
| 19 | * DNS | |
| 20 | */ | |
| 21 | public abs tract clas s Abstract DataFileLi stenerProc ess extend s Abstract DataFilePr ocess impl ements | |
| 22 | File ParserList ener { | |
| 23 | ||
| 24 | pr otected Da taProcessE xecutionCo ntext crea teDataProc essExecuti onContext( ) { | |
| 25 | Data FileProces sExecution Context co ntext = (D ataFilePro cessExecut ionContext ) super | |
| 26 | .createD ataProcess ExecutionC ontext(); | |
| 27 | cont ext.setFil eParserLis tener(this ); | |
| 28 | retu rn context ; | |
| 29 | } | |
| 30 | ||
| 31 | /* * from Fil eParserLis tener inte rface so m ust be pub lic */ | |
| 32 | pu blic abstr act boolea n acceptDa ta(DataFil eProcessEx ecutionCon text conte xt, | |
| 33 | String nextRowRa wData, Lis t beans); | |
| 34 | ||
| 35 | pu blic boole an isInter rupted(Dat aFileProce ssExecutio nContext c ontext) { | |
| 36 | retu rn super.i sInterrupt ed(context ); | |
| 37 | } | |
| 38 | ||
| 39 | pr otected fi nal void p rocessData (DataProce ssExecutio nContext c ontext, Li st acquire dData) { | |
| 40 | if ( acquiredDa ta == null || acquir edData.isE mpty()) | |
| 41 | return ; | |
| 42 | ||
| 43 | proc essData((D ataFilePro cessExecut ionContext ) context, acquiredD ata); | |
| 44 | } | |
| 45 | ||
| 46 | /* * from Fil eParserLis tener inte rface so m ust be pub lic */ | |
| 47 | pu blic final void proc essData(Da taFileProc essExecuti onContext context, L ist acquir edData) { | |
| 48 | proc essDataRec ords(conte xt, acquir edData); | |
| 49 | ||
| 50 | if ( shouldUpda teJobResul t(context) ) | |
| 51 | this.u pdateJobRe sult(conte xt); | |
| 52 | } | |
| 53 | ||
| 54 | pu blic abstr act void p rocessData Records(Da taFileProc essExecuti onContext context, | |
| 55 | List a cquiredDat a); | |
| 56 | ||
| 57 | /* * | |
| 58 | * from File ParserList ener inter face so mu st be publ ic - not m arked fina l so | |
| 59 | * can be ov erridden | |
| 60 | * / | |
| 61 | pu blic boole an beanCre ationFailu re(DataFil eProcessEx ecutionCon text conte xt, | |
| 62 | String nextRowRa wData, Exc eption e) { | |
| 63 | cont ext.getPro cessStatis tics().inc rementNumb erOfErrorR ecords(); | |
| 64 | cont ext.getExc eptionData ().add(con text.getCu rrentRowRa wData()); | |
| 65 | retu rn true; | |
| 66 | } | |
| 67 | ||
| 68 | /* * | |
| 69 | * from File ParserList ener inter face so mu st be publ ic - not m arked fina l so | |
| 70 | * can be ov erridden | |
| 71 | * / | |
| 72 | pu blic void beanCreati onSuccess( DataFilePr ocessExecu tionContex t context, String ne xtRowRawDa ta) { | |
| 73 | // d efault is no-op sinc e creation does not always ind icate comp lete | |
| 74 | // s uccess | |
| 75 | } | |
| 76 | ||
| 77 | pr otected bo olean shou ldUpdateJo bResult(Da taFileProc essExecuti onContext context) { | |
| 78 | retu rn context .getProces sStatistic s().isTota lNumberMod (DEFAULT_J OB_RESULT_ UPDATE_INT ERVAL); | |
| 79 | } | |
| 80 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.