io.ebean.Query.setUseCache()方法的使用及代码示例

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

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

Query.setUseCache介绍

[英]Set this to false to not use the bean cache.

This method is now superseded by #setBeanCacheMode(CacheMode)which provides more explicit options controlled bean cache use.

This method is likely to be deprecated in the future with migration over to setUseBeanCache().
[中]将其设置为false以不使用bean缓存。
这个方法现在被#setBeanCacheMode(CacheMode)取代,它提供了更明确的选项来控制bean缓存的使用。
随着迁移到setUseBeanCache(),这种方法将来可能会被弃用。

代码示例

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

  1. @Override
  2. public Query<T> setUseCache(boolean useCache) {
  3. return rootQuery.setUseCache(useCache);
  4. }

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

  1. @Override
  2. public Query<T> setUseCache(boolean useCache) {
  3. return query.setUseCache(useCache);
  4. }

代码示例来源:origin: org.actframework/act-ebean

  1. @Override
  2. public EbeanQuery<MODEL_TYPE> setUseCache(boolean useBeanCache) {
  3. q.setUseCache(useBeanCache);
  4. qReadOnly.setUseCache(useBeanCache);
  5. return this;
  6. }

代码示例来源:origin: io.ebean/ebean-querybean

  1. /**
  2. * Set this to true to use the bean cache.
  3. * <p>
  4. * If the query result is in cache then by default this same instance is
  5. * returned. In this sense it should be treated as a read only object graph.
  6. * </p>
  7. */
  8. public R setUseCache(boolean useCache) {
  9. query.setUseCache(useCache);
  10. return root;
  11. }

代码示例来源:origin: org.actframework/act-ebean2

  1. @Override
  2. public EbeanQuery<MODEL_TYPE> setUseCache(boolean useBeanCache) {
  3. q.setUseCache(useBeanCache);
  4. return this;
  5. }

代码示例来源:origin: io.ebean/ebean

  1. @Override
  2. public Query<T> setUseCache(boolean useCache) {
  3. return query.setUseCache(useCache);
  4. }

代码示例来源:origin: io.ebean/ebean

  1. @Override
  2. public Query<T> setUseCache(boolean useCache) {
  3. return rootQuery.setUseCache(useCache);
  4. }

代码示例来源:origin: icode/ameba

  1. /**
  2. * {@inheritDoc}
  3. * Sets whether to use the bean cache.
  4. */
  5. public Query<T> setUseCache(boolean useBeanCache) {
  6. return query().setUseCache(useBeanCache);
  7. }

相关文章

Query类方法