Interface IApplicationRepository

All Superinterfaces:
IRepository<Application,String>
All Known Implementing Classes:
ApplicationRepository

public interface IApplicationRepository extends IRepository<Application,String>
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 Details

    • findByApplicantNric

      Application findByApplicantNric(String nric)
      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

      List<Application> findByProjectId(String projectId)
      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

      List<Application> findByStatus(ApplicationStatus status)
      Finds all applications with a specific status.
      Parameters:
      status - The application status to filter by
      Returns:
      A list of applications with the specified status