|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.query.base.OrderByExpression
public class OrderByExpression
The OrderByExpression class represents an order by expression in an order by clause in the query framework.
This class contains an order by element and an operator to describe a typical order by expression in an order by clause. For example, "order by age in ascending order" will be decomposed as order by element = Attribute("age"), operator = Operator("ASC")
Constructor Summary | |
---|---|
OrderByExpression()
Creates a new OrderByExpression instance, default constructor. |
|
OrderByExpression(IOperator newOperator,
IOrderByElement newOrderByElement)
Creates a new OrderByExpression instance with the given operator and order by element. |
Method Summary | |
---|---|
java.lang.String |
buildString(ISelectQueryCallback builder)
Builds a query string for the condition. |
void |
buildString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
|
boolean |
equals(java.lang.Object o)
Tests for equality with the given object. |
IOperator |
getOperator()
Returns the operator. |
IOrderByElement |
getOrderByElement()
Returns the order by element. |
int |
hashCode()
Computes a hash code for the order by expression. |
void |
setOperator(IOperator newOperator)
Sets the operator of the order by expression. |
void |
setOrderByElement(IOrderByElement newOrderByElement)
Sets the order by element of the order by expression. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderByExpression()
public OrderByExpression(IOperator newOperator, IOrderByElement newOrderByElement)
Method Detail |
---|
public java.lang.String buildString(ISelectQueryCallback builder) throws QueryException
buildString
in interface IStringBuilder
QueryException
public void buildString(ISelectQueryCallback builder, java.lang.StringBuffer sb) throws QueryException
buildString
in interface IStringBuilder
QueryException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public IOperator getOperator()
getOperator
in interface IOrderByExpression
public IOrderByElement getOrderByElement()
getOrderByElement
in interface IOrderByExpression
public int hashCode()
hashCode
in class java.lang.Object
public void setOperator(IOperator newOperator)
public void setOrderByElement(IOrderByElement newOrderByElement)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |