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

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

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

Query.setUseQueryCache介绍

[英]Calls #setUseQueryCache(CacheMode) with ON or OFF.
[中]用[$0$]或[$1$]调用#setUseQueryCache(CacheMode)。

代码示例

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

/**
 * Calls {@link #setUseQueryCache(CacheMode)} with <code>ON</code> or <code>OFF</code>.
 */
default Query<T> setUseQueryCache(boolean enabled) {
 return setUseQueryCache(enabled ? CacheMode.ON : CacheMode.OFF);
}

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

@Override
public Query<T> setUseQueryCache(CacheMode useCache) {
 return query.setUseQueryCache(useCache);
}

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

/**
 * Calls {@link #setUseQueryCache(CacheMode)} with <code>ON</code> or <code>OFF</code>.
 */
default Query<T> setUseQueryCache(boolean enabled) {
 return setUseQueryCache(enabled ? CacheMode.ON : CacheMode.OFF);
}

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

@Override
public EbeanQuery<MODEL_TYPE> setUseQueryCache(CacheMode useQueryCache) {
  q.setUseQueryCache(useQueryCache);
  qReadOnly.setUseQueryCache(useQueryCache);
  return this;
}

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

@Override
public EbeanQuery<MODEL_TYPE> setUseQueryCache(boolean useQueryCache) {
  q.setUseQueryCache(useQueryCache);
  return this;
}

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

/**
 * Set this to true to use the query cache.
 */
public R setUseQueryCache(boolean useCache) {
 query.setUseQueryCache(useCache);
 return root;
}

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

@Override
public EbeanQuery<MODEL_TYPE> setUseQueryCache(boolean useQueryCache) {
  q.setUseQueryCache(useQueryCache);
  qReadOnly.setUseQueryCache(useQueryCache);
  return this;
}

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

/**
 * Set the {@link CacheMode} to use the query for executing this query.
 */
public R setUseQueryCache(CacheMode cacheMode) {
 query.setUseQueryCache(cacheMode);
 return root;
}

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

@Override
public EbeanQuery<MODEL_TYPE> setUseQueryCache(CacheMode useQueryCache) {
  q.setUseQueryCache(useQueryCache);
  return this;
}

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

@Override
public Query<T> setUseQueryCache(CacheMode useCache) {
 return query.setUseQueryCache(useCache);
}

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

/**
 * {@inheritDoc}
 * Sets whether to use the query cache.
 */
public Query<T> setUseQueryCache(boolean useQueryCache) {
  return query().setUseQueryCache(useQueryCache);
}

相关文章

Query类方法