java.lang.Object
records.util.ID_Generator
Utility class for generating unique IDs.
Available methods:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateAttendanceID
(int employeeID) Generates a unique attendance ID for the specified employee and current date.static String
generateLeaveID
(int employeeID) Generates a unique leave ID for the specified employee and current date and time.static String
generatePayrollID
(int employeeID, String payrollPeriod) Generates a unique payroll ID for the specified employee and current month.static String
generatePayrollID_WithMonth
(int employeeID, int month, String payrollPeriod) Generates a unique payroll ID for the specified employee and period.
-
Constructor Details
-
ID_Generator
public ID_Generator()
-
-
Method Details
-
generatePayrollID
Generates a unique payroll ID for the specified employee and current month.- Parameters:
employeeID
- the ID of the employee- Returns:
- a unique payroll ID
-
generatePayrollID_WithMonth
Generates a unique payroll ID for the specified employee and period.- Parameters:
employeeID
- the ID of the employeemonth
- the month for which the ID is generatedpayrollPeriod
- the period for which the ID is generated- Returns:
- a unique payroll ID
-
generateAttendanceID
Generates a unique attendance ID for the specified employee and current date.- Parameters:
employeeID
- the ID of the employee- Returns:
- a unique attendance ID
-
generateLeaveID
Generates a unique leave ID for the specified employee and current date and time.- Parameters:
employeeID
- the ID of the employee- Returns:
- a unique leave ID
-