本文整理了Java中com.psddev.dari.db.Query.findIdOnlyQueryValues
方法的一些代码示例,展示了Query.findIdOnlyQueryValues
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findIdOnlyQueryValues
方法的具体详情如下:
包路径:com.psddev.dari.db.Query
类名称:Query
方法名:findIdOnlyQueryValues
[英]Returns a list of values to be matched against the ID if and only if the query contains a single predicate in the form of _id = ?.
[中]当且仅当查询包含一个_ID=?形式的谓词时,返回要与ID匹配的值列表?。
代码示例来源:origin: perfectsense/dari
@Override
public <T> List<T> readAll(Query<T> query) {
if (checkReplicationCache(query)) {
List<Object> ids = query.findIdOnlyQueryValues();
if (ids != null && !ids.isEmpty()) {
List<T> objects = findObjectsFromReplicationCache(ids, query);
return objects != null ? objects : new ArrayList<>();
}
}
return super.readAll(query);
}
代码示例来源:origin: perfectsense/dari
@Override
public <T> List<T> readAll(Query<T> query) {
if (checkReplicationCache(query)) {
List<Object> ids = query.findIdOnlyQueryValues();
if (ids != null && !ids.isEmpty()) {
List<T> objects = findObjectsFromReplicationCache(ids, query);
return objects != null ? objects : new ArrayList<T>();
}
}
return selectListWithOptions(buildSelectStatement(query), query);
}
代码示例来源:origin: perfectsense/dari
List<Object> values = query.findIdOnlyQueryValues();
代码示例来源:origin: perfectsense/dari
List<Object> values = query.findIdOnlyQueryValues();
代码示例来源:origin: perfectsense/dari
ids = query.findIdOnlyQueryValues();
代码示例来源:origin: perfectsense/dari
ids = query.findIdOnlyQueryValues();
内容来源于网络,如有侵权,请联系作者删除!