Package main.repository.request
Class RequestRepository
java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class main.repository.Repository
Repository.RepositoryRule<ModelObject> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file path of the RequestRepository.static RequestRepositoryGets a new instance of RequestRepository.voidSets the list of mappable objects.Methods inherited from class main.repository.Repository
add, clear, contains, findByRules, getAll, getByID, getList, isEmpty, iterator, load, remove, save, size, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
FILE_PATH
The path of the repository file.- See Also:
-
-
Constructor Details
-
RequestRepository
RequestRepository()Constructor to create an instance of RequestRepository.
-
-
Method Details
-
getInstance
Gets a new instance of RequestRepository.- Returns:
- the instance of RequestRepository
-
getFilePath
Gets the file path of the RequestRepository.- Specified by:
getFilePathin classRepository<Request>- Returns:
- the file path of the RequestRepository
-
setAll
Sets the list of mappable objects.
-