Modifier and Type | Field and Description |
---|---|
private StudentDAO |
dao |
private static String |
GRAD_QUERY |
(package private) org.apache.commons.logging.Log |
log |
private static String |
NEW_STUDENT_QUERY |
Constructor and Description |
---|
RegistrarImpl() |
Modifier and Type | Method and Description |
---|---|
Student |
addStudent(Student student) |
Student |
completeCourse(Student student,
Grade grade) |
Student |
dropStudent(Student student) |
private StudentDAO |
getDAO() |
List<Student> |
getGraduatingStudents(int index,
int count) |
List<Student> |
getNewStudents(int index,
int count) |
Student |
getStudent(long id) |
List<Student> |
getStudents(int index,
int count) |
List<Student> |
getStudents(String queryName,
Map<String,Object> params,
int index,
int count) |
org.apache.commons.logging.Log log
private static final String NEW_STUDENT_QUERY
private static final String GRAD_QUERY
private StudentDAO dao
private StudentDAO getDAO() throws RegistrarException
RegistrarException
public Student addStudent(Student student) throws RegistrarException
addStudent
in interface Registrar
RegistrarException
public Student completeCourse(Student student, Grade grade) throws RegistrarException
completeCourse
in interface Registrar
RegistrarException
public Student dropStudent(Student student) throws RegistrarException
dropStudent
in interface Registrar
RegistrarException
public List<Student> getStudents(int index, int count) throws RegistrarException
getStudents
in interface Registrar
RegistrarException
public List<Student> getGraduatingStudents(int index, int count) throws RegistrarException
getGraduatingStudents
in interface Registrar
RegistrarException
public List<Student> getNewStudents(int index, int count) throws RegistrarException
getNewStudents
in interface Registrar
RegistrarException
public Student getStudent(long id) throws RegistrarException
getStudent
in interface Registrar
RegistrarException
public List<Student> getStudents(String queryName, Map<String,Object> params, int index, int count) throws RegistrarException
getStudents
in interface Registrar
RegistrarException
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.