package cn.itcast.notepad.dao;
import java.util.List;
import cn.itcast.notepad.domain.Student;
public interface StudentDao {
void add(Student stu);
void delete(Student stu);
void delete(int number);
void modify(Student stu);
Student selectByNumber(int number);
List<Student> selectByName(String name);
List<Student> selectByAge(int age);
List<Student> selectBySex(String sex);
List<Student> getAll();
int getNumber();
} |
|