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