public static void update(String query, Vector<Object> v) throws Exception {
        int cpt = 1;
        try {
            stm = ConectionBdd.getInstance().prepareStatement(query);
            for (Object o : v) {
                stm.setObject(cpt, o);
                cpt++;
            }
            stm.executeUpdate();
        } catch (SQLException ex) {
            Logger.getLogger(DialogueBdd.class.getName()).log(Level.SEVERE, null, ex);
        }
    }