1 package ejava.examples.txagent.bl;
2
3 import java.util.Date;
4
5 import ejava.examples.txagent.bo.Booking;
6 import ejava.examples.txhotel.bo.Person;
7
8 public interface AgentReservationSession {
9 void createBooking()
10 throws AgentReservationException;
11 void addReservation(Person person, Date startDate, Date endDate)
12 throws AgentReservationException;
13 void cancelBooking()
14 throws AgentReservationException;
15 Booking commit()
16 throws AgentReservationException;
17 void close();
18 }