package com.bdqn.service;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import com.bdqn.entity.ClassS;
import com.bdqn.entity.Student;
public interface StudentService {
//使用list查询所有
List<Student> SelectAll();
//使用list按int类型参数查询单条信息
List<Student> SelectAllId(int id);
//使用list按String类型参数查询单条信息
List<Student> SelectAllName(String name);
//使用list按int/String类型参数查询单条信息
List<Student> SelectAllIdName(int id,String name);
//使用list按int/String类型参数查询单条信息
List<Student> SelectAllIdNameClassId(int id,String name,int classId);
//使用list按对象类型参数查询单条信息
List<Student> SelectAllStudent(Student stu);
//使用Map实现两表关联查询
Map<Student,ClassS> SelectAllMapCname();
//使用Hashtable实现两表关联查询
Hashtable<Student, ClassS> SelectAllHashtableCname();
//使用list模糊查询姓名
List<Student> SelectLikeName(String name);
//使用map按string类型模糊查询姓名
Map<Student,ClassS> SelectLikeMapSname(String name);
//使用map按对象类型模糊查询姓名
Map<Student,ClassS> SelectLikeMapSname(Student stu);
//使用map按string类型模糊查询两表关联的班级名
Map<Student,ClassS> SelectLikeMapCname(String name);
}