- All Known Implementing Classes:
FileDataService
public interface AttendanceDataService
Represents a service for handling attendance data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttendanceRecord(AttendanceRecord attendance) Adds a new attendance record.getAll_AttendanceRecord_ForPeriod(LocalDate periodStart, LocalDate periodEnd) Retrieves all attendance records for a specified period.getAllAttendance_ByEmployeeID(int employeeID) Retrieves all attendance records for a specific employee.Retrieves all attendance records.getAttendanceRecord_ByAttendanceID(String attendanceID) Retrieves an attendance record by its attendance ID.getAttendanceRecord_ByEmployeeID(int employeeID) Retrieves an attendance record by employee ID.voidupdateAttendanceRecord(AttendanceRecord attendance) Updates an attendance record.
-
Method Details
-
getAttendanceRecord_ByAttendanceID
Retrieves an attendance record by its attendance ID.- Parameters:
attendanceID- The ID of the attendance record.- Returns:
- The attendance record with the specified ID.
-
getAttendanceRecord_ByEmployeeID
Retrieves an attendance record by employee ID.- Parameters:
employeeID- The ID of the employee.- Returns:
- The attendance record associated with the specified employee.
-
getAllAttendance_ByEmployeeID
Retrieves all attendance records for a specific employee.- Parameters:
employeeID- The ID of the employee.- Returns:
- A list of all attendance records for the specified employee.
-
getAllAttendanceRecords
List<AttendanceRecord> getAllAttendanceRecords()Retrieves all attendance records.- Returns:
- A list of all attendance records.
-
updateAttendanceRecord
Updates an attendance record.- Parameters:
attendance- The attendance record to be updated.
-
addAttendanceRecord
Adds a new attendance record.- Parameters:
attendance- The attendance record to be added.
-
getAll_AttendanceRecord_ForPeriod
List<AttendanceRecord> getAll_AttendanceRecord_ForPeriod(LocalDate periodStart, LocalDate periodEnd) Retrieves all attendance records for a specified period.- Parameters:
periodStart- The start date of the period.periodEnd- The end date of the period.- Returns:
- A list of all attendance records within the specified period.
-