use of fi.otavanopisto.pyramus.dao.courses.CourseStudentVariableDAO in project pyramus by otavanopisto.
the class CoursesService method getCourseStudentVariable.
public String getCourseStudentVariable(@WebParam(name = "courseStudentId") Long courseStudentId, @WebParam(name = "key") String key) {
CourseStudentDAO courseStudentDAO = DAOFactory.getInstance().getCourseStudentDAO();
CourseStudentVariableDAO courseStudentVariableDAO = DAOFactory.getInstance().getCourseStudentVariableDAO();
CourseStudent courseStudent = courseStudentDAO.findById(courseStudentId);
return courseStudentVariableDAO.findByCourseStudentAndKey(courseStudent, key);
}
use of fi.otavanopisto.pyramus.dao.courses.CourseStudentVariableDAO in project pyramus by otavanopisto.
the class CoursesService method setCourseStudentVariable.
public void setCourseStudentVariable(@WebParam(name = "courseStudentId") Long courseStudentId, @WebParam(name = "key") String key, @WebParam(name = "value") String value) {
CourseStudentDAO courseStudentDAO = DAOFactory.getInstance().getCourseStudentDAO();
CourseStudentVariableDAO courseStudentVariableDAO = DAOFactory.getInstance().getCourseStudentVariableDAO();
CourseStudent courseStudent = courseStudentDAO.findById(courseStudentId);
courseStudentVariableDAO.setCourseStudentVariable(courseStudent, key, value);
}
Aggregations