Package app.entity
Class RepositoryCollection
java.lang.Object
app.entity.RepositoryCollection
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 Summary
Modifier and TypeMethodDescriptionstatic CampListGets the repository for camp objects.static EnquiryListGets the repository for enquiry objects.static SuggestionListGets the repository for suggestion objects.static UserListGets the repository for user objects.static voidload()Loads data from CSV files into the repositories using deserializers.static voidsave()Saves data from the repositories to CSV files.
-
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
Gets the repository for user objects.- Returns:
- The user repository.
-
getCampRepository
Gets the repository for camp objects.- Returns:
- The camp repository.
-
getEnquiryRepository
Gets the repository for enquiry objects.- Returns:
- The enquiry repository.
-
getSuggestionRepository
Gets the repository for suggestion objects.- Returns:
- The suggestion repository.
-