示例#1
0
  public static Cliente get(int rut, boolean cache) {
    Cliente c;
    if (cache) {
      if (clientes.containsKey(rut)) {
        c = clientes.get(rut);
      } else {
        c = ClienteDAL.get(rut);
        clientes.put(rut, c);
      }

    } else {
      c = ClienteDAL.get(rut);
    }
    return c;
  }
示例#2
0
 public static ArrayList<Cliente> getAll() {
   return ClienteDAL.getAll();
 }