Package org.hibernate.engine.query

Examples of org.hibernate.engine.query.QueryPlanCache


    return engine;
  }
 
  public QueryPlanCache getQueryPlanCache()  {
    if(queryPlanCache==null){
      queryPlanCache=new QueryPlanCache((SessionFactoryImplementor) factory);
    }
    return queryPlanCache;
  }
View Full Code Here


        }
   
   
    // params
    if(params!=null){
      QueryPlanCache cache=data.getQueryPlanCache();
      HQLQueryPlan plan = cache.getHQLQueryPlan(hql, false, java.util.Collections.EMPTY_MAP);
      ParameterMetadata meta = plan.getParameterMetadata();
      Type type;
      Object obj;
     
View Full Code Here

  public String[] getMappings() {
    return new String[] {};
  }

  public void testNativeSQLQuerySpecEquals() {
    QueryPlanCache cache = new QueryPlanCache(null);
    NativeSQLQuerySpecification firstSpec = createSpec();

    NativeSQLQuerySpecification secondSpec = createSpec();
   
    NativeSQLQueryPlan firstPlan = cache.getNativeSQLQueryPlan(firstSpec);
    NativeSQLQueryPlan secondPlan = cache.getNativeSQLQueryPlan(secondSpec);
   
    assertEquals(firstPlan, secondPlan);
   
  }
View Full Code Here

      );
    }

    // Caches
    settings.getCacheProvider().start( properties );
    this.queryPlanCache = new QueryPlanCache( this );
    //Generators:

    identifierGenerators = new HashMap();
    Iterator classes = cfg.getClassMappings();
    while ( classes.hasNext() ) {
View Full Code Here

  public String[] getMappings() {
    return new String[] {};
  }

  public void testNativeSQLQuerySpecEquals() {
    QueryPlanCache cache = new QueryPlanCache(sfi());
    NativeSQLQuerySpecification firstSpec = createSpec();

    NativeSQLQuerySpecification secondSpec = createSpec();
   
    NativeSQLQueryPlan firstPlan = cache.getNativeSQLQueryPlan(firstSpec);
    NativeSQLQueryPlan secondPlan = cache.getNativeSQLQueryPlan(secondSpec);
   
    assertEquals(firstPlan, secondPlan);
   
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.query.QueryPlanCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.