public int atualizar(String sql) {
        Connection conn = this.getConn();
        try {
            Statement stm = conn.createStatement();
            return stm.executeUpdate(sql);
        } catch (SQLException ex) {
            Logger.getLogger(ConectorMySql.class.getName()).log(Level.SEVERE, null, ex);
        }
        return -1;
    }