void cancel() throws SQLException
Statement object if both the DBMS and driver support aborting an SQL statement. This method can be used by one thread to cancel a statement that is being executed by another thread.
SQLException - if a database access error occurs or the statement has been closed
For more information, reference JDBC documentation for: Statement.cancel()