View Javadoc
1   package ejava.examples.txhotel.bl;
2   
3   import java.util.Date;
4   import java.util.List;
5   
6   import ejava.examples.txhotel.bo.Person;
7   import ejava.examples.txhotel.bo.Reservation;
8   
9   public interface HotelReservationist {
10      Reservation createReservation(Person person, Date startDate, Date endDate)
11          throws HotelReservationException;
12      Reservation commitReservation(Reservation reservation)
13          throws HotelReservationException;
14      List<Reservation> getReservationsForPerson(Person person, 
15              int index, int count)
16          throws HotelReservationException;
17      Reservation getReservationByConfirmation(String confirmation) 
18          throws HotelReservationException;
19      List<Reservation> getReservations(int index, int count)
20          throws HotelReservationException;
21      void cancelReservation(Reservation reservation)
22          throws HotelReservationException;
23      //used to cleanup for testing; shouldn't really be here
24      void cleanupReservation(String confirmation)
25          throws HotelReservationException;
26  }