View Javadoc
1   package ejava.examples.webtier.bl;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import ejava.examples.webtier.bo.Grade;
7   import ejava.examples.webtier.bo.Student;
8   
9   public interface Registrar {
10      List<Student> getStudents(int index, int count) 
11          throws RegistrarException;
12      List<Student> getNewStudents(int index, int count)  
13          throws RegistrarException;
14      List<Student> getGraduatingStudents(int index, int count)
15          throws RegistrarException;
16      List<Student> getStudents(
17          String queryName, Map<String, Object> params, int index, int count)
18          throws RegistrarException;
19      
20      Student addStudent(Student student) 
21          throws RegistrarException;
22      Student getStudent(long id) 
23          throws RegistrarException;
24      Student completeCourse(Student student, Grade grade) 
25          throws RegistrarException;
26      Student dropStudent(Student student) 
27          throws RegistrarException;
28  }