Interface IApplicationRepository
- All Superinterfaces:
IRepository<Application,
String>
- All Known Implementing Classes:
ApplicationRepository
Repository interface for accessing and manipulating Application entities in
the
data store.
This interface defines the contract for application data access operations, including: - Finding applications by various criteria (applicant, project, status) - Saving new applications - Updating existing applications - Deleting applications
The repository follows the Repository pattern, abstracting the data access logic from the rest of the application and providing a collection-like interface for application objects.
-
Method Summary
Modifier and TypeMethodDescriptionfindByApplicantNric
(String nric) Finds an application by the applicant's NRIC.findByProjectId
(String projectId) Finds all applications associated with a specific project.findByStatus
(ApplicationStatus status) Finds all applications with a specific status.
-
Method Details
-
findByApplicantNric
Finds an application by the applicant's NRIC.- Parameters:
nric
- The NRIC (National Registration Identity Card) of the applicant- Returns:
- The application associated with the given NRIC, or null if none exists
-
findByProjectId
Finds all applications associated with a specific project.- Parameters:
projectId
- The unique identifier of the project- Returns:
- A list of applications for the specified project
-
findByStatus
Finds all applications with a specific status.- Parameters:
status
- The application status to filter by- Returns:
- A list of applications with the specified status
-