| org.sakaiproject.component.gradebook.BaseHibernateManager
All known Subclasses: org.sakaiproject.component.gradebook.GradebookServiceHibernateImpl, org.sakaiproject.component.gradebook.GradebookFrameworkServiceImpl, org.sakaiproject.tool.gradebook.business.impl.GradebookManagerHibernateImpl, org.sakaiproject.component.gradebook.GradebookExternalAssessmentServiceImpl,
BaseHibernateManager | abstract public class BaseHibernateManager extends HibernateDaoSupport (Code) | | Provides methods which are shared between service business logic and application business
logic, but not exposed to external callers.
|
Method Summary | |
public Long | createAssignment(Long gradebookId, String name, Double points, Date dueDate, Boolean isNotCounted, Boolean isReleased) | protected List | filterGradeRecordsByStudents(Collection gradeRecords, Collection studentUids) Oracle has a low limit on the maximum length of a parameter list
in SQL queries of the form "WHERE tbl.col IN (:paramList)".
Since enrollment lists can sometimes be very long, we've replaced
such queries with full selects followed by filtering. | protected Set | getAllStudentUids(String gradebookUid) | protected AssignmentGradeRecord | getAssignmentGradeRecord(Assignment assignment, String studentUid, Session session) | protected Assignment | getAssignmentWithoutStats(String gradebookUid, String assignmentName, Session session) | protected List | getAssignments(Long gradebookId, Session session) | public Authn | getAuthn() | protected List | getCountedStudentGradeRecords(Long gradebookId, String studentId, Session session) | public CourseGrade | getCourseGrade(Long gradebookId) | protected CourseGradeRecord | getCourseGradeRecord(Gradebook gradebook, String studentId, Session session) Gets the course grade record for a student, or null if it does not yet exist. | protected EventTrackingService | getEventTrackingService() | public Gradebook | getGradebook(String uid) | public String | getGradebookUid(Long id) | protected Map | getPropertiesMap() | public String | getPropertyValue(String name) | protected SectionAwareness | getSectionAwareness() | protected String | getUserUid() | public boolean | isExplicitlyEnteredCourseGradeRecords(Long gradebookId) | public boolean | isGradebookDefined(String gradebookUid) | public void | postEvent(String message, String objectReference) | public void | setAuthn(Authn authn) | public void | setEventTrackingService(EventTrackingService eventTrackingService) | public void | setPropertyValue(String name, String value) | public void | setSectionAwareness(SectionAwareness sectionAwareness) | protected void | updateAssignment(Assignment assignment, Session session) | public void | updateGradebook(Gradebook gradebook) |
MAX_NUMBER_OF_SQL_PARAMETERS_IN_LIST | public static int MAX_NUMBER_OF_SQL_PARAMETERS_IN_LIST(Code) | | |
propertiesMap | protected Map propertiesMap(Code) | | |
filterGradeRecordsByStudents | protected List filterGradeRecordsByStudents(Collection gradeRecords, Collection studentUids)(Code) | | Oracle has a low limit on the maximum length of a parameter list
in SQL queries of the form "WHERE tbl.col IN (:paramList)".
Since enrollment lists can sometimes be very long, we've replaced
such queries with full selects followed by filtering. This helper
method filters out unwanted grade records. (Typically they're not
wanted because they're either no longer officially enrolled in the
course or they're not members of the selected section.)
|
getAllStudentUids | protected Set getAllStudentUids(String gradebookUid)(Code) | | |
getAssignmentWithoutStats | protected Assignment getAssignmentWithoutStats(String gradebookUid, String assignmentName, Session session) throws HibernateException(Code) | | |
getAssignments | protected List getAssignments(Long gradebookId, Session session) throws HibernateException(Code) | | |
getCountedStudentGradeRecords | protected List getCountedStudentGradeRecords(Long gradebookId, String studentId, Session session) throws HibernateException(Code) | | |
getCourseGradeRecord | protected CourseGradeRecord getCourseGradeRecord(Gradebook gradebook, String studentId, Session session) throws HibernateException(Code) | | Gets the course grade record for a student, or null if it does not yet exist.
Parameters: studentId - The student ID Parameters: session - The hibernate session A List of grade records throws: HibernateException - |
getPropertiesMap | protected Map getPropertiesMap()(Code) | | |
isExplicitlyEnteredCourseGradeRecords | public boolean isExplicitlyEnteredCourseGradeRecords(Long gradebookId)(Code) | | |
isGradebookDefined | public boolean isGradebookDefined(String gradebookUid)(Code) | | |
|
|