Package data.service

Interface PayrollDataService

All Known Implementing Classes:
FileDataService

public interface PayrollDataService
Represents a service for handling payroll data.
  • Method Details

    • getPayroll_ByPayrollID

      PayrollRecord getPayroll_ByPayrollID(String payrollID)
      Retrieves a payroll record by its payroll ID.
      Parameters:
      payrollID - The ID of the payroll record.
      Returns:
      The payroll record with the specified ID.
    • getPayroll_ByEmployeeID

      PayrollRecord getPayroll_ByEmployeeID(int employeeID)
      Retrieves the payroll record for a specific employee.
      Parameters:
      employeeID - The ID of the employee.
      Returns:
      The payroll record associated with the specified employee.
    • getAll_Payroll_ByEmployeeID

      List<PayrollRecord> getAll_Payroll_ByEmployeeID(String employeeID)
      Retrieves all payroll records for a specific employee.
      Parameters:
      employeeID - The ID of the employee.
      Returns:
      A list of all payroll records for the specified employee.
    • getAll_PayrollRecords_ForPeriod

      List<PayrollRecord> getAll_PayrollRecords_ForPeriod(LocalDate startDate, LocalDate endDate)
      Retrieves all payroll records for a specified period.
      Parameters:
      startDate - The start date of the period.
      endDate - The end date of the period.
      Returns:
      A list of all payroll records within the specified period.
    • getAll_PayrollRecords

      List<PayrollRecord> getAll_PayrollRecords()
      Retrieves all payroll records.
      Returns:
      A list of all payroll records.
    • addPayrollRecord

      void addPayrollRecord(PayrollRecord newRecord)
      Adds a new payroll record.
      Parameters:
      newRecord - The payroll record to be added.