|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.BaseObject
org.eobjects.metamodel.query.OrderByItem
public class OrderByItem
Represents an ORDER BY item. An OrderByItem sorts the resulting DataSet according to a SelectItem that may or may not be a part of the query already.
OrderByClause,
SelectItem,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
OrderByItem.Direction
|
| Constructor Summary | |
|---|---|
OrderByItem(SelectItem selectItem)
Creates an ascending OrderByItem |
|
OrderByItem(SelectItem selectItem,
boolean ascending)
Deprecated. user OrderByItem(SelectItem, Direction) instead |
|
OrderByItem(SelectItem selectItem,
OrderByItem.Direction direction)
Creates an OrderByItem |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.eobjects.metamodel.util.BaseObject |
|---|
classEquals, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrderByItem(SelectItem selectItem,
OrderByItem.Direction direction)
selectItem - the select item to orderdirection - the direction to order the select item
@Deprecated
public OrderByItem(SelectItem selectItem,
boolean ascending)
selectItem - ascending - public OrderByItem(SelectItem selectItem)
selectItem - | Method Detail |
|---|
public String toSql(boolean includeSchemaInColumnPaths)
toSql in interface QueryItempublic String toSql()
toSql in interface QueryItempublic boolean isAscending()
public boolean isDescending()
public OrderByItem.Direction getDirection()
public OrderByItem setDirection(OrderByItem.Direction direction)
public SelectItem getSelectItem()
public Query getQuery()
getQuery in interface QueryItempublic OrderByItem setQuery(Query query)
setQuery in interface QueryItemprotected OrderByItem clone()
clone in class Objectprotected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity in class BaseObjectpublic String toString()
toString in interface QueryItemtoString in class BaseObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||