Package ejava.examples.txhotel.bl
Interface HotelReservationist
-
- All Known Subinterfaces:
HotelRegistrationLocal,HotelRegistrationRemote
- All Known Implementing Classes:
HotelRegistrationEJB,HotelReservationImpl
public interface HotelReservationist
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelReservation(Reservation reservation)voidcleanupReservation(String confirmation)ReservationcommitReservation(Reservation reservation)ReservationcreateReservation(Person person, Date startDate, Date endDate)ReservationgetReservationByConfirmation(String confirmation)List<Reservation>getReservations(int index, int count)List<Reservation>getReservationsForPerson(Person person, int index, int count)
-
-
-
Method Detail
-
createReservation
Reservation createReservation(Person person, Date startDate, Date endDate) throws HotelReservationException
- Throws:
HotelReservationException
-
commitReservation
Reservation commitReservation(Reservation reservation) throws HotelReservationException
- Throws:
HotelReservationException
-
getReservationsForPerson
List<Reservation> getReservationsForPerson(Person person, int index, int count) throws HotelReservationException
- Throws:
HotelReservationException
-
getReservationByConfirmation
Reservation getReservationByConfirmation(String confirmation) throws HotelReservationException
- Throws:
HotelReservationException
-
getReservations
List<Reservation> getReservations(int index, int count) throws HotelReservationException
- Throws:
HotelReservationException
-
cancelReservation
void cancelReservation(Reservation reservation) throws HotelReservationException
- Throws:
HotelReservationException
-
cleanupReservation
void cleanupReservation(String confirmation) throws HotelReservationException
- Throws:
HotelReservationException
-
-