Package org.myorg.jpatickets.bl
Class EventMgmtImpl
- java.lang.Object
-
- org.myorg.jpatickets.bl.EventMgmtImpl
-
-
Field Summary
Fields Modifier and Type Field Description private EventMgmtDAO
edao
private VenueDAO
vdao
-
Constructor Summary
Constructors Constructor Description EventMgmtImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
createEvent(Event event, Venue venue)
Event
fetchEventTickets(int id)
Event
fetchEventTicketsSeats(int id)
List<Seat>
findSeats(Event event, String section, Integer row, Integer position, int offset, int limit)
Event
getEvent(int id)
List<Ticket>
getTickets(Event event, List<Seat> seats)
List<Ticket>
reserveSeats(Event event, List<Seat> seats)
void
setEventDAO(EventMgmtDAO edao)
void
setVenueDAO(VenueDAO vdao)
-
-
-
Field Detail
-
edao
private EventMgmtDAO edao
-
vdao
private VenueDAO vdao
-
-
Method Detail
-
setEventDAO
public void setEventDAO(EventMgmtDAO edao)
-
setVenueDAO
public void setVenueDAO(VenueDAO vdao)
-
createEvent
public Event createEvent(Event event, Venue venue) throws UnavailableException
- Specified by:
createEvent
in interfaceEventMgmt
- Throws:
UnavailableException
-
fetchEventTickets
public Event fetchEventTickets(int id)
- Specified by:
fetchEventTickets
in interfaceEventMgmt
-
fetchEventTicketsSeats
public Event fetchEventTicketsSeats(int id)
- Specified by:
fetchEventTicketsSeats
in interfaceEventMgmt
-
findSeats
public List<Seat> findSeats(Event event, String section, Integer row, Integer position, int offset, int limit)
-
getTickets
public List<Ticket> getTickets(Event event, List<Seat> seats)
- Specified by:
getTickets
in interfaceEventMgmt
-
reserveSeats
public List<Ticket> reserveSeats(Event event, List<Seat> seats) throws UnavailableException
- Specified by:
reserveSeats
in interfaceEventMgmt
- Throws:
UnavailableException
-
-