1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.coeus.s2sgen.impl.budget;
20
21
22 public class KeyPersonDto extends CompensationDto {
23
24
25 private int sortId = 0;
26 private String personId = null;
27 private Integer rolodexId = null;
28 private String lastName = null;
29 private String firstName = null;
30 private String middleName = null;
31 private String role = null;
32 private String keyPersonRole = null;
33 private boolean nonMITPersonFlag;
34
35
36
37
38
39
40 public int getSortId() {
41 return sortId;
42 }
43
44
45
46
47
48
49 public void setSortId(int sortId) {
50 this.sortId = sortId;
51 }
52
53
54
55
56
57
58 public java.lang.String getPersonId() {
59 return personId;
60 }
61
62
63
64
65
66
67 public void setPersonId(java.lang.String personId) {
68 this.personId = personId;
69 }
70
71
72
73
74
75
76
77 public java.lang.String getLastName() {
78 return lastName;
79 }
80
81
82
83
84
85
86 public void setLastName(java.lang.String lastName) {
87 this.lastName = lastName;
88 }
89
90
91
92
93
94
95 public java.lang.String getFirstName() {
96 return firstName;
97 }
98
99
100
101
102
103
104 public void setFirstName(java.lang.String firstName) {
105 this.firstName = firstName;
106 }
107
108
109
110
111
112
113 public java.lang.String getMiddleName() {
114 return middleName;
115 }
116
117
118
119
120
121
122 public void setMiddleName(java.lang.String middleName) {
123 this.middleName = middleName;
124 }
125
126
127
128
129
130
131
132 public java.lang.String getRole() {
133 return role;
134 }
135
136
137
138
139
140
141 public void setRole(java.lang.String role) {
142 this.role = role;
143 }
144
145
146
147
148
149
150 public java.lang.String getKeyPersonRole() {
151 return keyPersonRole;
152 }
153
154
155
156
157
158
159 public void setKeyPersonRole(java.lang.String keyPersonRole) {
160 this.keyPersonRole = keyPersonRole;
161 }
162
163
164
165
166
167 public boolean isNonMITPersonFlag() {
168 return nonMITPersonFlag;
169 }
170
171
172
173
174
175
176 public void setNonMITPersonFlag(boolean nonMITPersonFlag) {
177 this.nonMITPersonFlag = nonMITPersonFlag;
178 }
179
180
181
182
183
184 public Integer getRolodexId() {
185 return rolodexId;
186 }
187
188
189
190
191
192 public void setRolodexId(Integer rolodexId) {
193 this.rolodexId = rolodexId;
194 }
195
196 @Override
197 public int hashCode() {
198 final int prime = 31;
199 int result = 1;
200 result = prime * result + (nonMITPersonFlag ? 1231 : 1237);
201 result = prime * result + ((personId == null) ? 0 : personId.hashCode());
202 result = prime * result + ((rolodexId == null) ? 0 : rolodexId.hashCode());
203 return result;
204 }
205
206 @Override
207 public boolean equals(Object obj) {
208 if (this == obj)
209 return true;
210 if (obj == null)
211 return false;
212 if (getClass() != obj.getClass())
213 return false;
214 KeyPersonDto other = (KeyPersonDto) obj;
215 if (nonMITPersonFlag != other.nonMITPersonFlag)
216 return false;
217 if (personId == null) {
218 if (other.personId != null)
219 return false;
220 }
221 else if (!personId.equals(other.personId))
222 return false;
223 if (rolodexId == null) {
224 if (other.rolodexId != null)
225 return false;
226 }
227 else if (!rolodexId.equals(other.rolodexId))
228 return false;
229 return true;
230 }
231 }