View Javadoc
1   package info.ejava.examples.ejb.ejbjpa.ejb;
2   
3   import java.util.List;
4   
5   import info.ejava.examples.ejb.ejbjpa.bl.HotelMgmt;
6   import info.ejava.examples.ejb.ejbjpa.bo.Floor;
7   import info.ejava.examples.ejb.ejbjpa.bo.Room;
8   import info.ejava.examples.ejb.ejbjpa.dto.FloorDTO;
9   
10  import javax.ejb.Remote;
11  
12  @Remote
13  public interface HotelMgmtRemote extends HotelMgmt {
14      /**
15       * This method will clear the previous-managed entity instances of any 
16       * provider proxies.
17       * @param level
18       * @param offser
19       * @param limit
20       * @return rooms
21       */
22      List<Room> getCleanAvailableRooms(Integer level, int offser, int limit);
23  
24      /**
25       * This method will make sure the returned parent object is fully loaded
26       * by explicitly "touching" enough of the parent and children entities
27       * and collections to cause them all to be EAGERly loaded.
28       * @param level
29       * @return floor
30       * 
31       * 
32       */
33      Floor getTouchedFloor(int level);
34  
35      /**
36       * This method will make sure the returned parent object is fully loaded
37       * by "fetch"ing all required children as part of the DAO query.
38       * @param level
39       * @return floor
40       */
41      Floor getFetchedFloor(int level);
42  
43      /**
44       * This method will return a slightly-washed down set of data objects to 
45       * the caller with sensitive or non-pertinent information not included in 
46       * the abstraction.
47       * @param level
48       * @return floor
49       */
50      FloorDTO getFetchedFloorDTO(int level);
51  }