Package app.entity

Class RepositoryCollection

java.lang.Object
app.entity.RepositoryCollection

public class RepositoryCollection extends Object
The RepositoryCollection class provides a central collection of repositories for users, camps, enquiries, and suggestions. It handles loading and saving data to CSV files using deserializers and CSV utilities.
  • Method Details

    • load

      public static void load()
      Loads data from CSV files into the repositories using deserializers.
    • save

      public static void save()
      Saves data from the repositories to CSV files.
    • getUserRepository

      public static UserList getUserRepository()
      Gets the repository for user objects.
      Returns:
      The user repository.
    • getCampRepository

      public static CampList getCampRepository()
      Gets the repository for camp objects.
      Returns:
      The camp repository.
    • getEnquiryRepository

      public static EnquiryList getEnquiryRepository()
      Gets the repository for enquiry objects.
      Returns:
      The enquiry repository.
    • getSuggestionRepository

      public static SuggestionList getSuggestionRepository()
      Gets the repository for suggestion objects.
      Returns:
      The suggestion repository.