Class RequestRepository

java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
main.repository.Repository<Request>
main.repository.request.RequestRepository
All Implemented Interfaces:
Iterable<Request>

public class RequestRepository extends Repository<Request>
The RequestRepository class is a repository that stores and retrieves Request objects through file I/O operations. It extends the Repository class, which provides basic CRUD operations for the repository.
  • Field Details

  • Constructor Details

    • RequestRepository

      RequestRepository()
      Constructor to create an instance of RequestRepository.
  • Method Details

    • getInstance

      public static RequestRepository getInstance()
      Gets a new instance of RequestRepository.
      Returns:
      the instance of RequestRepository
    • getFilePath

      public String getFilePath()
      Gets the file path of the RequestRepository.
      Specified by:
      getFilePath in class Repository<Request>
      Returns:
      the file path of the RequestRepository
    • setAll

      public void setAll(List<Map<String,String>> listOfMappableObjects)
      Sets the list of mappable objects.
      Specified by:
      setAll in class Savable<Request>
      Parameters:
      listOfMappableObjects - the list of mappable objects