public class AgentSessionImpl extends Object implements AgentReservationSession
Modifier and Type | Field and Description |
---|---|
private Booking |
booking |
private BookingDAO |
bookingDAO |
private long |
counter |
private static org.apache.commons.logging.Log |
log |
private HotelReservationSession |
reservationist |
Constructor and Description |
---|
AgentSessionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addReservation(Person person,
Date startDate,
Date endDate) |
void |
cancelBooking() |
void |
close() |
Booking |
commit() |
void |
createBooking() |
void |
setBookingDAO(BookingDAO bookingDAO) |
void |
setReservationist(HotelReservationSession reservationist) |
private static final org.apache.commons.logging.Log log
private Booking booking
private BookingDAO bookingDAO
private HotelReservationSession reservationist
private long counter
public void createBooking() throws AgentReservationException
createBooking
in interface AgentReservationSession
AgentReservationException
public void addReservation(Person person, Date startDate, Date endDate) throws AgentReservationException
addReservation
in interface AgentReservationSession
AgentReservationException
public void cancelBooking() throws AgentReservationException
cancelBooking
in interface AgentReservationSession
AgentReservationException
public Booking commit() throws AgentReservationException
commit
in interface AgentReservationSession
AgentReservationException
public void close()
close
in interface AgentReservationSession
public void setBookingDAO(BookingDAO bookingDAO)
public void setReservationist(HotelReservationSession reservationist)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.