Exemplo n.º 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;
 }
Exemplo n.º 2
0
  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;
  }
Exemplo n.º 3
0
  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;
  }