Exemple #1
0
 @Override
 public List<Employee> findAll() {
   try {
     return empDao.findAll();
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
Exemple #2
0
 @Override
 public void del(int id) {
   try {
     empDao.del(id);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
Exemple #3
0
 @Override
 public Employee findById(int id) {
   try {
     return empDao.findById(id);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
Exemple #4
0
 @Override
 public void update(Employee t) {
   try {
     empDao.update(t);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }