Package example.app.entitylist
Class FacultyList
Class FacultyList
This class represents a list of faculties. It extends the EntityList class. It creates an abstraction for doing FileDatabase related operations that is related to faculties. It also provides some other methods that is related to a faculty list but not necessarily to a particular faculty.-
Constructor Details
-
FacultyList
-
FacultyList
public FacultyList()
-
-
Method Details
-
getTable
public String getTable(TreeSet<UUID> facultyIds) throws CannotCreateFileException, FileDatabaseConfigFileException, FileDatabaseInternalException, IOException, ClassNotFoundException This method gets all the faculties from the list of ids and creates a tabular format for displaying.- Parameters:
facultyIds- the ids of the faculties- Returns:
- String representation of the table of faculties
- 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
-