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; }
@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 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; }
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; }
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; }
public Object lire(Object obj, Class cls) throws MNVException, MNVException_Exception { return sCrud.lire(obj, TypeStructure.TAG); }
public List<Object> lister(Class cls) throws MNVException, MNVException_Exception { return sCrud.lister(TypeStructure.TAG); }