View Javadoc
1   package ejava.examples.txhotel.dao;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import ejava.examples.txhotel.bo.Reservation;
7   
8   public interface ReservationDAO {
9       Reservation createReservation(Reservation reservation)
10          throws DAOException;
11      Reservation getReservation(long id)
12          throws DAOException;    
13      Reservation getReservationByConfirmation(String confirmation)
14          throws DAOException;    
15      Reservation updateReservation(Reservation reservation)
16          throws DAOException;
17      Reservation removeReservation(Reservation reservation)
18          throws DAOException;
19      List<Reservation> getReservations(int index, int count)
20          throws DAOException;
21      List<Reservation> getReservations(String queryName, 
22              Map<String, Object> params, int index, int count)
23          throws DAOException;
24  }