List of usage examples for org.hibernate.internal SessionFactoryImpl getQueryPlanCache
public QueryPlanCache getQueryPlanCache()
From source file:ch.algotrader.dao.GenericDaoImpl.java
License:Open Source License
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public Set<String> getQuerySpaces(String queryString) {
SessionFactoryImpl sessionFactoryImpl = (SessionFactoryImpl) this.sessionFactory;
return sessionFactoryImpl.getQueryPlanCache().getHQLQueryPlan(queryString, false, new HashMap())
.getQuerySpaces();/*from w ww . j a va2 s. co m*/
}