1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package edu.sampleu.financial.bo; |
18 | |
|
19 | |
import java.sql.Date; |
20 | |
import java.util.LinkedHashMap; |
21 | |
|
22 | |
import org.apache.commons.lang.builder.EqualsBuilder; |
23 | |
import org.apache.log4j.Logger; |
24 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public class VendorHeader extends PersistableBusinessObjectBase { |
33 | 0 | private static Logger LOG = Logger.getLogger(VendorHeader.class); |
34 | |
|
35 | |
private Integer vendorHeaderGeneratedIdentifier; |
36 | |
private String vendorTypeCode; |
37 | |
private String vendorTaxNumber; |
38 | |
private String vendorTaxTypeCode; |
39 | |
private String vendorOwnershipCode; |
40 | |
private String vendorOwnershipCategoryCode; |
41 | |
private Date vendorFederalWithholdingTaxBeginningDate; |
42 | |
private Date vendorFederalWithholdingTaxEndDate; |
43 | |
private Boolean vendorW9ReceivedIndicator; |
44 | |
private Boolean vendorW8BenReceivedIndicator; |
45 | |
private Boolean vendorDebarredIndicator; |
46 | |
private Boolean vendorForeignIndicator; |
47 | |
|
48 | |
|
49 | |
private OwnershipType vendorOwnership; |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public VendorHeader() { |
58 | 0 | super(); |
59 | |
|
60 | 0 | } |
61 | |
|
62 | |
public Integer getVendorHeaderGeneratedIdentifier() { |
63 | |
|
64 | 0 | return vendorHeaderGeneratedIdentifier; |
65 | |
} |
66 | |
|
67 | |
public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) { |
68 | 0 | this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier; |
69 | 0 | } |
70 | |
|
71 | |
public String getVendorTypeCode() { |
72 | |
|
73 | 0 | return vendorTypeCode; |
74 | |
} |
75 | |
|
76 | |
public void setVendorTypeCode(String vendorTypeCode) { |
77 | 0 | this.vendorTypeCode = vendorTypeCode; |
78 | 0 | } |
79 | |
|
80 | |
public String getVendorTaxNumber() { |
81 | |
|
82 | 0 | return vendorTaxNumber; |
83 | |
} |
84 | |
|
85 | |
public void setVendorTaxNumber(String vendorTaxNumber) { |
86 | 0 | this.vendorTaxNumber = vendorTaxNumber; |
87 | 0 | } |
88 | |
|
89 | |
public String getVendorTaxTypeCode() { |
90 | |
|
91 | 0 | return vendorTaxTypeCode; |
92 | |
} |
93 | |
|
94 | |
public void setVendorTaxTypeCode(String vendorTaxTypeCode) { |
95 | 0 | this.vendorTaxTypeCode = vendorTaxTypeCode; |
96 | 0 | } |
97 | |
|
98 | |
public String getVendorOwnershipCode() { |
99 | |
|
100 | 0 | return vendorOwnershipCode; |
101 | |
} |
102 | |
|
103 | |
public void setVendorOwnershipCode(String vendorOwnershipCode) { |
104 | 0 | this.vendorOwnershipCode = vendorOwnershipCode; |
105 | 0 | } |
106 | |
|
107 | |
public String getVendorOwnershipCategoryCode() { |
108 | |
|
109 | 0 | return vendorOwnershipCategoryCode; |
110 | |
} |
111 | |
|
112 | |
public void setVendorOwnershipCategoryCode(String vendorOwnershipCategoryCode) { |
113 | 0 | this.vendorOwnershipCategoryCode = vendorOwnershipCategoryCode; |
114 | 0 | } |
115 | |
|
116 | |
public Date getVendorFederalWithholdingTaxBeginningDate() { |
117 | |
|
118 | 0 | return vendorFederalWithholdingTaxBeginningDate; |
119 | |
} |
120 | |
|
121 | |
public void setVendorFederalWithholdingTaxBeginningDate(Date vendorFederalWithholdingTaxBeginningDate) { |
122 | 0 | this.vendorFederalWithholdingTaxBeginningDate = vendorFederalWithholdingTaxBeginningDate; |
123 | 0 | } |
124 | |
|
125 | |
public Date getVendorFederalWithholdingTaxEndDate() { |
126 | |
|
127 | 0 | return vendorFederalWithholdingTaxEndDate; |
128 | |
} |
129 | |
|
130 | |
public void setVendorFederalWithholdingTaxEndDate(Date vendorFederalWithholdingTaxEndDate) { |
131 | 0 | this.vendorFederalWithholdingTaxEndDate = vendorFederalWithholdingTaxEndDate; |
132 | 0 | } |
133 | |
|
134 | |
public Boolean getVendorW9ReceivedIndicator() { |
135 | |
|
136 | 0 | return vendorW9ReceivedIndicator; |
137 | |
} |
138 | |
|
139 | |
public void setVendorW9ReceivedIndicator(Boolean vendorW9ReceivedIndicator) { |
140 | 0 | this.vendorW9ReceivedIndicator = vendorW9ReceivedIndicator; |
141 | 0 | } |
142 | |
|
143 | |
public Boolean getVendorW8BenReceivedIndicator() { |
144 | |
|
145 | 0 | return vendorW8BenReceivedIndicator; |
146 | |
} |
147 | |
|
148 | |
public void setVendorW8BenReceivedIndicator(Boolean vendorW8BenReceivedIndicator) { |
149 | 0 | this.vendorW8BenReceivedIndicator = vendorW8BenReceivedIndicator; |
150 | 0 | } |
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
|
159 | |
|
160 | |
|
161 | |
|
162 | |
|
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
|
170 | |
public OwnershipType getVendorOwnership() { |
171 | |
|
172 | 0 | return vendorOwnership; |
173 | |
} |
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
|
181 | |
public void setVendorOwnership(OwnershipType vendorOwnership) { |
182 | 0 | this.vendorOwnership = vendorOwnership; |
183 | 0 | } |
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
|
190 | |
|
191 | |
|
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
|
198 | |
|
199 | |
public Boolean getVendorDebarredIndicator() { |
200 | |
|
201 | 0 | return vendorDebarredIndicator; |
202 | |
} |
203 | |
|
204 | |
|
205 | |
|
206 | |
|
207 | |
|
208 | |
|
209 | |
public void setVendorDebarredIndicator(Boolean vendorDebarredIndicator) { |
210 | 0 | this.vendorDebarredIndicator = vendorDebarredIndicator; |
211 | 0 | } |
212 | |
|
213 | |
public Boolean getVendorForeignIndicator() { |
214 | |
|
215 | 0 | return vendorForeignIndicator; |
216 | |
} |
217 | |
|
218 | |
|
219 | |
|
220 | |
|
221 | |
|
222 | |
|
223 | |
public void setVendorForeignIndicator(Boolean vendorForeignIndicator) { |
224 | 0 | this.vendorForeignIndicator = vendorForeignIndicator; |
225 | 0 | } |
226 | |
|
227 | |
|
228 | |
|
229 | |
|
230 | |
|
231 | |
|
232 | |
|
233 | |
|
234 | |
|
235 | |
|
236 | |
|
237 | |
|
238 | |
|
239 | |
|
240 | |
|
241 | |
|
242 | |
|
243 | |
|
244 | |
|
245 | |
|
246 | |
|
247 | |
|
248 | |
|
249 | |
|
250 | |
|
251 | |
|
252 | |
|
253 | |
|
254 | |
|
255 | |
|
256 | |
|
257 | |
|
258 | |
|
259 | |
|
260 | |
|
261 | |
|
262 | |
|
263 | |
|
264 | |
|
265 | |
|
266 | |
|
267 | |
|
268 | |
|
269 | |
|
270 | |
|
271 | |
|
272 | |
|
273 | |
|
274 | |
|
275 | |
|
276 | |
public boolean isEqualForRouting(Object toCompare) { |
277 | 0 | LOG.debug("Entering isEqualForRouting."); |
278 | 0 | if (!(toCompare instanceof VendorHeader)) { |
279 | 0 | return false; |
280 | |
} else { |
281 | 0 | VendorHeader vh = (VendorHeader) toCompare; |
282 | 0 | return new EqualsBuilder().append(this.getVendorTypeCode(), vh.getVendorTypeCode()).append(this.getVendorTaxNumber(), vh.getVendorTaxNumber()).append(this.getVendorOwnershipCode(), vh.getVendorOwnershipCode()).append(this.getVendorOwnershipCategoryCode(), vh.getVendorOwnershipCategoryCode()).append(this.getVendorFederalWithholdingTaxBeginningDate(), vh.getVendorFederalWithholdingTaxBeginningDate()).append(this.getVendorFederalWithholdingTaxEndDate(), vh.getVendorFederalWithholdingTaxEndDate()).append(this.getVendorW9ReceivedIndicator(), vh.getVendorW9ReceivedIndicator()).append(this.getVendorW8BenReceivedIndicator(), vh.getVendorW8BenReceivedIndicator()).append(this.getVendorDebarredIndicator(), vh.getVendorDebarredIndicator()).append(this.getVendorForeignIndicator(), vh.getVendorForeignIndicator()).isEquals(); |
283 | |
} |
284 | |
} |
285 | |
|
286 | |
} |