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 void
cancelReservation(Reservation reservation)
void
cleanupReservation(String confirmation)
Reservation
commitReservation(Reservation reservation)
Reservation
createReservation(Person person, Date startDate, Date endDate)
Reservation
getReservationByConfirmation(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
-
-