📄 querylistimpl.java
字号:
package com.dj.dao;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.dj.db.ResultSetCache;
import com.dj.vo.Student;
public class QueryListImpl implements QueryListIF {
public List getList(ResultSetCache res) {
List list = new ArrayList();
try {
while (res.next()) {
Student user = new Student();
user.setSName(res.getString("sname"));
user.setScore(res.getString("score"));
list.add(user);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -