public boolean addLoan(Comic c, Person p, String d) { Loan l = new Loan(); l.setComic(c); l.setPerson(p); l.setDate(d); boolean rta = loandao.add(l); return rta; }
public boolean update(Loan l) { boolean rta = loandao.update(l); return rta; }
public Loan get(int key) { Loan l = new Loan(); l = loandao.get(key); return l; }
public boolean delete(int key) { boolean rta = loandao.delete(key); return rta; }
public List<Loan> getAll() { List<Loan> list = loandao.getAll(); return list; }