package mvc1; /** * @author The Administrator * @version 1.0 * @created 26-10-2025 22:49:47 */ class StudentDAO { /** * 模拟数据库(实际开发中是数据库连接? */ private static List studentDB = new ArrayList<>(); public StudentDAO(){ } public void finalize() throws Throwable { } /** * 查询所有学? */ public List findAll(){ return null; } /** * 根据ID查询学生 * * @param id */ public Student findById(int id){ return null; } /** * 插入新学? * * @param s */ public void insert(Student s){ } }//end StudentDAO