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 org.apache.commons.lang.builder.EqualsBuilder;
20 import org.apache.log4j.Logger;
21 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22
23 import java.sql.Date;
24
25
26
27
28
29 public class VendorHeader extends PersistableBusinessObjectBase {
30 private static Logger LOG = Logger.getLogger(VendorHeader.class);
31
32 private Integer vendorHeaderGeneratedIdentifier;
33 private String vendorTypeCode;
34 private String vendorTaxNumber;
35 private String vendorTaxTypeCode;
36 private String vendorOwnershipCode;
37 private String vendorOwnershipCategoryCode;
38 private Date vendorFederalWithholdingTaxBeginningDate;
39 private Date vendorFederalWithholdingTaxEndDate;
40 private Boolean vendorW9ReceivedIndicator;
41 private Boolean vendorW8BenReceivedIndicator;
42 private Boolean vendorDebarredIndicator;
43 private Boolean vendorForeignIndicator;
44
45
46 private OwnershipType vendorOwnership;
47
48
49
50
51
52
53
54 public VendorHeader() {
55 super();
56
57 }
58
59 public Integer getVendorHeaderGeneratedIdentifier() {
60
61 return vendorHeaderGeneratedIdentifier;
62 }
63
64 public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
65 this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
66 }
67
68 public String getVendorTypeCode() {
69
70 return vendorTypeCode;
71 }
72
73 public void setVendorTypeCode(String vendorTypeCode) {
74 this.vendorTypeCode = vendorTypeCode;
75 }
76
77 public String getVendorTaxNumber() {
78
79 return vendorTaxNumber;
80 }
81
82 public void setVendorTaxNumber(String vendorTaxNumber) {
83 this.vendorTaxNumber = vendorTaxNumber;
84 }
85
86 public String getVendorTaxTypeCode() {
87
88 return vendorTaxTypeCode;
89 }
90
91 public void setVendorTaxTypeCode(String vendorTaxTypeCode) {
92 this.vendorTaxTypeCode = vendorTaxTypeCode;
93 }
94
95 public String getVendorOwnershipCode() {
96
97 return vendorOwnershipCode;
98 }
99
100 public void setVendorOwnershipCode(String vendorOwnershipCode) {
101 this.vendorOwnershipCode = vendorOwnershipCode;
102 }
103
104 public String getVendorOwnershipCategoryCode() {
105
106 return vendorOwnershipCategoryCode;
107 }
108
109 public void setVendorOwnershipCategoryCode(String vendorOwnershipCategoryCode) {
110 this.vendorOwnershipCategoryCode = vendorOwnershipCategoryCode;
111 }
112
113 public Date getVendorFederalWithholdingTaxBeginningDate() {
114
115 return vendorFederalWithholdingTaxBeginningDate;
116 }
117
118 public void setVendorFederalWithholdingTaxBeginningDate(Date vendorFederalWithholdingTaxBeginningDate) {
119 this.vendorFederalWithholdingTaxBeginningDate = vendorFederalWithholdingTaxBeginningDate;
120 }
121
122 public Date getVendorFederalWithholdingTaxEndDate() {
123
124 return vendorFederalWithholdingTaxEndDate;
125 }
126
127 public void setVendorFederalWithholdingTaxEndDate(Date vendorFederalWithholdingTaxEndDate) {
128 this.vendorFederalWithholdingTaxEndDate = vendorFederalWithholdingTaxEndDate;
129 }
130
131 public Boolean getVendorW9ReceivedIndicator() {
132
133 return vendorW9ReceivedIndicator;
134 }
135
136 public void setVendorW9ReceivedIndicator(Boolean vendorW9ReceivedIndicator) {
137 this.vendorW9ReceivedIndicator = vendorW9ReceivedIndicator;
138 }
139
140 public Boolean getVendorW8BenReceivedIndicator() {
141
142 return vendorW8BenReceivedIndicator;
143 }
144
145 public void setVendorW8BenReceivedIndicator(Boolean vendorW8BenReceivedIndicator) {
146 this.vendorW8BenReceivedIndicator = vendorW8BenReceivedIndicator;
147 }
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163 /*
164 public void setVendorType(VendorType vendorType) {
165 this.vendorType = vendorType;
166 }*/
167 public OwnershipType getVendorOwnership() {
168
169 return vendorOwnership;
170 }
171
172
173
174
175
176
177
178 public void setVendorOwnership(OwnershipType vendorOwnership) {
179 this.vendorOwnership = vendorOwnership;
180 }
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196 public Boolean getVendorDebarredIndicator() {
197
198 return vendorDebarredIndicator;
199 }
200
201
202
203
204
205
206 public void setVendorDebarredIndicator(Boolean vendorDebarredIndicator) {
207 this.vendorDebarredIndicator = vendorDebarredIndicator;
208 }
209
210 public Boolean getVendorForeignIndicator() {
211
212 return vendorForeignIndicator;
213 }
214
215
216
217
218
219
220 public void setVendorForeignIndicator(Boolean vendorForeignIndicator) {
221 this.vendorForeignIndicator = vendorForeignIndicator;
222 }
223
224
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 public boolean isEqualForRouting(Object toCompare) {
274 LOG.debug("Entering isEqualForRouting.");
275 if (!(toCompare instanceof VendorHeader)) {
276 return false;
277 } else {
278 VendorHeader vh = (VendorHeader) toCompare;
279 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();
280 }
281 }
282
283 }