io.ebean.Query.setCountDistinct()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中io.ebean.Query.setCountDistinct方法的一些代码示例,展示了Query.setCountDistinct的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setCountDistinct方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:setCountDistinct

Query.setCountDistinct介绍

[英]Extended version for setDistinct in conjunction with "findSingleAttributeList";

List> orderStatusCount =// produces 
count:3 orderStatus:NEW 
count:1 orderStatus:SHIPPED 
count:1 orderStatus:COMPLETE 
}

[中]setDistinct与“findSingleAttributeList”结合使用的扩展版本

List> orderStatusCount =// produces 
count:3 orderStatus:NEW 
count:1 orderStatus:SHIPPED 
count:1 orderStatus:COMPLETE 
}

代码示例

代码示例来源:origin: ebean-orm/ebean

@Override
public Query<T> setCountDistinct(CountDistinctOrder orderBy) {
 return query.setCountDistinct(orderBy);
}

代码示例来源:origin: org.actframework/act-ebean2

@Override
public Query<MODEL_TYPE> setCountDistinct(CountDistinctOrder countDistinctOrder) {
  q.setCountDistinct(countDistinctOrder);
  return this;
}

代码示例来源:origin: org.actframework/act-ebean

@Override
public Query<MODEL_TYPE> setCountDistinct(CountDistinctOrder countDistinctOrder) {
  q.setCountDistinct(countDistinctOrder);
  qReadOnly.setCountDistinct(countDistinctOrder);
  return this;
}

代码示例来源:origin: io.ebean/ebean

@Override
public Query<T> setCountDistinct(CountDistinctOrder orderBy) {
 return query.setCountDistinct(orderBy);
}

相关文章

Query类方法