Produced by Araxis Merge on 12/13/2018 10:35:28 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\report\data | AbstractReportDataService.java | Fri Dec 7 17:36:40 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\report\data | AbstractReportDataService.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 276 |
| 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 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | // Package | |
| 5 | package go v.va.med.f w.report.d ata; | |
| 6 | ||
| 7 | // Java cl asses | |
| 8 | import jav a.util.Map ; | |
| 9 | ||
| 10 | import org .apache.co mmons.lang .Validate; | |
| 11 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
| 12 | import org .springfra mework.bea ns.factory .annotatio n.Qualifie r; | |
| 13 | ||
| 14 | import gov .va.med.fw .report.Re portConfig uration; | |
| 15 | import gov .va.med.fw .report.Re portExcept ion; | |
| 16 | import gov .va.med.fw .report.Re portNameRe solver; | |
| 17 | import gov .va.med.fw .report.Si mpleReport NameResolv er; | |
| 18 | import gov .va.med.fw .service.A bstractCom ponent; | |
| 19 | ||
| 20 | /** | |
| 21 | * | |
| 22 | * | |
| 23 | * Project : Framewor k</br> Cre ated on: 1 1:20:00 AM </br> | |
| 24 | * | |
| 25 | * @author DN S
|
|
| 26 | */ | |
| 27 | public abs tract clas s Abstract ReportData Service ex tends Abst ractCompon ent implem ents | |
| 28 | Repo rtDataServ ice { | |
| 29 | ||
| 30 | /* * | |
| 31 | * An instan ce of seri alVersionU ID | |
| 32 | * / | |
| 33 | pr ivate stat ic final l ong serial VersionUID = -282777 1775513302 070L; | |
| 34 | ||
| 35 | /* * | |
| 36 | * A map con taining al l report d ata daos | |
| 37 | * / | |
| 38 | pr ivate Map reportData DAOs = nul l; | |
| 39 | ||
| 40 | /* * | |
| 41 | * An instan ce of name Resolver | |
| 42 | * / | |
| 43 | @A utowired | |
| 44 | pr ivate Repo rtNameReso lver nameR esolver = null; | |
| 45 | ||
| 46 | /* * | |
| 47 | * A default construct or | |
| 48 | * / | |
| 49 | pu blic Abstr actReportD ataService () { | |
| 50 | supe r(); | |
| 51 | } | |
| 52 | ||
| 53 | /* * | |
| 54 | * @return R eturns the nameResol ver. | |
| 55 | * / | |
| 56 | pu blic Repor tNameResol ver getNam eResolver( ) { | |
| 57 | retu rn nameRes olver; | |
| 58 | } | |
| 59 | ||
| 60 | /* * | |
| 61 | * @param na meResolver | |
| 62 | * The name Resolver t o set. | |
| 63 | * / | |
| 64 | pu blic void setNameRes olver(Repo rtNameReso lver nameR esolver) { | |
| 65 | this .nameResol ver = name Resolver; | |
| 66 | } | |
| 67 | ||
| 68 | /* * | |
| 69 | * @param re portDataDA Os | |
| 70 | * The repo rtDataDAOs to set. | |
| 71 | * / | |
| 72 | pu blic void setReportD ataDAOs(Ma p reportDa taDAOs) { | |
| 73 | this .reportDat aDAOs = re portDataDA Os; | |
| 74 | } | |
| 75 | ||
| 76 | /* * | |
| 77 | * @see gov. va.med.fw. service.Ab stractComp onent#afte rPropertie sSet() | |
| 78 | * / | |
| 79 | pu blic void afterPrope rtiesSet() throws Ex ception { | |
| 80 | ||
| 81 | if ( reportData DAOs == nu ll) { | |
| 82 | logger .warn("$$$ $$ find wh o created this class and ensur e reportDa taDAOs get s set."); | |
| 83 | } | |
| 84 | ||
| 85 | if ( this.nameR esolver == null) { | |
| 86 | this.n ameResolve r = new Si mpleReport NameResolv er(); | |
| 87 | } | |
| 88 | } | |
| 89 | ||
| 90 | /* * | |
| 91 | * @see gov. va.med.fw. report.dat a.ReportDa taService# requestRep ortData(go v.va.med.f w.report.R eportConfi guration) | |
| 92 | * / | |
| 93 | pu blic Repor tData requ estReportD ata(Report Configurat ion config ) throws R eportExcep tion { | |
| 94 | ||
| 95 | Vali date.notNu ll(config, "A report configura tion must not be NUL L"); | |
| 96 | Vali date.notNu ll(config. getQueryCr iteria(), "A report query crit eria must not be NUL L"); | |
| 97 | ||
| 98 | // P erform any pre-proce ssing oper ation in a DAO first | |
| 99 | Repo rtDataDAO dao = this .getReport DataDAO(co nfig); | |
| 100 | dao. preDataRet rieval(con fig); | |
| 101 | ||
| 102 | retu rn doReque stData(con fig); | |
| 103 | } | |
| 104 | ||
| 105 | /* * | |
| 106 | * Returns a dao that is used to retrieve report dat a | |
| 107 | * | |
| 108 | * @param co nfig | |
| 109 | * A report configura tion | |
| 110 | * @return A report da ta dap | |
| 111 | * @throws R eportExcep tion | |
| 112 | * In case of errors getting a report da ta dao | |
| 113 | * / | |
| 114 | pr otected Re portDataDA O getRepor tDataDAO(R eportConfi guration c onfig) thr ows Report Exception { | |
| 115 | Stri ng name = this.nameR esolver.ge tReportNam e(config); | |
| 116 | if ( !this.repo rtDataDAOs .containsK ey(name)) { | |
| 117 | throw new Report Exception( "A report data DAO i s missing for report : " + name ); | |
| 118 | } | |
| 119 | Obje ct compone ntName = r eportDataD AOs.get(na me); | |
| 120 | try { | |
| 121 | Object dao = thi s.getCompo nent((Stri ng) compon entName); | |
| 122 | return (ReportDa taDAO) dao ; | |
| 123 | } ca tch (Excep tion e) { | |
| 124 | throw new Report Exception( "A report data dao " + compone ntName + " is not de fined", e) ; | |
| 125 | } | |
| 126 | } | |
| 127 | ||
| 128 | /* * | |
| 129 | * Performs the actual tast of r equest for report da ta | |
| 130 | * | |
| 131 | * @param co nfiguratio n | |
| 132 | * A report configura tion | |
| 133 | * @return A report da ta | |
| 134 | * @throws R eportExcep tion | |
| 135 | * In case of errors request r eport data | |
| 136 | * / | |
| 137 | pr otected ab stract Rep ortData do RequestDat a(ReportCo nfiguratio n configur ation) | |
| 138 | throws ReportExc eption; | |
| 139 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.