Example usage for org.hibernate.internal SessionFactoryImpl getQueryPlanCache

List of usage examples for org.hibernate.internal SessionFactoryImpl getQueryPlanCache

Introduction

In this page you can find the example usage for org.hibernate.internal SessionFactoryImpl getQueryPlanCache.

Prototype

public QueryPlanCache getQueryPlanCache() 

Source Link

Usage

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*/
}