Package ejava.examples.webtier.bl
Class RegistrarImpl
- java.lang.Object
-
- ejava.examples.webtier.bl.RegistrarImpl
-
-
Field Summary
Fields Modifier and Type Field Description private StudentDAOdaoprivate static StringGRAD_QUERY(package private) org.slf4j.Loggerloggerprivate static StringNEW_STUDENT_QUERY
-
Constructor Summary
Constructors Constructor Description RegistrarImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StudentaddStudent(Student student)StudentcompleteCourse(Student student, Grade grade)StudentdropStudent(Student student)List<Student>getGraduatingStudents(int index, int count)List<Student>getNewStudents(int index, int count)StudentgetStudent(long id)List<Student>getStudents(int index, int count)List<Student>getStudents(String queryName, Map<String,Object> params, int index, int count)voidsetStudentDAO(StudentDAO dao)
-
-
-
Field Detail
-
logger
org.slf4j.Logger logger
-
NEW_STUDENT_QUERY
private static final String NEW_STUDENT_QUERY
- See Also:
- Constant Field Values
-
GRAD_QUERY
private static final String GRAD_QUERY
- See Also:
- Constant Field Values
-
dao
private StudentDAO dao
-
-
Method Detail
-
setStudentDAO
public void setStudentDAO(StudentDAO dao)
-
addStudent
public Student addStudent(Student student) throws RegistrarException
- Specified by:
addStudentin interfaceRegistrar- Throws:
RegistrarException
-
completeCourse
public Student completeCourse(Student student, Grade grade) throws RegistrarException
- Specified by:
completeCoursein interfaceRegistrar- Throws:
RegistrarException
-
dropStudent
public Student dropStudent(Student student) throws RegistrarException
- Specified by:
dropStudentin interfaceRegistrar- Throws:
RegistrarException
-
getStudents
public List<Student> getStudents(int index, int count) throws RegistrarException
- Specified by:
getStudentsin interfaceRegistrar- Throws:
RegistrarException
-
getGraduatingStudents
public List<Student> getGraduatingStudents(int index, int count) throws RegistrarException
- Specified by:
getGraduatingStudentsin interfaceRegistrar- Throws:
RegistrarException
-
getNewStudents
public List<Student> getNewStudents(int index, int count) throws RegistrarException
- Specified by:
getNewStudentsin interfaceRegistrar- Throws:
RegistrarException
-
getStudent
public Student getStudent(long id) throws RegistrarException
- Specified by:
getStudentin interfaceRegistrar- Throws:
RegistrarException
-
getStudents
public List<Student> getStudents(String queryName, Map<String,Object> params, int index, int count) throws RegistrarException
- Specified by:
getStudentsin interfaceRegistrar- Throws:
RegistrarException
-
-