Search in sources :

Example 1 with SqlOrderByValue

use of de.metas.ui.web.window.descriptor.sql.SqlOrderByValue in project metasfresh-webui-api by metasfresh.

the class SqlDocumentOrderByBuilder method buildSqlOrderBy.

private final IStringExpression buildSqlOrderBy(final DocumentQueryOrderBy orderBy) {
    final String fieldName = orderBy.getFieldName();
    final SqlOrderByValue sqlExpression = bindings.getFieldOrderBy(fieldName);
    return buildSqlOrderBy(sqlExpression, orderBy.isAscending(), orderBy.isNullsLast());
}
Also used : SqlOrderByValue(de.metas.ui.web.window.descriptor.sql.SqlOrderByValue)

Aggregations

SqlOrderByValue (de.metas.ui.web.window.descriptor.sql.SqlOrderByValue)1