org.hibernate.engine.query.spi.QueryPlanCache.getNativeSQLQueryPlan()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.hibernate.engine.query.spi.QueryPlanCache.getNativeSQLQueryPlan方法的一些代码示例,展示了QueryPlanCache.getNativeSQLQueryPlan的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryPlanCache.getNativeSQLQueryPlan方法的具体详情如下:
包路径:org.hibernate.engine.query.spi.QueryPlanCache
类名称:QueryPlanCache
方法名:getNativeSQLQueryPlan

QueryPlanCache.getNativeSQLQueryPlan介绍

[英]Get the query plan for a native SQL query, creating it and caching it if not already cached
[中]获取本机SQL查询的查询计划,创建并缓存它(如果尚未缓存)

代码示例

代码示例来源:origin: hibernate/hibernate-orm

protected NativeSQLQueryPlan getNativeQueryPlan(NativeSQLQuerySpecification spec) throws HibernateException {
  return getFactory().getQueryPlanCache().getNativeSQLQueryPlan( spec );
}

代码示例来源:origin: hibernate/hibernate-orm

@Test
public void testNativeSQLQuerySpecEquals() {
  QueryPlanCache cache = new QueryPlanCache( sessionFactory() );
  NativeSQLQuerySpecification firstSpec = createSpec();
  NativeSQLQuerySpecification secondSpec = createSpec();
  
  NativeSQLQueryPlan firstPlan = cache.getNativeSQLQueryPlan(firstSpec);
  NativeSQLQueryPlan secondPlan = cache.getNativeSQLQueryPlan(secondSpec);
  
  assertEquals(firstPlan, secondPlan);
  
}

代码示例来源:origin: hibernate/hibernate-orm

);
queryPlanCache.getNativeSQLQueryPlan( spec );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

protected NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) throws HibernateException {
  return factory.getQueryPlanCache().getNativeSQLQueryPlan( spec );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

protected NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) throws HibernateException {
  return factory.getQueryPlanCache().getNativeSQLQueryPlan( spec );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

);
queryPlanCache.getNativeSQLQueryPlan( spec );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

);
queryPlanCache.getNativeSQLQueryPlan( spec );

相关文章