⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentservice.java

📁 are are are are are are are are are are are are
💻 JAVA
字号:
/*
 * StudentService.java
 *
 * Created on 2006年5月18日, 下午11:24
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package enova.service;

import java.util.List;
import enova.pojo.*;

/**
 *
 * @author vlinux
 */
public interface StudentService {
    
    /*通过学生ID获取学生*/
    public Student get(Integer studentId) throws StoreException;
    
    /*更新或者创建一个学生*/
    public void updateOrCreate(Student student) throws UniqueException, StoreException;
    
    /*通过学生ID删除学生*/
    public void delete(Integer studentId) throws NotExistException, StoreException;
    
    /*学生登录验证,如果密码错误抛出密码错误异常*/
    public Student loginVerify(String number,String password) throws StoreException, PasswordErrorException;
    
    /*修改密码,抛出密码错误异常*/
    public void changePassword(String number,String oldPassword,String newPassword)
            throws PasswordErrorException, StoreException;
    
    /*通过班级ID获取学生,按照学号排序*/
    public List getByClassId(Integer classId) throws StoreException;
    
    /*通过姓名查询学生*/
    public List getByName(String name) throws StoreException;
    
    /*通过班级ID、姓名查询学生*/
    public List getByClassIdAndName(Integer classId,String name) throws StoreException;
    
    /*通过学号查询学生*/
    public List getByNumber(String number) throws StoreException;
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -