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 | JasperReportData.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 | JasperReportData.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 180 |
| 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 | import jav a.util.Col lection; | |
| 9 | import jav a.util.Ite rator; | |
| 10 | import jav a.util.Map ; | |
| 11 | ||
| 12 | import org .springfra mework.uti l.Collecti onUtils; | |
| 13 | ||
| 14 | import gov .va.med.fw .report.da ta.ReportD ata; | |
| 15 | import net .sf.jasper reports.en gine.JRDat aSource; | |
| 16 | import net .sf.jasper reports.en gine.JREmp tyDataSour ce; | |
| 17 | import net .sf.jasper reports.en gine.data. JRBeanColl ectionData Source; | |
| 18 | import net .sf.jasper reports.en gine.data. JRMapColle ctionDataS ource; | |
| 19 | ||
| 20 | /** | |
| 21 | * Encapsu lates logi cs to crea te the app ropriate J RDataSourc e based on the class | |
| 22 | * type of a collect ion. | |
| 23 | * | |
| 24 | * Project : Framewor k</br> Cre ated on: 4 :24:52 PM </br> | |
| 25 | * | |
| 26 | * @author DN S
|
|
| 27 | */ | |
| 28 | public cla ss JasperR eportData extends Re portData { | |
| 29 | ||
| 30 | /* * | |
| 31 | * An instan ce of seri alVersionU ID | |
| 32 | * / | |
| 33 | pr ivate stat ic final l ong serial VersionUID = 6868264 3671161668 20L; | |
| 34 | ||
| 35 | /* * | |
| 36 | * An instan ce of jasp erDataSour ce | |
| 37 | * / | |
| 38 | pr ivate JRDa taSource j asperDataS ource = nu ll; | |
| 39 | ||
| 40 | /* * | |
| 41 | * A default construct or | |
| 42 | * | |
| 43 | * @param da ta | |
| 44 | * / | |
| 45 | pu blic Jaspe rReportDat a(Collecti on data) { | |
| 46 | this (createDat aSource(da ta)); | |
| 47 | } | |
| 48 | ||
| 49 | /* * | |
| 50 | * A default construct or | |
| 51 | * | |
| 52 | * @param da taSource | |
| 53 | * / | |
| 54 | pu blic Jaspe rReportDat a(JRDataSo urce dataS ource) { | |
| 55 | supe r(); | |
| 56 | this .jasperDat aSource = dataSource ; | |
| 57 | } | |
| 58 | ||
| 59 | /* * | |
| 60 | * @return R eturns the jasperDat aSource. | |
| 61 | * / | |
| 62 | pu blic JRDat aSource ge tJasperDat aSource() { | |
| 63 | retu rn jasperD ataSource; | |
| 64 | } | |
| 65 | ||
| 66 | /* * | |
| 67 | * @param da ta | |
| 68 | * @return | |
| 69 | * / | |
| 70 | pr otected st atic JRDat aSource cr eateDataSo urce(Colle ction data ) { | |
| 71 | JRDa taSource s ource = nu ll; | |
| 72 | if ( Collection Utils.isEm pty(data)) { | |
| 73 | source = new JRE mptyDataSo urce(); | |
| 74 | } el se { | |
| 75 | for (I terator i = data.ite rator(); i .hasNext() ;) { | |
| 76 | Object e lement = i .next(); | |
| 77 | if (elem ent instan ceof Map) { | |
| 78 | source = n ew JRMapCo llectionDa taSource(d ata); | |
| 79 | break; | |
| 80 | } else { | |
| 81 | // Assumin g that dat a is a col lection of bean | |
| 82 | // whose g etter and setter met hods match with the | |
| 83 | // report field valu es. | |
| 84 | source = n ew JRBeanC ollectionD ataSource( data); | |
| 85 | } | |
| 86 | break; | |
| 87 | } | |
| 88 | } | |
| 89 | retu rn source; | |
| 90 | } | |
| 91 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.