Beispiel #1
0
 public boolean creat(TransportListVO o) {
   TransportListPO newPO = o.toPO();
   try {
     return transportData.add(newPO);
   } catch (RemoteException e) {
     e.printStackTrace();
     return false;
   }
 }
Beispiel #2
0
 public ArrayList<TransportListVO> getAll() {
   ArrayList<TransportListVO> newVOs = new ArrayList<TransportListVO>();
   ArrayList<TransportListPO> POs = null;
   try {
     POs = transportData.getAll(Main.currentUser.getId());
   } catch (RemoteException e) {
     e.printStackTrace();
   }
   for (int i = 0; i < POs.size(); i++) {
     newVOs.add(new TransportListVO(POs.get(i)));
   }
   return newVOs;
 }