2.17.2: 2011-06-17

net.sf.basedb.core
Class QueryExecutor.CancelableStatelessSession

java.lang.Object
  extended by net.sf.basedb.core.QueryExecutor.CancelableStatelessSession
All Implemented Interfaces:
QueryExecutor.Cancelable
Enclosing class:
QueryExecutor

static class QueryExecutor.CancelableStatelessSession
extends Object
implements QueryExecutor.Cancelable

Cancels a query running in a stateless Hibernate session. NOTE! This functionality depends on a cast to StatelessSessionImpl. It may not be future-proof since it is not part of the public Hibernate API.

Since:
2.7

Field Summary
private  org.hibernate.StatelessSession session
           
 
Constructor Summary
QueryExecutor.CancelableStatelessSession(org.hibernate.StatelessSession session)
           
 
Method Summary
 void cancel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final org.hibernate.StatelessSession session
Constructor Detail

QueryExecutor.CancelableStatelessSession

QueryExecutor.CancelableStatelessSession(org.hibernate.StatelessSession session)
Method Detail

cancel

public void cancel()
Specified by:
cancel in interface QueryExecutor.Cancelable

2.17.2: 2011-06-17