Purpose: Represent an ORDER BY
Responsibilities:
Return a new OrderByNode. super();
super();
INTERNAL Add an Order By Item to this node getOrderByItems().add(theNode);
getOrderByItems().add(theNode);
INTERNAL Add the ordering expressions to the passed query if (theQuery.isReadAllQuery()) { Iterator iter = getOrderByItems().iterator(); while (iter.hasNext()) { Node nextNode = (Node)iter.next(); ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context)); } }
if (theQuery.isReadAllQuery()) { Iterator iter = getOrderByItems().iterator(); while (iter.hasNext()) { Node nextNode = (Node)iter.next(); ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context)); } }
INTERNAL Return the order by statements if (orderByItems == null) { setOrderByItems(new Vector()); } return orderByItems;
if (orderByItems == null) { setOrderByItems(new Vector()); } return orderByItems;
INTERNAL Set the order by statements orderByItems = newItems;
orderByItems = newItems;
INTERNAL Validate node. for (Iterator i = orderByItems.iterator(); i.hasNext(); ) { Node item = (Node)i.next(); item.validate(context); }
for (Iterator i = orderByItems.iterator(); i.hasNext(); ) { Node item = (Node)i.next(); item.validate(context); }