I'm having an issue where my GUI program is showing no error and also not updating the jTable with the UPDATE statement I'm giving it. INSERT and DELETE are working fine, but this isn't for some reason.
I'm using UCanAccess so I can use an MSAccess DB and rs2xml for resultset stuff.
The table I'm modifying here is a junction table with 2 primary keys for director_id and movie_id which are linked to separate tables so this is a many-to-many relationship.
 private void jButtonEditActionPerformed(java.awt.event.ActionEvent evt) {                                            
        DefaultTableModel tableModel = (DefaultTableModel) jTableDBView.getModel();
        // If there's an issue...
        if(error handling snipped out...)
        {
        }
        else
        {
            runQuery(Integer.parseInt(jTextFieldDirectorID.getText()), Integer.parseInt(jTextFieldMovieID.getText()), "UPDATE");
            jTextAreaDBView.append("Updated row: " + (jTableDBView.getSelectedRow() + 1) + " (Director ID: " + jTextFieldDirectorID.getText() + " & Movie ID: " + jTextFieldMovieID.getText() +")\n");
            updateDB();
        }
Which calls...
public void runQuery(int movieID, int directorID, String typeOfCommand) throws SQLException
{
    Connection conn = DriverManager.getConnection(jdbcURL);
    ResultSet rs = null;
    PreparedStatement stat = null;
    try
    {
        //snipped insert/delete
        else if(typeOfCommand.equals("UPDATE"))
        {
            stat = conn.prepareStatement("UPDATE Movie_Directors SET director_id = ?, movie_id = ? WHERE (director_id = ?) AND (movie_id = ?)"); 
            stat.setInt(1, directorID);
            stat.setInt(2, movieID);
            stat.setInt(3, directorID);
            stat.setInt(4, movieID);
            int result = stat.executeUpdate();
        }
And
private void updateDB()
{
    try
    {
        Connection conn = DriverManager.getConnection(jdbcURL);
        PreparedStatement pst = conn.prepareStatement(query);
        Class.forName(driver);
        ResultSet rs = pst.executeQuery();
        jTableDBView.setModel(DbUtils.resultSetToTableModel(rs)); // Imported lib function
        conn.close();
        pst.close();
        rs.close();
    }
    catch (Exception ex)
    {
        // Add a window here
    }
}
UPDATE - Fixed the runQuery block with this: I added 2 new jTextFields to input the new data and I understand how it all works now. Thank you @jan
            int result;
            int newDirectorID = Integer.parseInt(jTextFieldNewDirectorID.getText());
            int newMovieID = Integer.parseInt(jTextFieldNewMovieID.getText());
            stat = conn.prepareStatement("UPDATE Movie_Directors SET director_id = ?, movie_id = ? WHERE director_id = ? AND movie_id = ?"); 
            stat.setInt(1, newDirectorID);
            stat.setInt(2, newMovieID);
            stat.setInt(3, directorID);
            stat.setInt(4, movieID);
            result = stat.executeUpdate();