Exemple #1
0
 public void AddHistory(History history) {
   try {
     for (History tmp : helper.Histories().queryForEq("Book", history.getBook())) {
       helper.Histories().deleteById(tmp.getId());
     }
     helper.Histories().create(history);
   } catch (SQLException e) {
     e.printStackTrace();
   }
 }
Exemple #2
0
 public List<History> GetAllHistories() {
   try {
     return helper.Histories().queryForAll();
   } catch (SQLException e) {
     e.printStackTrace();
   }
   return null;
 }