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