本文整理了Java中com.psddev.dari.db.Query.resolveInvisible
方法的一些代码示例,展示了Query.resolveInvisible
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.resolveInvisible
方法的具体详情如下:
包路径:com.psddev.dari.db.Query
类名称:Query
方法名:resolveInvisible
[英]Sets this query to return objects with invisible references resolved.
[中]将此查询设置为返回已解析不可见引用的对象。
代码示例来源:origin: perfectsense/brightspot-cms
@Override
protected <T> Query<T> filterQuery(Query<T> query) {
return query.clone().master().resolveInvisible().option(Database.DISABLE_FUNNEL_CACHE_QUERY_OPTION, true);
}
};
代码示例来源:origin: perfectsense/brightspot-cms
.master()
.noCache()
.resolveInvisible()
.iterable(0)) {
代码示例来源:origin: perfectsense/brightspot-cms
source = Query.fromAll().where("id = ?", source).resolveInvisible().noCache().first();
代码示例来源:origin: perfectsense/brightspot-cms
/**
* Recreates the originating object with the differences merged.
*
* @return {@code null} if the object type is {@code null}.
*/
@SuppressWarnings("deprecation")
public Object recreate() {
ObjectType type = getObjectType();
if (type == null) {
return null;
}
UUID id = getObjectId();
Object object = Query.fromAll()
.where("_id = ?", id)
.noCache()
.resolveInvisible()
.first();
if (object == null) {
object = type.createObject(id);
}
merge(object);
return object;
}
代码示例来源:origin: perfectsense/dari
caching.setDelegate(database);
query.using(caching);
query.resolveInvisible();
代码示例来源:origin: perfectsense/dari
.where("_id = ?", page.param(UUID.class, "id"))
.using(database)
.resolveInvisible()
.first());
代码示例来源:origin: perfectsense/brightspot-cms
.and("com.psddev.cms.db.Draft/schedule != missing")
.and("com.psddev.cms.db.Draft/objectId = ?", object)
.resolveInvisible()
.iterable(0)) {
if (!(dObject instanceof Draft)) {
代码示例来源:origin: perfectsense/brightspot-cms
.master()
.noCache()
.resolveInvisible()
.selectAll()) {
if (!(draftObject instanceof Draft)) {
代码示例来源:origin: perfectsense/brightspot-cms
objectId = ((Draft) object).getObjectId();
draftId = ((Draft) object).getId();
object = Query.fromAll().where("_id = ?", objectId).resolveInvisible().first();
object = Query.fromAll().where("_id = ?", objectId).resolveInvisible().first();
overlayObject = Query.fromAll()
.where("_id = ?", overlayId)
.resolveInvisible()
.first();
.where("_id = ?", overlay.getContentId())
.noCache()
.resolveInvisible()
.first();
object = Query.fromType(selectedType).where("_id = ?", objectId).resolveInvisible().first();
object = Query.fromType(selectedType).resolveInvisible().first();
内容来源于网络,如有侵权,请联系作者删除!