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