1 package org.myorg.jpatickets.dao; 2 3 import java.util.List; 4 import java.util.Map; 5 6 import org.myorg.jpatickets.bo.Event; 7 import org.myorg.jpatickets.bo.Seat; 8 import org.myorg.jpatickets.bo.Ticket; 9 10 public interface EventMgmtDAO { 11 String EVENT = "event"; 12 String VENUE_NAME = "venueName"; 13 String NUM_TICKETS = "numTickets"; 14 15 Event createEvent(Event event); 16 Event getEvent(int id); 17 List<Seat> findSeats(Event event, String section, Integer row, 18 Integer position, int offset, int limit); 19 List<Ticket> findTickets(Event event, List<Seat> seats); 20 21 Event fetchEventTickets(int id); 22 Event fetchEventTicketsSeats(int id); 23 Map<String, Object> fetchEventDTOData(int eventId); 24 }