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 Reservation
createReservation(Reservation reservation)
Reservation
getReservation(long id)
Reservation
getReservationByConfirmation(String confirmation)
List<Reservation>
getReservations(int index, int count)
List<Reservation>
getReservations(String queryName, Map<String,Object> params, int index, int count)
Reservation
removeReservation(Reservation reservation)
Reservation
updateReservation(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
-
-