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\jasperreport\data | JasperReportDataService.java | Fri Dec 7 17:36:44 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\report\jasperreport\data | JasperReportDataService.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 192 |
| 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.j asperrepor t.data; | |
| 6 | ||
| 7 | // Java cl asses | |
| 8 | ||
| 9 | // Library classes | |
| 10 | ||
| 11 | // Framewo rk classes | |
| 12 | import jav a.util.Map ; | |
| 13 | ||
| 14 | import org .springfra mework.ste reotype.Se rvice; | |
| 15 | ||
| 16 | import gov .va.med.fw .report.Re portConfig uration; | |
| 17 | import gov .va.med.fw .report.Re portExcept ion; | |
| 18 | import gov .va.med.fw .report.da ta.Abstrac tReportDat aService; | |
| 19 | import gov .va.med.fw .report.da ta.ReportD ata; | |
| 20 | import gov .va.med.fw .report.da ta.ReportD ataDAO; | |
| 21 | import gov .va.med.fw .report.da ta.ReportD ataIterato r; | |
| 22 | ||
| 23 | // ESR cla sses | |
| 24 | ||
| 25 | /** | |
| 26 | * Impleme nts <code> ReportData Service</c ode> inter face to pr ovide repo rt data | |
| 27 | * using a report da ta iterato r to itera te through a report data's res ult set | |
| 28 | * returne d from a r eport data DAO. A co ncrete <co de>JRDataS ource</cod e> is | |
| 29 | * instant iated to e ncapsulate s a report data | |
| 30 | * | |
| 31 | * Project : Framewor k</br> Cre ated on: 1 :06:08 PM </br> | |
| 32 | * | |
| 33 | * @author DN S
|
|
| 34 | */ | |
| 35 | @Service | |
| 36 | public cla ss JasperR eportDataS ervice ext ends Abstr actReportD ataService { | |
| 37 | ||
| 38 | /* * | |
| 39 | * An instan ce of seri alVersionU ID | |
| 40 | * / | |
| 41 | pr ivate stat ic final l ong serial VersionUID = -322979 4258187177 377L; | |
| 42 | ||
| 43 | /* * | |
| 44 | * An instan ce of meta DataMap | |
| 45 | * / | |
| 46 | pr ivate Map metaDataMa p = null; | |
| 47 | ||
| 48 | /* * | |
| 49 | * A default construct or | |
| 50 | * / | |
| 51 | pu blic Jaspe rReportDat aService() { | |
| 52 | supe r(); | |
| 53 | } | |
| 54 | ||
| 55 | /* * | |
| 56 | * @param me taDataMap | |
| 57 | * The meta DataMap to set. | |
| 58 | * / | |
| 59 | pu blic void setMetaDat aMap(Map m etaDataMap ) { | |
| 60 | this .metaDataM ap = metaD ataMap; | |
| 61 | } | |
| 62 | ||
| 63 | /* * | |
| 64 | * @param me taDataMap | |
| 65 | * The meta DataMap to set. | |
| 66 | * / | |
| 67 | pr otected Ma p getMetaD ata(String reportNam e) { | |
| 68 | ||
| 69 | Map map = null ; | |
| 70 | if ( this.metaD ataMap != null && th is.metaDat aMap.conta insKey(rep ortName)) { | |
| 71 | Object data = th is.metaDat aMap.get(r eportName) ; | |
| 72 | map = data insta nceof Map ? (Map) da ta : null; | |
| 73 | } | |
| 74 | retu rn map; | |
| 75 | } | |
| 76 | ||
| 77 | /* * | |
| 78 | * @see gov. va.med.fw. report.dat a.Abstract ReportData Service#do RequestDat a(gov.va.m ed.fw.repo rt.ReportC onfigurati on) | |
| 79 | * / | |
| 80 | pr otected Re portData d oRequestDa ta(ReportC onfigurati on configu ration) th rows Repor tException { | |
| 81 | ||
| 82 | // C reate an i terator to iterate t hrough a r esult data collectio n | |
| 83 | Repo rtDataDAO dao = this .getReport DataDAO(co nfiguratio n); | |
| 84 | Repo rtDataIter ator itera tor = new ReportData Iterator(d ao, config uration); | |
| 85 | ||
| 86 | // C reate a cu stom Jaspe r Report d ata source that leve rages an i terator | |
| 87 | // t o pull | |
| 88 | // i nto memory only a bl ock of dat a at a tim e | |
| 89 | Stri ng reportN ame = this .getNameRe solver().g etReportNa me(configu ration); | |
| 90 | Jasp erReportDa taSource r eportDataS ource = ne w JasperRe portDataSo urce(itera tor, | |
| 91 | getMetaD ata(report Name), con figuration ); | |
| 92 | ||
| 93 | // C reates a w rapper to return | |
| 94 | Jasp erReportDa ta data = new Jasper ReportData (reportDat aSource); | |
| 95 | retu rn data; | |
| 96 | } | |
| 97 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.