- All Known Implementing Classes:
FileDataService
public interface PayrollDataService
Represents a service for handling payroll data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPayrollRecord
(PayrollRecord newRecord) Adds a new payroll record.getAll_Payroll_ByEmployeeID
(String employeeID) Retrieves all payroll records for a specific employee.Retrieves all payroll records.getAll_PayrollRecords_ForPeriod
(LocalDate startDate, LocalDate endDate) Retrieves all payroll records for a specified period.getPayroll_ByEmployeeID
(int employeeID) Retrieves the payroll record for a specific employee.getPayroll_ByPayrollID
(String payrollID) Retrieves a payroll record by its payroll ID.
-
Method Details
-
getPayroll_ByPayrollID
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
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
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
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
Adds a new payroll record.- Parameters:
newRecord
- The payroll record to be added.
-