dk.eobjects.metamodel.query
Class OrderByItem

Package class diagram package OrderByItem
java.lang.Object
  extended by dk.eobjects.metamodel.query.OrderByItem
All Implemented Interfaces:
IQueryItem, java.io.Serializable, java.lang.Cloneable

public class OrderByItem
extends java.lang.Object
implements IQueryItem, java.lang.Cloneable

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.

See Also:
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()
           
 boolean equals(java.lang.Object obj)
           
 OrderByItem.Direction getDirection()
           
 Query getQuery()
           
 SelectItem getSelectItem()
           
 boolean isAscending()
           
 boolean isDescending()
           
 OrderByItem setDirection(OrderByItem.Direction direction)
           
 OrderByItem setQuery(Query query)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderByItem

public OrderByItem(SelectItem selectItem,
                   OrderByItem.Direction direction)
Creates an OrderByItem

Parameters:
selectItem - the select item to order
direction - the direction to order the select item

OrderByItem

@Deprecated
public OrderByItem(SelectItem selectItem,
                              boolean ascending)
Deprecated. user OrderByItem(SelectItem, Direction) instead

Creates an OrderByItem

Parameters:
selectItem -
ascending -

OrderByItem

public OrderByItem(SelectItem selectItem)
Creates an ascending OrderByItem

Parameters:
selectItem -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

isAscending

public boolean isAscending()

isDescending

public boolean isDescending()

getDirection

public OrderByItem.Direction getDirection()

setDirection

public OrderByItem setDirection(OrderByItem.Direction direction)

getSelectItem

public SelectItem getSelectItem()

getQuery

public Query getQuery()
Specified by:
getQuery in interface IQueryItem

setQuery

public OrderByItem setQuery(Query query)
Specified by:
setQuery in interface IQueryItem

clone

protected OrderByItem clone()
Overrides:
clone in class java.lang.Object


Copyright © 2007-2010. All Rights Reserved.