Class StudentRepository

java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
main.repository.Repository<Student>
main.repository.user.StudentRepository
All Implemented Interfaces:
Iterable<Student>

public class StudentRepository extends Repository<Student>
The StudentRepository class is a repository for managing the persistence of student objects through file I/O operations. It extends the Repository class, which provides basic CRUD operations for the repository.
  • Field Details

  • Constructor Details

    • StudentRepository

      StudentRepository()
      Constructor for the StudentRepository class.
  • Method Details

    • getInstance

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

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

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