Class BookingHistoryManager

Object
BookingHistoryManager

public class BookingHistoryManager extends Object
Controller for handling all logic related to BookingHistory
Version:
1.0
Author:
Lee Juin
  • Constructor Details

    • BookingHistoryManager

      public BookingHistoryManager()
      Constructor
  • Method Details

    • createBookingHistory

      public static BookingHistory createBookingHistory(ArrayList<MovieTicket> movieTicket, Payment payment, MovieGoer movieGoer)
      Method to create a BookingHistory instance and save to database
      Parameters:
      movieTicket - is all the MovieTicket bought in a single Payment
      payment - is the Payment made in relation to the tickets bought
      movieGoer - is the MovieGoer who bought the tickets
      Returns:
      The created booking history
    • getBookingHistoryByUUID

      public static BookingHistory getBookingHistoryByUUID(String bookingHistoryUUID)
      Method to retrieve a booking history by its UUID
      Parameters:
      bookingHistoryUUID - is the unique ID of the booking history
      Returns:
      The BookingHistory retrieved