Package ejava.examples.txagent.dao
Interface BookingDAO
-
- All Known Implementing Classes:
JPABookingDAO
public interface BookingDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BookingcreateBooking(Booking booking)BookinggetBooking(long id)BookinggetBookingByConfirmation(String confirmation)List<Booking>getBookings(int index, int count)List<Booking>getBookings(String queryName, Map<String,Object> params, int index, int count)BookingremoveBooking(Booking booking)BookingupdateBooking(Booking booking)
-
-
-
Method Detail
-
createBooking
Booking createBooking(Booking booking) throws DAOException
- Throws:
DAOException
-
getBooking
Booking getBooking(long id) throws DAOException
- Throws:
DAOException
-
getBookingByConfirmation
Booking getBookingByConfirmation(String confirmation) throws DAOException
- Throws:
DAOException
-
updateBooking
Booking updateBooking(Booking booking) throws DAOException
- Throws:
DAOException
-
removeBooking
Booking removeBooking(Booking booking) throws DAOException
- Throws:
DAOException
-
getBookings
List<Booking> getBookings(int index, int count) throws DAOException
- Throws:
DAOException
-
getBookings
List<Booking> getBookings(String queryName, Map<String,Object> params, int index, int count) throws DAOException
- Throws:
DAOException
-
-