Fix [2826660] - Info product performance BIG problem

https://sourceforge.net/tracker/?func=detail&aid=2826660&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-07-24 17:01:51 +00:00
parent 51e674135c
commit f4bcbd20bc
1 changed files with 16 additions and 0 deletions

View File

@ -1143,6 +1143,22 @@ public abstract class Info extends CDialog
m_rs = null;
m_pstmt = null;
}
/**
* Interrupt this thread - cancel the query if still in execution
* Carlos Ruiz - globalqss - [2826660] - Info product performance BIG problem
*/
public void interrupt() {
if (m_pstmt != null) {
try {
m_pstmt.cancel();
close();
} catch (SQLException e) {
log.log(Level.SEVERE, "Cannot cancel SQL statement", e);
}
}
super.interrupt();
}
} // Worker
} // Info