public class HotelReservationSessionImpl extends Object implements HotelReservationSession
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log |
private List<Reservation> |
pending |
private HotelReservationist |
reservationist |
Constructor and Description |
---|
HotelReservationSessionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelReservations() |
void |
close() |
List<Reservation> |
commit() |
void |
createReservation(Person person,
Date startDate,
Date endDate) |
void |
setReservationist(HotelReservationist reservationist) |
private static final org.apache.commons.logging.Log log
private List<Reservation> pending
private HotelReservationist reservationist
public void createReservation(Person person, Date startDate, Date endDate) throws HotelReservationException
createReservation
in interface HotelReservationSession
HotelReservationException
public void cancelReservations() throws HotelReservationException
cancelReservations
in interface HotelReservationSession
HotelReservationException
public List<Reservation> commit() throws HotelReservationException
commit
in interface HotelReservationSession
HotelReservationException
public void setReservationist(HotelReservationist reservationist)
public void close()
close
in interface HotelReservationSession
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.