I have a long running select query on an embedded H2 Database and want to allow the user to cancel the query.
How can this be done? I cannot find anything about this.
[UPDATE] To be more specific I'm running my query using JPA. How can the query be stopped?