Merge branch 'master' of ssh://xp-dev.com/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / OwnerManager.java
1 package businessLogic;
2
3 import java.rmi.RemoteException;
4 import java.rmi.server.UnicastRemoteObject;
5 import java.util.Vector;
6
7 import common.OwnerInterface;
8
9 import dataAccess.DB4oManager;
10 import domain.Owner;
11
12 public class OwnerManager extends UnicastRemoteObject implements OwnerInterface {
13         /**
14          * 
15          */
16         private static final long serialVersionUID = 1L;
17         DB4oManager dbMngr;
18
19         public OwnerManager() throws RemoteException {
20                 super();
21                 try {
22                         dbMngr = DB4oManager.getInstance();
23                 } catch (Exception e) {
24
25                         e.printStackTrace();
26                 }
27         }
28
29         /**
30          * This method existing  owners 
31          * 
32          */
33         public Vector<Owner> getOwners() throws RemoteException,
34                         Exception {
35                 
36                 
37                 return dbMngr.getOwners();
38         }
39
40         
41 }