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.util.LinkedHashMap; |
20 | |
|
21 | |
import org.apache.commons.lang.builder.EqualsBuilder; |
22 | |
import org.kuali.rice.kns.bo.Inactivateable; |
23 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
24 | |
import org.kuali.rice.kns.util.ObjectUtils; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
public class VendorDefaultAddress extends PersistableBusinessObjectBase implements Inactivateable { |
34 | |
|
35 | |
private Integer vendorDefaultAddressGeneratedIdentifier; |
36 | |
private Integer vendorAddressGeneratedIdentifier; |
37 | |
private String vendorCampusCode; |
38 | |
private boolean active; |
39 | |
|
40 | |
private VendorAddress vendorAddress; |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
public VendorDefaultAddress() { |
46 | 0 | super(); |
47 | 0 | } |
48 | |
|
49 | |
public String getVendorCampusCode() { |
50 | |
|
51 | 0 | return vendorCampusCode; |
52 | |
} |
53 | |
|
54 | |
public void setVendorCampusCode(String vendorCampusCode) { |
55 | 0 | this.vendorCampusCode = vendorCampusCode; |
56 | 0 | } |
57 | |
|
58 | |
public Integer getVendorAddressGeneratedIdentifier() { |
59 | |
|
60 | 0 | return vendorAddressGeneratedIdentifier; |
61 | |
} |
62 | |
|
63 | |
public void setVendorAddressGeneratedIdentifier(Integer vendorAddressGeneratedIdentifier) { |
64 | 0 | this.vendorAddressGeneratedIdentifier = vendorAddressGeneratedIdentifier; |
65 | 0 | } |
66 | |
|
67 | |
public boolean isActive() { |
68 | |
|
69 | 0 | return active; |
70 | |
} |
71 | |
|
72 | |
public void setActive(boolean active) { |
73 | 0 | this.active = active; |
74 | 0 | } |
75 | |
|
76 | |
public VendorAddress getVendorAddress() { |
77 | |
|
78 | 0 | return vendorAddress; |
79 | |
} |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
public void setVendorAddress(VendorAddress vendorAddress) { |
88 | 0 | this.vendorAddress = vendorAddress; |
89 | 0 | } |
90 | |
|
91 | |
public Integer getVendorDefaultAddressGeneratedIdentifier() { |
92 | |
|
93 | 0 | return vendorDefaultAddressGeneratedIdentifier; |
94 | |
} |
95 | |
|
96 | |
public void setVendorDefaultAddressGeneratedIdentifier(Integer vendorDefaultAddressGeneratedIdentifier) { |
97 | 0 | this.vendorDefaultAddressGeneratedIdentifier = vendorDefaultAddressGeneratedIdentifier; |
98 | 0 | } |
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
public boolean isEqualForRouting(Object toCompare) { |
104 | 0 | if ((ObjectUtils.isNull(toCompare)) || !(toCompare instanceof VendorDefaultAddress)) { |
105 | |
|
106 | 0 | return false; |
107 | |
} else { |
108 | 0 | VendorDefaultAddress vda = (VendorDefaultAddress) toCompare; |
109 | |
|
110 | 0 | return new EqualsBuilder().append(this.getVendorDefaultAddressGeneratedIdentifier(), vda.getVendorDefaultAddressGeneratedIdentifier()).append(this.getVendorAddressGeneratedIdentifier(), vda.getVendorAddressGeneratedIdentifier()).append(this.getVendorCampusCode(), vda.getVendorCampusCode()).isEquals(); |
111 | |
} |
112 | |
} |
113 | |
|
114 | |
|
115 | |
} |