org.hibernate.Query.getCacheMode()方法的使用及代码示例

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

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

Query.getCacheMode介绍

[英]Obtain the CacheMode in effect for this query. By default, the query inherits the CacheMode of the Session from which is originates. NOTE: The CacheMode here only effects reading/writing of the query cache, not the entity/collection caches.
[中]获取此查询有效的CacheMode。默认情况下,查询将继承发起会话的CacheMode。注意:这里的缓存模式只影响查询缓存的读/写,而不影响实体/集合缓存。

代码示例

代码示例来源:origin: com.github.cafdataprocessing/corepolicy-hibernate

@Override
public CacheMode getCacheMode() {
  return query.getCacheMode();
}

代码示例来源:origin: riotfamily/riot

@Override
public CacheMode getCacheMode() {
  return query.getCacheMode();
}

相关文章

微信公众号

最新文章

更多