Package Utils
Class SessionData
java.lang.Object
Utils.SessionData
Bundle of Information that gets passed between scenes
- Since:
- 2023-03-07
-
Field Summary
Modifier and TypeFieldDescriptionName of the customerfinal DatabaseConnect
Connection to the databasefinal long
Identification number of the employeeRepresents the currentOrder
being processed -
Constructor Summary
ConstructorDescriptionSessionData
(DatabaseConnect database, long employeeId, Order order) ConstructorSessionData
(DatabaseConnect database, long employeeId, Order order, String customerName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine 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 currentOrder
being 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:
true
if the user is a manger.false
otherwise
-