package service;
import java.sql.SQLException;
import model.Student;
import dao.StudentDao;
public class StudentService {
private StudentDao dao = new StudentDao();
public int newStudent(Student stu) throws SQLException{
return dao.newStudent(stu);
}
public boolean validateStudent(String email,String password) throws SQLException{
return dao.validateStudent(email, password);
}
}
import java.sql.SQLException;
import model.Student;
import dao.StudentDao;
public class StudentService {
private StudentDao dao = new StudentDao();
public int newStudent(Student stu) throws SQLException{
return dao.newStudent(stu);
}
public boolean validateStudent(String email,String password) throws SQLException{
return dao.validateStudent(email, password);
}
}