There is a method called cancel() in interface Statement. But I don't know if it isimplemented correctly in JDBC. Maybe you can try it.
Regards,William ZHANG