Ejemplo n.º 1
0
 public MyList<ReceiptPO> getAll() {
   MyList<ReceiptPO> re = new MyList<ReceiptPO>();
   ArrayList<String> strs = dh.read();
   for (String string : strs) {
     re.add(new ReceiptPO(string));
   }
   return re;
 }
Ejemplo n.º 2
0
 public MyList<ReceiptPO> getAll(String w) throws RemoteException {
   MyList<ReceiptPO> re = new MyList<ReceiptPO>();
   ArrayList<String> strs = dh.read();
   for (String string : strs) {
     ReceiptPO po = (new ReceiptPO(string));
     if (po.getWriter().equals(w)) {
       re.add(po);
     }
   }
   return re;
 }
Ejemplo n.º 3
0
 public MyList<ReceiptPO> getAllBySatte(State state) throws RemoteException {
   MyList<ReceiptPO> re = new MyList<ReceiptPO>();
   ArrayList<String> strs = dh.read();
   for (String string : strs) {
     ReceiptPO temp = new ReceiptPO(string);
     if (temp.getState() == state) {
       re.add(temp);
     }
   }
   return re;
 }