Package ejava.examples.txhotel.dao
Interface ReservationDAO
-
- All Known Implementing Classes:
JPAReservationDAO
public interface ReservationDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservationcreateReservation(Reservation reservation)ReservationgetReservation(long id)ReservationgetReservationByConfirmation(String confirmation)List<Reservation>getReservations(int index, int count)List<Reservation>getReservations(String queryName, Map<String,Object> params, int index, int count)ReservationremoveReservation(Reservation reservation)ReservationupdateReservation(Reservation reservation)
-
-
-
Method Detail
-
createReservation
Reservation createReservation(Reservation reservation) throws DAOException
- Throws:
DAOException
-
getReservation
Reservation getReservation(long id) throws DAOException
- Throws:
DAOException
-
getReservationByConfirmation
Reservation getReservationByConfirmation(String confirmation) throws DAOException
- Throws:
DAOException
-
updateReservation
Reservation updateReservation(Reservation reservation) throws DAOException
- Throws:
DAOException
-
removeReservation
Reservation removeReservation(Reservation reservation) throws DAOException
- Throws:
DAOException
-
getReservations
List<Reservation> getReservations(int index, int count) throws DAOException
- Throws:
DAOException
-
getReservations
List<Reservation> getReservations(String queryName, Map<String,Object> params, int index, int count) throws DAOException
- Throws:
DAOException
-
-