Package Utils

Class SessionData

java.lang.Object
Utils.SessionData

public class SessionData extends Object
Bundle of Information that gets passed between scenes
Since:
2023-03-07
  • Field Details

    • database

      public final DatabaseConnect database
      Connection to the database
    • employeeId

      public final long employeeId
      Identification number of the employee
    • order

      public Order order
      Represents the current Order being processed
    • customerName

      public String customerName
      Name of the customer
  • Constructor Details

    • SessionData

      public SessionData(DatabaseConnect database, long employeeId, Order order)
      Constructor
      Parameters:
      database - Connection to the database
      employeeId - id of the employee
      order - current order
    • SessionData

      public SessionData(DatabaseConnect database, long employeeId, Order order, String customerName)
      Constructor
      Parameters:
      database - Connection to the database
      employeeId - id of the employee
      order - current order
      customerName - 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