Package org.myorg.jpatickets.dao
Class EventMgmtDAOImpl
- java.lang.Object
-
- org.myorg.jpatickets.dao.EventMgmtDAOImpl
-
- All Implemented Interfaces:
EventMgmtDAO
public class EventMgmtDAOImpl extends Object implements EventMgmtDAO
-
-
Field Summary
Fields Modifier and Type Field Description (package private) EntityManager
em
-
Fields inherited from interface org.myorg.jpatickets.dao.EventMgmtDAO
EVENT, NUM_TICKETS, VENUE_NAME
-
-
Constructor Summary
Constructors Constructor Description EventMgmtDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
em
EntityManager em
-
-
Method Detail
-
setEntityManager
public void setEntityManager(EntityManager em)
-
createEvent
public Event createEvent(Event event)
- Specified by:
createEvent
in interfaceEventMgmtDAO
-
getEvent
public Event getEvent(int eventId)
- Specified by:
getEvent
in interfaceEventMgmtDAO
-
fetchEventTickets
public Event fetchEventTickets(int id)
- Specified by:
fetchEventTickets
in interfaceEventMgmtDAO
-
fetchEventTicketsSeats
public Event fetchEventTicketsSeats(int id)
- Specified by:
fetchEventTicketsSeats
in interfaceEventMgmtDAO
-
fetchEventDTOData
public Map<String,Object> fetchEventDTOData(int eventId)
- Specified by:
fetchEventDTOData
in interfaceEventMgmtDAO
-
findSeats
public List<Seat> findSeats(Event event, String section, Integer row, Integer position, int offset, int limit)
- Specified by:
findSeats
in interfaceEventMgmtDAO
-
findTickets
public List<Ticket> findTickets(Event event, List<Seat> seats)
- Specified by:
findTickets
in interfaceEventMgmtDAO
-
-