本文整理了Java中io.ebean.Query.setUseCache
方法的一些代码示例,展示了Query.setUseCache
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setUseCache
方法的具体详情如下:
包路径:io.ebean.Query
类名称: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
@Override
public Query<T> setUseCache(boolean useCache) {
return rootQuery.setUseCache(useCache);
}
代码示例来源:origin: ebean-orm/ebean
@Override
public Query<T> setUseCache(boolean useCache) {
return query.setUseCache(useCache);
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public EbeanQuery<MODEL_TYPE> setUseCache(boolean useBeanCache) {
q.setUseCache(useBeanCache);
qReadOnly.setUseCache(useBeanCache);
return this;
}
代码示例来源:origin: io.ebean/ebean-querybean
/**
* Set this to true to use the bean cache.
* <p>
* If the query result is in cache then by default this same instance is
* returned. In this sense it should be treated as a read only object graph.
* </p>
*/
public R setUseCache(boolean useCache) {
query.setUseCache(useCache);
return root;
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public EbeanQuery<MODEL_TYPE> setUseCache(boolean useBeanCache) {
q.setUseCache(useBeanCache);
return this;
}
代码示例来源:origin: io.ebean/ebean
@Override
public Query<T> setUseCache(boolean useCache) {
return query.setUseCache(useCache);
}
代码示例来源:origin: io.ebean/ebean
@Override
public Query<T> setUseCache(boolean useCache) {
return rootQuery.setUseCache(useCache);
}
代码示例来源:origin: icode/ameba
/**
* {@inheritDoc}
* Sets whether to use the bean cache.
*/
public Query<T> setUseCache(boolean useBeanCache) {
return query().setUseCache(useBeanCache);
}
内容来源于网络,如有侵权,请联系作者删除!