本文整理了Java中io.ebean.Query.findFutureCount
方法的一些代码示例,展示了Query.findFutureCount
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findFutureCount
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:findFutureCount
[英]Execute find row count query in a background thread.
This returns a Future object which can be used to cancel, check the execution status (isDone etc) and get the value (with or without a timeout).
[中]在后台线程中执行查找行计数查询。
这将返回一个未来的对象,可用于取消、检查执行状态(isDone等)和获取值(有或没有超时)。
代码示例来源:origin: ebean-orm/ebean
@Override
public FutureRowCount<T> findFutureCount() {
return query.findFutureCount();
}
代码示例来源:origin: ebean-orm/ebean
@Override
public FutureRowCount<T> findFutureCount() {
return rootQuery.findFutureCount();
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public FutureRowCount<MODEL_TYPE> findFutureCount() {
return q.findFutureCount();
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public FutureRowCount<MODEL_TYPE> findFutureCount() {
return qReadOnly.findFutureCount();
}
代码示例来源:origin: io.ebean/ebean
@Override
public FutureRowCount<T> findFutureCount() {
return query.findFutureCount();
}
代码示例来源:origin: io.ebean/ebean
@Override
public FutureRowCount<T> findFutureCount() {
return rootQuery.findFutureCount();
}
代码示例来源:origin: io.ebean/ebean-querybean
/**
* Execute find row count query in a background thread.
* <p>
* This returns a Future object which can be used to cancel, check the
* execution status (isDone etc) and get the value (with or without a
* timeout).
* </p>
*
* @return a Future object for the row count query
*/
@Nonnull
public FutureRowCount<T> findFutureCount() {
return query.findFutureCount();
}
代码示例来源:origin: icode/ameba
/**
* Executes a find row count query in a background thread.
*
* @return a {@link io.ebean.FutureRowCount} object.
*/
public FutureRowCount<T> findFutureCount() {
return query().findFutureCount();
}
代码示例来源:origin: icode/ameba
/**
* <p>fetchRowCount.</p>
*
* @param queryParams a {@link javax.ws.rs.core.MultivaluedMap} object.
* @param query a {@link io.ebean.Query} object.
* @return a {@link io.ebean.FutureRowCount} object.
*/
public static FutureRowCount fetchRowCount(MultivaluedMap<String, String> queryParams, Query query) {
String reqTotalCount = getSingleParam(queryParams.get(REQ_TOTAL_COUNT_PARAM_NAME));
if (reqTotalCount != null && !"false".equalsIgnoreCase(reqTotalCount) && !"0".equals(reqTotalCount)) {
return query.findFutureCount();
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!