View Javadoc
1   package info.ejava.examples.ejb.ejbjpa.dao;
2   
3   import info.ejava.examples.ejb.ejbjpa.bo.Floor;
4   import info.ejava.examples.ejb.ejbjpa.bo.Guest;
5   import info.ejava.examples.ejb.ejbjpa.bo.Room;
6   
7   import java.util.List;
8   
9   public interface HotelDAO {
10      void addFloor(Floor floor);
11      Floor getFloor(int level);
12      List<Floor> getFloors(int offset, int limit);
13      
14      Room getRoom(int number);
15      List<Room> getAvailableRooms(Integer level, int offset, int limit);
16      List<Room> getAvailableRoomsForUpdate(Integer level, int offset, int limit);
17      Room findRoomByGuest(Guest guest);
18      
19      void addGuest(Guest guest);
20      
21      void populate();
22      void clearAll();
23      
24      Floor fetchFloor(int level);
25  }