Class SeatService

java.lang.Object
com.esprit.services.cinemas.SeatService

public class SeatService extends Object
  • Field Details

  • Constructor Details

    • SeatService

      public SeatService()
      Performs SeatService operation.
  • Method Details

    • getSeatsByCinemaHallId

      public List<Seat> getSeatsByCinemaHallId(Long cinemaHallId)
      Retrieves the SeatsByCinemaHallId value.
      Returns:
      the SeatsByCinemaHallId value
    • updateSeatStatus

      public boolean updateSeatStatus(Long seatId, Boolean isOccupied)
      Performs updateSeatStatus operation.
      Returns:
      the result of the operation
    • create

      public void create(Seat seat)
      Creates a new entity in the database.
      Parameters:
      entity - the entity to create
    • buildSeat

      private Seat buildSeat(ResultSet rs)