Exemple #1
0
 @Override
 public Object sauver(Object obj) throws MNVException {
   try {
     return sCrud.sauver(obj);
   } catch (MNVException_Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return obj;
 }
  public Object sauver(Object obj) throws MNVException {

    try {
      return (Signalement) sCrud.sauver(obj);
    } catch (MNVException_Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return null;
  }
  private Signalement changerEtat(EtatSignalement etat, Object key) throws MNVException {
    Signalement sig = null;
    try {
      sig = (Signalement) sCrud.lire(key, TypeStructure.SIGNALEMENT);
    } catch (MNVException_Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    sig.setEtat(etat);

    try {
      return (Signalement) sCrud.sauver(sig);
    } catch (MNVException_Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return null;
  }