Package Utils
Class SessionData
java.lang.Object
Utils.SessionData
Bundle of Information that gets passed between scenes
- Since:
- 2023-03-07
-
Field Summary
FieldsModifier and TypeFieldDescriptionName of the customerfinal DatabaseConnectConnection to the databasefinal longIdentification number of the employeeRepresents the currentOrderbeing processed -
Constructor Summary
ConstructorsConstructorDescriptionSessionData(DatabaseConnect database, long employeeId, Order order) ConstructorSessionData(DatabaseConnect database, long employeeId, Order order, String customerName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if the user logging in is a manager
-
Field Details
-
database
Connection to the database -
employeeId
public final long employeeIdIdentification number of the employee -
order
Represents the currentOrderbeing processed -
customerName
Name of the customer
-
-
Constructor Details
-
SessionData
Constructor- Parameters:
database- Connection to the databaseemployeeId- id of the employeeorder- current order
-
SessionData
Constructor- Parameters:
database- Connection to the databaseemployeeId- id of the employeeorder- current ordercustomerName- name of the employee making the order
-
-
Method Details
-
isManager
public boolean isManager()Determine if the user logging in is a manager- Returns:
trueif the user is a manger.falseotherwise
-