Repository navigation
Expand file tree
/
Copy pathStudent.java
More file actions
303 lines (291 loc) · 6.1 KB
/
Copy pathStudent.java
File metadata and controls
303 lines (291 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
package com.chinasoft.pojo;
import java.io.Serializable;
import java.sql.Timestamp;
/**
*
*
*
*/
public class Student implements Serializable{
/**
*
*/
public Student() {
//无参构造
}
private static final long serialVersionUID = 1L;
//name,sex,area,living,commute,nickname,interest,icon,classes,uniaccount,unipassword,colleges,timer,welcomed
//封装实体类
private int id;
private String name;
private String sex;
private String area;
private int living;
private String commute;
private String nickname;
private String interest;
private String icon;
private int classes;
private String uniaccount;
private String unipassword;
private String colleges;
private String timer;
private String welcomed;
private int point=0;//表示已经选择的学分
/**
* @return the welcomed
*/
public Student(int id, String name, String sex, String area, int living, String commute, String nickname,
String interest, String icon, int classes, String uniaccount, String unipassword, String colleges,
String timer, String welcomed) {
super();
this.id = id;
this.name = name;
this.sex = sex;
this.area = area;
this.living = living;
this.commute = commute;
this.nickname = nickname;
this.interest = interest;
this.icon = icon;
this.classes = classes;
this.uniaccount = uniaccount;
this.unipassword = unipassword;
this.colleges = colleges;
this.timer = timer;
this.welcomed = welcomed;
}
public Student(Student s) {
// TODO Auto-generated constructor stub
this.id = s.id;
this.name =s.name;
this.sex = s.sex;
this.area =s.area;
this.living = s.living;
this.commute = s.commute;
this.nickname = s.nickname;
this.interest = s.interest;
this.icon = s.icon;
this.classes = s.classes;
this.uniaccount = s.uniaccount;
this.unipassword = s.unipassword;
this.colleges = s.colleges;
this.timer = s.timer;
this.welcomed =s. welcomed;
}
public String getWelcomed() {
return welcomed;
}
/**
* @param welcomed the welcomed to set
*/
public void setWelcomed(String welcomed) {
this.welcomed = welcomed;
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the sex
*/
public String getSex() {
return sex;
}
/**
* @param sex the sex to set
*/
public void setSex(String sex) {
this.sex = sex;
}
/**
* @return the area
*/
public String getArea() {
return area;
}
/**
* @param area the area to set
*/
public void setArea(String area) {
this.area = area;
}
/**
* @return the living
*/
public int getLiving() {
return living;
}
/**
* @param living the living to set
*/
public void setLiving(int living) {
this.living = living;
}
/**
* @return the commute
*/
public String getCommute() {
return commute;
}
/**
* @param commute the commute to set
*/
public void setCommute(String commute) {
this.commute = commute;
}
/**
* @return the nickname
*/
public String getNickname() {
return nickname;
}
/**
* @param nickname the nickname to set
*/
public void setNickname(String nickname) {
this.nickname = nickname;
}
/**
* @return the interest
*/
public String getInterest() {
return interest;
}
/**
* @param interest the interest to set
*/
public void setInterest(String interest) {
this.interest = interest;
}
/**
* @return the icon
*/
public String getIcon() {
return icon;
}
/**
* @param icon the icon to set
*/
public void setIcon(String icon) {
this.icon = icon;
}
/**
* @return the classes
*/
public int getClasses() {
return classes;
}
/**
* @param classes the classes to set
*/
public void setClasses(int classes) {
this.classes = classes;
}
/**
* @return the uniaccount
*/
public String getUniaccount() {
return uniaccount;
}
/**
* @param uniaccount the uniaccount to set
*/
public void setUniaccount(String uniaccount) {
this.uniaccount = uniaccount;
}
/**
* @return the unipassword
*/
public String getUnipassword() {
return unipassword;
}
/**
* @param unipassword the unipassword to set
*/
public void setUnipassword(String unipassword) {
this.unipassword = unipassword;
}
/**
* @return the colleges
*/
public String getColleges() {
return colleges;
}
/**
* @param colleges the colleges to set
*/
public void setColleges(String colleges) {
this.colleges = colleges;
}
/**
* @return the timer
*/
public String getTimer() {
return timer;
}
/**
* @param timer the timer to set
*/
public void setTimer(String timer) {
this.timer = timer;
}
public String toString() {
return "Student [id=" + id + ", name=" + name + ", sex=" + sex + ", area=" + area + ", living=" + living
+ ", commute=" + commute + ", nickname=" + nickname + ", interest=" + interest + ", icon=" + icon
+ ", classes=" + classes + ", uniaccount=" + uniaccount + ", unipassword=" + unipassword + ", colleges="
+ colleges + ", timer=" + timer + ", welcomed=" + welcomed + "]";
}
// public String get(String change) {
// // TODO Auto-generated method stub
// switch(change) {
// case "name":
// return this.getName();
//
// case "sex":
// return this.getSex();
// case "unipassword":
// return this.getUnipassword();
// case "colleges":
// return this.getColleges();
// case "class":
// return this.getClasses().toString();
// case "name":
// return this.getName();
// case "name":
// return this.getName();
//
// }
/**
* @return the point
*/
public int getPoint() {
return point;
}
/**
* @param point the point to set
*/
public void setPoint(int point) {
this.point = point;
}
}