Package src.controller
Class BookingHistoryManager
Object
BookingHistoryManager
Controller for handling all logic related to
BookingHistory- Version:
- 1.0
- Author:
- Lee Juin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookingHistorycreateBookingHistory(ArrayList<MovieTicket> movieTicket, Payment payment, MovieGoer movieGoer) Method to create aBookingHistoryinstance and save to databasestatic BookingHistorygetBookingHistoryByUUID(String bookingHistoryUUID) Method to retrieve a booking history by its UUID
-
Constructor Details
-
BookingHistoryManager
public BookingHistoryManager()Constructor
-
-
Method Details
-
createBookingHistory
public static BookingHistory createBookingHistory(ArrayList<MovieTicket> movieTicket, Payment payment, MovieGoer movieGoer) Method to create aBookingHistoryinstance and save to database- Parameters:
movieTicket- is all theMovieTicketbought in a singlePaymentpayment- is thePaymentmade in relation to the tickets boughtmovieGoer- is theMovieGoerwho bought the tickets- Returns:
- The created booking history
-
getBookingHistoryByUUID
Method to retrieve a booking history by its UUID- Parameters:
bookingHistoryUUID- is the unique ID of the booking history- Returns:
- The
BookingHistoryretrieved
-