本文整理了Java中dk.eobjects.metamodel.query.Query.groupBy
方法的一些代码示例,展示了Query.groupBy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.groupBy
方法的具体详情如下:
包路径:dk.eobjects.metamodel.query.Query
类名称:Query
方法名:groupBy
暂无
代码示例来源:origin: dk.eobjects.datacleaner/DataCleaner-core
_column.getTable()).where(
new FilterItem(items.toArray(new FilterItem[items.size()])))
.groupBy(new GroupByItem(selectItem));
List<Object[]> queryResult = _dataContext.executeQuery(q)
.toObjectArrays();
代码示例来源:origin: dk.eobjects.datacleaner/DataCleaner-core
/**
* Convenience method to create a base query for matrix values based on a
* specific column (where only the columns content is of interest).
*/
protected Query getBaseQuery(Column column) {
return new Query().from(column.getTable()).select(
new SelectItem(column)).selectCount().groupBy(column);
}
代码示例来源:origin: dk.eobjects.datacleaner/DataCleaner-core
SelectItem countAllItem = SelectItem.getCountAllItem();
q.select(countAllItem);
q.groupBy(columnsToQuery);
DataSet data = dataContext.executeQuery(q);
代码示例来源:origin: dk.eobjects.commons/MetaModel
SelectItem countAllItem = SelectItem.getCountAllItem();
Query q = new Query().select(foreignColumns).select(
countAllItem).from(table).groupBy(foreignColumns);
DataSet data = executeQuery(q);
Comparable<Object> comparable = NumberComparator
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-xml
countAllItem).from(table).groupBy(
foreignColumns);
DataSet data = executeQuery(q);
代码示例来源:origin: dk.eobjects.commons/MetaModel
@Override
public Query clone() {
Query q = new Query();
q.setMaxRows(_maxRows);
q.getSelectClause().setDistinct(_selectClause.isDistinct());
for (FromItem item : _fromClause.getItems()) {
q.from(item.clone());
}
for (SelectItem item : _selectClause.getItems()) {
q.select(item.clone());
}
for (FilterItem item : _whereClause.getItems()) {
q.where(item.clone());
}
for (GroupByItem item : _groupByClause.getItems()) {
q.groupBy(item.clone());
}
for (FilterItem item : _havingClause.getItems()) {
q.having(item.clone());
}
for (OrderByItem item : _orderByClause.getItems()) {
q.orderBy(item.clone());
}
return q;
}
}
内容来源于网络,如有侵权,请联系作者删除!