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 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 super();
59
60 }
61
62 public Integer getVendorHeaderGeneratedIdentifier() {
63
64 return vendorHeaderGeneratedIdentifier;
65 }
66
67 public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
68 this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
69 }
70
71 public String getVendorTypeCode() {
72
73 return vendorTypeCode;
74 }
75
76 public void setVendorTypeCode(String vendorTypeCode) {
77 this.vendorTypeCode = vendorTypeCode;
78 }
79
80 public String getVendorTaxNumber() {
81
82 return vendorTaxNumber;
83 }
84
85 public void setVendorTaxNumber(String vendorTaxNumber) {
86 this.vendorTaxNumber = vendorTaxNumber;
87 }
88
89 public String getVendorTaxTypeCode() {
90
91 return vendorTaxTypeCode;
92 }
93
94 public void setVendorTaxTypeCode(String vendorTaxTypeCode) {
95 this.vendorTaxTypeCode = vendorTaxTypeCode;
96 }
97
98 public String getVendorOwnershipCode() {
99
100 return vendorOwnershipCode;
101 }
102
103 public void setVendorOwnershipCode(String vendorOwnershipCode) {
104 this.vendorOwnershipCode = vendorOwnershipCode;
105 }
106
107 public String getVendorOwnershipCategoryCode() {
108
109 return vendorOwnershipCategoryCode;
110 }
111
112 public void setVendorOwnershipCategoryCode(String vendorOwnershipCategoryCode) {
113 this.vendorOwnershipCategoryCode = vendorOwnershipCategoryCode;
114 }
115
116 public Date getVendorFederalWithholdingTaxBeginningDate() {
117
118 return vendorFederalWithholdingTaxBeginningDate;
119 }
120
121 public void setVendorFederalWithholdingTaxBeginningDate(Date vendorFederalWithholdingTaxBeginningDate) {
122 this.vendorFederalWithholdingTaxBeginningDate = vendorFederalWithholdingTaxBeginningDate;
123 }
124
125 public Date getVendorFederalWithholdingTaxEndDate() {
126
127 return vendorFederalWithholdingTaxEndDate;
128 }
129
130 public void setVendorFederalWithholdingTaxEndDate(Date vendorFederalWithholdingTaxEndDate) {
131 this.vendorFederalWithholdingTaxEndDate = vendorFederalWithholdingTaxEndDate;
132 }
133
134 public Boolean getVendorW9ReceivedIndicator() {
135
136 return vendorW9ReceivedIndicator;
137 }
138
139 public void setVendorW9ReceivedIndicator(Boolean vendorW9ReceivedIndicator) {
140 this.vendorW9ReceivedIndicator = vendorW9ReceivedIndicator;
141 }
142
143 public Boolean getVendorW8BenReceivedIndicator() {
144
145 return vendorW8BenReceivedIndicator;
146 }
147
148 public void setVendorW8BenReceivedIndicator(Boolean vendorW8BenReceivedIndicator) {
149 this.vendorW8BenReceivedIndicator = vendorW8BenReceivedIndicator;
150 }
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166 /*
167 public void setVendorType(VendorType vendorType) {
168 this.vendorType = vendorType;
169 }*/
170 public OwnershipType getVendorOwnership() {
171
172 return vendorOwnership;
173 }
174
175
176
177
178
179
180
181 public void setVendorOwnership(OwnershipType vendorOwnership) {
182 this.vendorOwnership = vendorOwnership;
183 }
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199 public Boolean getVendorDebarredIndicator() {
200
201 return vendorDebarredIndicator;
202 }
203
204
205
206
207
208
209 public void setVendorDebarredIndicator(Boolean vendorDebarredIndicator) {
210 this.vendorDebarredIndicator = vendorDebarredIndicator;
211 }
212
213 public Boolean getVendorForeignIndicator() {
214
215 return vendorForeignIndicator;
216 }
217
218
219
220
221
222
223 public void setVendorForeignIndicator(Boolean vendorForeignIndicator) {
224 this.vendorForeignIndicator = vendorForeignIndicator;
225 }
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 LOG.debug("Entering isEqualForRouting.");
278 if (!(toCompare instanceof VendorHeader)) {
279 return false;
280 } else {
281 VendorHeader vh = (VendorHeader) toCompare;
282 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 }