Package example.app.entitylist
Class CourseList
Class CourseList
This class represents a list of courses. It extends the EntityList class. It creates an abstraction for doing FileDatabase related operations that is related to courses. It also provides some other methods that is related to a course list but not necessarily to a particular course.-
Constructor Details
-
CourseList
-
CourseList
public CourseList()
-
-
Method Details
-
getTable
public String getTable(TreeSet<UUID> courseIds) throws CannotCreateFileException, FileDatabaseConfigFileException, FileDatabaseInternalException, IOException, ClassNotFoundException This method gets all the courses from the list of ids and creates a tabular format for displaying.- Parameters:
courseIds- the ids of the courses- Returns:
- String representation of the table of courses
- Throws:
CannotCreateFileException- If the partition directory or the data directory could not be createdFileDatabaseConfigFileException- If the syntax in the database.config is wrongFileDatabaseInternalException- If there's a mismatch between the record.ser file and the data directory entriesIOException- If the database.config could not be read or if there are any errors reading the resource or record.ser fileClassNotFoundException- If the class is not found during deserialization of the record.ser file
-