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