public class EventMgmtDAOImpl extends Object implements EventMgmtDAO
Modifier and Type | Field and Description |
---|---|
(package private) EntityManager |
em |
EVENT, NUM_TICKETS, VENUE_NAME
Constructor and Description |
---|
EventMgmtDAOImpl() |
Modifier and Type | Method and Description |
---|---|
Event |
createEvent(Event event) |
Map<String,Object> |
fetchEventDTOData(int eventId) |
Event |
fetchEventTickets(int id) |
Event |
fetchEventTicketsSeats(int id) |
List<Seat> |
findSeats(Event event,
String section,
Integer row,
Integer position,
int offset,
int limit) |
List<Ticket> |
findTickets(Event event,
List<Seat> seats) |
Event |
getEvent(int eventId) |
void |
setEntityManager(EntityManager em) |
EntityManager em
public void setEntityManager(EntityManager em)
public Event createEvent(Event event)
createEvent
in interface EventMgmtDAO
public Event getEvent(int eventId)
getEvent
in interface EventMgmtDAO
public Event fetchEventTickets(int id)
fetchEventTickets
in interface EventMgmtDAO
public Event fetchEventTicketsSeats(int id)
fetchEventTicketsSeats
in interface EventMgmtDAO
public Map<String,Object> fetchEventDTOData(int eventId)
fetchEventDTOData
in interface EventMgmtDAO
public List<Seat> findSeats(Event event, String section, Integer row, Integer position, int offset, int limit)
findSeats
in interface EventMgmtDAO
public List<Ticket> findTickets(Event event, List<Seat> seats)
findTickets
in interface EventMgmtDAO
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.