Package src.controller
Class BookingHistoryManager
Object
BookingHistoryManager
Controller for handling all logic related to
BookingHistory
- Version:
- 1.0
- Author:
- Lee Juin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BookingHistory
createBookingHistory
(ArrayList<MovieTicket> movieTicket, Payment payment, MovieGoer movieGoer) Method to create aBookingHistory
instance and save to databasestatic BookingHistory
getBookingHistoryByUUID
(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 aBookingHistory
instance and save to database- Parameters:
movieTicket
- is all theMovieTicket
bought in a singlePayment
payment
- is thePayment
made in relation to the tickets boughtmovieGoer
- is theMovieGoer
who 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
BookingHistory
retrieved
-