public class EventMgmtEJB extends Object implements EventMgmtRemote
Modifier and Type | Field and Description |
---|---|
private EventMgmtDAO |
edao |
private EntityManager |
em |
private EventMgmt |
eventMgmt |
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
EventMgmtEJB() |
Modifier and Type | Method and Description |
---|---|
Event |
createEvent(Event event,
Venue venue) |
void |
destroy() |
Event |
getEvent(int id) |
Event |
getEventCleansed(int id) |
EventDTO |
getEventFetchedDTO(int eventId) |
Event |
getEventFetchedMore(int id) |
Event |
getEventFetchedSome(int id) |
EventDTO |
getEventLazyDTO(int id) |
Event |
getEventTouchedMore(int id) |
Event |
getEventTouchedSome(int id) |
void |
init() |
private Event |
toCleansed(Event bo) |
private Ticket |
toCleansed(Ticket bo,
Event event) |
private EventDTO |
toEventDTO(Event event) |
private EventDTO |
toEventDTO(Map<String,Object> dtoData) |
private static final org.slf4j.Logger logger
private EntityManager em
private EventMgmtDAO edao
private EventMgmt eventMgmt
@PostConstruct public void init()
@PreDestroy public void destroy()
public Event createEvent(Event event, Venue venue) throws UnavailableException
createEvent
in interface EventMgmtRemote
UnavailableException
public Event getEvent(int id)
getEvent
in interface EventMgmtRemote
public Event getEventCleansed(int id)
getEventCleansed
in interface EventMgmtRemote
public Event getEventTouchedSome(int id)
getEventTouchedSome
in interface EventMgmtRemote
public Event getEventTouchedMore(int id)
getEventTouchedMore
in interface EventMgmtRemote
public Event getEventFetchedSome(int id)
getEventFetchedSome
in interface EventMgmtRemote
public Event getEventFetchedMore(int id)
getEventFetchedMore
in interface EventMgmtRemote
public EventDTO getEventLazyDTO(int id)
getEventLazyDTO
in interface EventMgmtRemote
public EventDTO getEventFetchedDTO(int eventId)
getEventFetchedDTO
in interface EventMgmtRemote
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.