예제 #1
0
 public Object lire(Object sig, TypeStructure typeStructure) throws MNVException {
   try {
     return sCrud.lire(sig, typeStructure);
   } catch (MNVException_Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return null;
 }
예제 #2
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;
 }
예제 #3
0
  public Set<?> lister(TypeStructure typeStructure) throws MNVException {

    try {
      return (Set<?>) sCrud.lister(typeStructure);
    } catch (MNVException_Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return null;
  }
예제 #4
0
  public Object supprimer(Object obj) throws MNVException {
    try {
      return (Signalement) sCrud.supprimer(obj);
    } catch (MNVException_Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return null;
  }
예제 #5
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;
  }
예제 #6
0
 public Object lire(Object obj, Class cls) throws MNVException, MNVException_Exception {
   return sCrud.lire(obj, TypeStructure.TAG);
 }
예제 #7
0
 public List<Object> lister(Class cls) throws MNVException, MNVException_Exception {
   return sCrud.lister(TypeStructure.TAG);
 }