|
|
|
|
@ -0,0 +1,47 @@
|
|
|
|
|
package mvc»ù´¡1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author The Administrator
|
|
|
|
|
* @version 1.0
|
|
|
|
|
* @created 26-10ÔÂ-2025 22:49:47
|
|
|
|
|
*/
|
|
|
|
|
class StudentDAO {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 模拟数æ<EFBFBD>®åº“(实际开å<EFBFBD>‘䏿˜¯æ•°æ<EFBFBD>®åº“连接ï¼?
|
|
|
|
|
*/
|
|
|
|
|
private static List<Student> studentDB = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
public StudentDAO(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查询所有å¦ç”?
|
|
|
|
|
*/
|
|
|
|
|
public List<Student> findAll(){
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* æ ¹æ<EFBFBD>®ID查询å¦ç”Ÿ
|
|
|
|
|
*
|
|
|
|
|
* @param id
|
|
|
|
|
*/
|
|
|
|
|
public Student findById(int id){
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* æ<EFBFBD>’入新å¦ç”?
|
|
|
|
|
*
|
|
|
|
|
* @param s
|
|
|
|
|
*/
|
|
|
|
|
public void insert(Student s){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}//end StudentDAO
|