Produced by Araxis Merge on 7/6/2017 8:32:14 AM Central Daylight 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 | HC 837 Compliance 05122017.zip\HC 837 Compliance 05122017\FPPS_app\FPPS_app\src\hot\gov\va\med\fee\claim | CarcRarcCrosswalkBean.java | Mon May 9 19:11:54 2016 UTC |
2 | HC 837 Compliance 05122017.zip\HC 837 Compliance 05122017\FPPS_app\FPPS_app\src\hot\gov\va\med\fee\claim | CarcRarcCrosswalkBean.java | Wed Jul 5 13:07:56 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 364 |
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.med.f ee.claim; | |
2 | ||
3 | import jav a.sql.Time stamp; | |
4 | ||
5 | ||
6 | ||
7 | import sta tic org.jb oss.seam.S copeType.S ESSION; | |
8 | ||
9 | import jav a.math.Big Decimal; | |
10 | import jav a.text.Dec imalFormat ; | |
11 | import jav a.text.Sim pleDateFor mat; | |
12 | import jav a.util.Arr ayList; | |
13 | import jav a.util.Dat e; | |
14 | import jav a.util.Ite rator; | |
15 | import jav a.util.Lis t; | |
16 | ||
17 | import jav ax.ejb.Sta teful; | |
18 | ||
19 | import org .jboss.sea m.annotati ons.Logger ; | |
20 | import org .jboss.sea m.annotati ons.Name; | |
21 | import org .jboss.sea m.annotati ons.Scope; | |
22 | import org .jboss.sea m.annotati ons.Destro y; | |
23 | import org .jboss.sea m.log.Log; | |
24 | ||
25 | import jav ax.ejb.Rem ove; | |
26 | import jav ax.persist ence.Entit yManager; | |
27 | import jav ax.persist ence.Persi stenceCont ext; | |
28 | import jav ax.persist ence.Persi stenceCont extType; | |
29 | import jav ax.persist ence.Query ; | |
30 | ||
31 | ||
32 | /** | |
33 | * CarcRar cCrosswalk Bean class . | |
34 | * This cl ass implem ents the C arcRarcCro sswalk int erface and handles t he calcula tion and d isplay of | |
35 | * all of the releva nt fields in the GUI . | |
36 | * @author Bill Blac kmon | |
37 | * @versio n 1.0 | |
38 | * | |
39 | * CHANGE ALL OF THI S TO FIT E DI PROJECT | |
40 | * HAPE ED I VA DO# 1 18-11-D-10 09, TO#118 -1009-0001 ; HARRIS | |
41 | * ( | |
42 | CARC_ID NUMB ER(15) NO T NULL, | |
43 | RARC_ID VARC HAR2(15 BY TE), | |
44 | CREATED_ BY VARC HAR2(30 BY TE), | |
45 | DATE_CRE ATED DATE | |
46 | ) | |
47 | * @author
|
|
48 | * | |
49 | * | |
50 | * TO DO: | |
51 | * CREATE LISTS OF O UTPUT FOR VARIOUS QU ERIES. Loo k at exist ing CARC/R ARC lists and see ho w and wher e | |
52 | * they ar e implemen ted before re-invent ing the wh eel. | |
53 | * | |
54 | */ | |
55 | public cla ss CarcRar cCrosswalk Bean imple ments Carc RarcCrossw alk { | |
56 | ||
57 | ||
58 | /* * The log. */ | |
59 | @Logge r | |
60 | privat e Log log; | |
61 | ||
62 | ||
63 | /** Th e em. */ | |
64 | @Persi stenceCont ext(unitNa me = "FPPS _Owner", t ype=Persis tenceConte xtType.EXT ENDED) | |
65 | privat e EntityMa nager em; | |
66 | ||
67 | // may need to b e changed for displa y | |
68 | Simple DateFormat formatter = new Sim pleDateFor mat("MM/dd /yyyy"); | |
69 | Decima lFormat df = new Dec imalFormat ("$#0.00") ; | |
70 | ||
71 | ||
72 | In teger carc ID; | |
73 | St ring rarcI D; | |
74 | St ring creat edBy; | |
75 | ja va.sql.Tim estamp dat eCreated; | |
76 | ||
77 | ||
78 | @O verride | |
79 | pu blic Times tamp getDa teCreated( ) { | |
80 | // T ODO Auto-g enerated m ethod stub | |
81 | retu rn dateCre ated; | |
82 | } | |
83 | ||
84 | @O verride | |
85 | pu blic void setDateCre ated(Times tamp date) { | |
86 | // T ODO Auto-g enerated m ethod stub | |
87 | ||
88 | } | |
89 | ||
90 | @O verride | |
91 | pu blic Integ er getCarc ID() { | |
92 | // T ODO Auto-g enerated m ethod stub | |
93 | retu rn carcID; | |
94 | } | |
95 | ||
96 | @O verride | |
97 | pu blic void setCarcID( Integer ca rcID) { | |
98 | // T ODO Auto-g enerated m ethod stub | |
99 | ||
100 | } | |
101 | ||
102 | @O verride | |
103 | pu blic Strin g getRarcI D() { | |
104 | // T ODO Auto-g enerated m ethod stub | |
105 | retu rn rarcID; | |
106 | } | |
107 | ||
108 | @O verride | |
109 | pu blic void setRarcID( String rar cID) { | |
110 | // T ODO Auto-g enerated m ethod stub | |
111 | ||
112 | } | |
113 | ||
114 | @O verride | |
115 | pu blic Strin g getCreat edBy() { | |
116 | // T ODO Auto-g enerated m ethod stub | |
117 | retu rn created By; | |
118 | } | |
119 | ||
120 | @O verride | |
121 | pu blic void setCreated By(String createdBy) { | |
122 | // T ODO Auto-g enerated m ethod stub | |
123 | ||
124 | } | |
125 | ||
126 | @O verride | |
127 | pu blic Strin g toString () { | |
128 | retu rn "CarcRa rcCrosswal kBean [log =" + log + ", em=" + em | |
129 | + ", for matter=" + formatter + ", df=" + df + ", carcID=" | |
130 | + carcID + ", rarc ID=" + rar cID + ", c reatedBy=" + created By | |
131 | + ", dat eCreated=" + dateCre ated + "]" ; | |
132 | } | |
133 | ||
134 | ||
135 | @O verride | |
136 | pu blic int h ashCode() { | |
137 | fina l int prim e = 31; | |
138 | int result = 1 ; | |
139 | resu lt = prime * result + ((carcID == null) ? 0 : carc ID.hashCod e()); | |
140 | resu lt = prime * result | |
141 | + ((crea tedBy == n ull) ? 0 : createdBy .hashCode( )); | |
142 | resu lt = prime * result | |
143 | + ((date Created == null) ? 0 : dateCre ated.hashC ode()); | |
144 | resu lt = prime * result + ((rarcID == null) ? 0 : rarc ID.hashCod e()); | |
145 | retu rn result; | |
146 | } | |
147 | ||
148 | @O verride | |
149 | pu blic boole an equals( Object obj ) { | |
150 | if ( this == ob j) | |
151 | return true; | |
152 | if ( obj == nul l) | |
153 | return false; | |
154 | if ( getClass() != obj.ge tClass()) | |
155 | return false; | |
156 | Carc RarcCrossw alkBean ot her = (Car cRarcCross walkBean) obj; | |
157 | if ( carcID == null) { | |
158 | if (ot her.carcID != null) | |
159 | return f alse; | |
160 | } el se if (!ca rcID.equal s(other.ca rcID)) | |
161 | return false; | |
162 | if ( createdBy == null) { | |
163 | if (ot her.create dBy != nul l) | |
164 | return f alse; | |
165 | } el se if (!cr eatedBy.eq uals(other .createdBy )) | |
166 | return false; | |
167 | if ( dateCreate d == null) { | |
168 | if (ot her.dateCr eated != n ull) | |
169 | return f alse; | |
170 | } el se if (!da teCreated. equals(oth er.dateCre ated)) | |
171 | return false; | |
172 | if ( rarcID == null) { | |
173 | if (ot her.rarcID != null) | |
174 | return f alse; | |
175 | } el se if (!ra rcID.equal s(other.ra rcID)) | |
176 | return false; | |
177 | retu rn true; | |
178 | } | |
179 | ||
180 | ||
181 | ||
182 | ||
183 | } // end class |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.