public void updateLocationItem(LocationItem li) {
        
        try (Statement stmt = con.createStatement();)
        {
            String updateStmt = "UPDATE Locations "+
                                "SET Description = '"+li.getDescription().trim()+"' "+
                                "WHERE Code = '"+li.getCode().trim()+"'";
             stmt.executeUpdate(updateStmt);
             rowEditable.put(locationItemList.indexOf(li), Boolean.FALSE);

        } catch (SQLException ex) {
            System.err.println(ex.getClass().getName() + ": " + ex.getMessage());
        }            
        
    }