示例#1
0
 /** @see ControllerLezioniRemote#findAll() */
 public List<Lezione> findAllLezione() {
   List<Lezione> l = null;
   try {
     l = ctrlLezioni.findAll();
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
示例#2
0
 /** @see ControllerLezioniRemote#recuperaMateriale(int) */
 public List<MaterialeDidattico> recuperaMateriale(int idL, int idU) {
   List<MaterialeDidattico> l = null;
   try {
     l = ctrlLezioni.recuperaMateriale(idL, idU);
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
示例#3
0
 /** @see ControllerLezioniRemote#eliminaLezione(int) */
 public void eliminaLezione(int id) {
   try {
     ctrlLezioni.eliminaLezione(id);
   } catch (FindException e) {
     e.printStackTrace();
   } catch (DeleteException e) {
     e.printStackTrace();
   }
 }
示例#4
0
 /** @see ControllerLezioniRemote#findById(int) */
 public Lezione findLezioneById(int id) {
   Lezione l = null;
   try {
     l = ctrlLezioni.findById(id);
   } catch (FindException e) {
     e.printStackTrace();
   }
   return l;
 }
示例#5
0
 /** @see ControllerLezioniRemote#creaLezione(Lezione) */
 public void creaLezione(Lezione l) {
   try {
     ctrlLezioni.creaLezione(l);
   } catch (InsertException e) {
     e.printStackTrace();
   } catch (FindException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }