本文整理了Java中io.ebean.Query.setUseQueryCache
方法的一些代码示例,展示了Query.setUseQueryCache
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setUseQueryCache
方法的具体详情如下:
包路径:io.ebean.Query
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!