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