Exemple #1
0
 /** @see ControllerCorsiRemote#creaCorso(Corso) */
 public void creaCorso(Corso c) {
   try {
     ctrlCorsi.creaCorso(c);
   } catch (InsertException e) {
     e.printStackTrace();
   }
 }
Exemple #2
0
 /** @see ControllerCorsiRemote#recuperaLezioni(int) */
 public List<Lezione> recuperaLezioni(int idC, int idU) {
   List<Lezione> l = null;
   try {
     l = ctrlCorsi.recuperaLezioni(idC, idU);
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
Exemple #3
0
 /** @see ControllerCorsiRemote#recuperaCorsiSelezionabiliStudente(int) */
 public List<Corso> recuperaCorsiSelezionabiliStudente(int id) {
   List<Corso> l = null;
   try {
     l = ctrlCorsi.recuperaCorsiSelezionabiliStudente(id);
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
Exemple #4
0
 /** @see ControllerCorsiRemote#findAll() */
 public List<Corso> findAllCorso() {
   List<Corso> l = null;
   try {
     l = ctrlCorsi.findAll();
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
Exemple #5
0
 /** @see ControllerCorsiRemote#findById(int) */
 public Corso findCorsoById(int id) {
   Corso l = null;
   try {
     l = ctrlCorsi.findById(id);
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
Exemple #6
0
 @Override
 public List<Corso> recuperaCorsi(int id) throws FindException {
   List<Corso> l = null;
   try {
     l = ctrlCorsi.recuperaCorsi(id);
   } catch (Exception e) {
     e.printStackTrace();
     throw new FindException(e.getMessage());
   }
   return l;
 }