Example #1
0
 public void clearAll() {
   dao.deleteAll();
   /*		for (BirdModel model: findAll()) {
   	dao.delete(model);
   }*/
   //        dao.clearAll();
 }
Example #2
0
  public void save(BirdModel model) throws NoSuchLanguageException {
    if (familyService.findById(model.getFamily().getFamily()) == null) {
      familyService.save(model.getFamily());
    }

    dao.save(model);

    //		birdNameService.saveAll(model.getNames());
  }
Example #3
0
 public BirdModel findByScientificName(String name) {
   return dao.findByScientificName(name);
 }
Example #4
0
 public BirdModel getRandomBird() {
   return dao.getRandomBird();
 }
Example #5
0
 public void shutdown() {
   dao.shutdown();
 }
Example #6
0
 public void delete(BirdModel model) {
   dao.delete(model);
 }
Example #7
0
 public void update(BirdModel model) {
   dao.update(model);
 }
Example #8
0
 public List<BirdModel> findAll() {
   return dao.findAll();
 }
Example #9
0
 public BirdModel findById(String id) {
   return dao.findById(id);
 }