本文整理了Java中io.ebean.Query.setOrderBy
方法的一些代码示例,展示了Query.setOrderBy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setOrderBy
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:setOrderBy
[英]Set an OrderBy object to replace any existing OrderBy clause.
This is EXACTLY the same as #setOrder(OrderBy).
[中]设置OrderBy对象以替换任何现有的OrderBy子句。
这与#setOrder(OrderBy)完全相同。
代码示例来源:origin: org.actframework/act-ebean
@Override
public EbeanQuery<MODEL_TYPE> setOrderBy(OrderBy<MODEL_TYPE> orderBy) {
q.setOrderBy(orderBy);
qReadOnly.setOrderBy(orderBy);
return this;
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public EbeanQuery<MODEL_TYPE> setOrderBy(OrderBy<MODEL_TYPE> orderBy) {
q.setOrderBy(orderBy);
return this;
}
代码示例来源:origin: icode/ameba
/**
* {@inheritDoc}
* <p>
* Set an OrderBy object to replace any existing <code>order by</code> clause.
* </p>
* This is exactly the same as {@link #setOrder(io.ebean.OrderBy)}.
*/
public Query<T> setOrderBy(OrderBy<T> orderBy) {
return query().setOrderBy(orderBy);
}
内容来源于网络,如有侵权,请联系作者删除!