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