本文整理了Java中io.ebean.Query.orderBy
方法的一些代码示例,展示了Query.orderBy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.orderBy
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:orderBy
[英]Return the OrderBy so that you can append an ascending or descending property to the order by clause.
This will never return a null. If no order by clause exists then an 'empty' OrderBy object is returned.
This is EXACTLY the same as #order().
[中]返回OrderBy,以便可以将升序或降序属性附加到OrderBy子句。
这永远不会返回空值。如果不存在OrderBy子句,则返回一个“空”OrderBy对象。
这与#order()完全相同。
代码示例来源:origin: ebean-orm/ebean
@Override
public Query<T> orderBy(String orderBy) {
return rootQuery.orderBy(orderBy);
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public EbeanQuery<MODEL_TYPE> orderBy(String orderByClause) {
q.orderBy(orderByClause);
return this;
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public OrderBy<MODEL_TYPE> orderBy() {
return q.orderBy();
}
代码示例来源:origin: io.ebean/ebean
@Override
public Query<T> orderBy(String orderBy) {
return rootQuery.orderBy(orderBy);
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public OrderBy<MODEL_TYPE> orderBy() {
return q.orderBy();
}
代码示例来源:origin: io.ebean/ebean-querybean
/**
* Set the full raw order by clause replacing the existing order by clause if there is one.
* <p>
* This follows SQL syntax using commas between each property with the
* optional asc and desc keywords representing ascending and descending order
* respectively.
* </p>
* <p>
* This is EXACTLY the same as {@link #order(String)}.
* </p>
*/
public R orderBy(String orderByClause) {
query.orderBy(orderByClause);
return root;
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public EbeanQuery<MODEL_TYPE> orderBy(String orderByClause) {
if (S.blank(orderByClause)) {
return this;
}
q.orderBy(orderByClause);
qReadOnly.orderBy(orderByClause);
return this;
}
代码示例来源:origin: icode/ameba
/**
* <p>defaultFindOrderBy.</p>
*
* @param query a {@link io.ebean.Query} object.
*/
protected void defaultFindOrderBy(Query<MODEL> query) {
if (StringUtils.isNotBlank(defaultFindOrderBy)) {
// see if we should use the default orderBy clause
OrderBy<MODEL> orderBy = query.orderBy();
if (orderBy.isEmpty()) {
query.orderBy(defaultFindOrderBy);
}
}
}
代码示例来源:origin: icode/ameba
/**
* {@inheritDoc}
* <p>
* Set the <code>order by</code> clause replacing the existing <code>order by</code> clause if there is one.
* </p>
* This is exactly the same as {@link #order(String)}.
*/
public Query<T> orderBy(String orderByClause) {
return query().orderBy(orderByClause);
}
代码示例来源:origin: icode/ameba
/**
* Returns the <code>order by</code> clause so that you can append an ascending or descending property to the <code>order by</code> clause.
* This is exactly the same as {@link #order}.
*
* @return a {@link io.ebean.OrderBy} object.
*/
public OrderBy<T> orderBy() {
return query().orderBy();
}
代码示例来源:origin: icode/ameba
/**
* <p>applyOrderBy.</p>
*
* @param queryParams a {@link javax.ws.rs.core.MultivaluedMap} object.
* @param query a {@link io.ebean.Query} object.
*/
public static void applyOrderBy(MultivaluedMap<String, String> queryParams, Query query) {
List<String> orders = queryParams.get(SORT_PARAM_NAME);
if (orders != null && orders.size() > 0) {
OrderBy orderBy = query.orderBy();
for (String order : orders) {
EbeanUtils.appendOrder(orderBy, order);
}
}
}
代码示例来源:origin: org.actframework/act-ebean
private void syncEbeanQueries() {
_sync("detail");
q.orderBy();
_sync("orderBy");
q.text();
_sync("textExpressions");
q.where();
_sync("whereExpressions");
q.having();
_sync("havingExpressions");
}
内容来源于网络,如有侵权,请联系作者删除!