View Javadoc
1   package ejava.examples.txagent.dao;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import ejava.examples.txagent.bo.Booking;
7   
8   public interface BookingDAO {
9       Booking createBooking(Booking booking)
10          throws DAOException;
11      Booking getBooking(long id)
12          throws DAOException;    
13      Booking getBookingByConfirmation(String confirmation)
14          throws DAOException;    
15      Booking updateBooking(Booking booking)
16          throws DAOException;
17      Booking removeBooking(Booking booking)
18          throws DAOException;
19      List<Booking> getBookings(int index, int count)
20          throws DAOException;
21      List<Booking> getBookings(String queryName, 
22              Map<String, Object> params, int index, int count)
23          throws DAOException;
24  }