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