public void cancel() throws SQLException {
if (isClosed) {
throw new SQLException("Can't cancel after statement has been closed");
}
TCancelOperationReq cancelReq = new TCancelOperationReq();
cancelReq.setOperationHandle(stmtHandle);
try {
TCancelOperationResp cancelResp = client.CancelOperation(cancelReq);
Utils.verifySuccessWithInfo(cancelResp.getStatus());
} catch (SQLException e) {
throw e;