コード例 #1
0
  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;
  }
コード例 #2
0
 public boolean update(Loan l) {
   boolean rta = loandao.update(l);
   return rta;
 }
コード例 #3
0
 public Loan get(int key) {
   Loan l = new Loan();
   l = loandao.get(key);
   return l;
 }
コード例 #4
0
 public boolean delete(int key) {
   boolean rta = loandao.delete(key);
   return rta;
 }
コード例 #5
0
 public List<Loan> getAll() {
   List<Loan> list = loandao.getAll();
   return list;
 }