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; }
public static ArrayList<Cliente> getAll() { return ClienteDAL.getAll(); }