Package com.esprit.services.cinemas
Class SeatService
java.lang.Object
com.esprit.services.cinemas.SeatService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Seat
void
Creates a new entity in the database.getSeatsByCinemaHallId
(Long cinemaHallId) Retrieves the SeatsByCinemaHallId value.boolean
updateSeatStatus
(Long seatId, Boolean isOccupied) Performs updateSeatStatus operation.
-
Field Details
-
connection
-
cinemaHallService
-
-
Constructor Details
-
SeatService
public SeatService()Performs SeatService operation.
-
-
Method Details
-
getSeatsByCinemaHallId
Retrieves the SeatsByCinemaHallId value.- Returns:
- the SeatsByCinemaHallId value
-
updateSeatStatus
Performs updateSeatStatus operation.- Returns:
- the result of the operation
-
create
Creates a new entity in the database.- Parameters:
entity
- the entity to create
-
buildSeat
-