public class OrderByItem extends BaseObject implements QueryItem, Cloneable
OrderByClause,
SelectItem,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
OrderByItem.Direction |
| Constructor and Description |
|---|
OrderByItem(SelectItem selectItem)
Creates an ascending OrderByItem
|
OrderByItem(SelectItem selectItem,
OrderByItem.Direction direction)
Creates an OrderByItem
|
| Modifier and Type | Method and Description |
|---|---|
protected OrderByItem |
clone() |
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list
that are to be included in equals(...) and hashCode() evaluation
|
OrderByItem.Direction |
getDirection() |
Query |
getQuery() |
SelectItem |
getSelectItem() |
boolean |
isAscending() |
boolean |
isDescending() |
OrderByItem |
setDirection(OrderByItem.Direction direction) |
OrderByItem |
setQuery(Query query) |
String |
toSql() |
String |
toSql(boolean includeSchemaInColumnPaths) |
String |
toString() |
classEquals, equals, hashCodepublic OrderByItem(SelectItem selectItem, OrderByItem.Direction direction)
selectItem - the select item to orderdirection - the direction to order the select itempublic OrderByItem(SelectItem selectItem)
selectItem - public String toSql(boolean includeSchemaInColumnPaths)
public boolean isAscending()
public boolean isDescending()
public OrderByItem.Direction getDirection()
public OrderByItem setDirection(OrderByItem.Direction direction)
public SelectItem getSelectItem()
public OrderByItem setQuery(Query query)
protected OrderByItem clone()
protected void decorateIdentity(List<Object> identifiers)
BaseObjectdecorateIdentity in class BaseObjectpublic String toString()
toString in interface QueryItemtoString in class BaseObjectCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.