public class OrderByItem extends BaseObject implements QueryItem, Cloneable
OrderByClause
,
SelectItem
,
Serialized FormModifier 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, hashCode
public 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)
BaseObject
decorateIdentity
in class BaseObject
public String toString()
toString
in interface QueryItem
toString
in class BaseObject
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.