public class DefaultOrderBySort extends Object implements OrderBySort
OrderBySort implementation.com.holonplatform.core.query.QuerySort.CompositeQuerySort, com.holonplatform.core.query.QuerySort.PathQuerySort<T>, com.holonplatform.core.query.QuerySort.QuerySortResolver<T extends com.holonplatform.core.query.QuerySort>, com.holonplatform.core.query.QuerySort.QuerySortSupport<C extends com.holonplatform.core.query.QuerySort.QuerySortSupport<C>>, com.holonplatform.core.query.QuerySort.SortDirection| Constructor and Description |
|---|
DefaultOrderBySort(String sql)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSQL()
Get the order by directives as sql.
|
String |
toString() |
void |
validate() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreatepublic DefaultOrderBySort(String sql)
sql - The SQL order by declarationpublic String getSQL()
OrderBySort
NOTE: The ORDER BY clause string should not be included.
getSQL in interface OrderBySortpublic void validate()
throws com.holonplatform.core.Expression.InvalidExpressionException
validate in interface com.holonplatform.core.Expressioncom.holonplatform.core.Expression.InvalidExpressionExceptionCopyright © 2019 The Holon Platform. All rights reserved.