FileDocCategorySizeDatePackage
SortDirectionNode.javaAPI DocGlassfish v2 API3234Tue May 22 16:54:40 BST 2007oracle.toplink.essentials.internal.parsing

SortDirectionNode

public class SortDirectionNode extends Node
INTERNAL

Purpose: Represent a Sort Direction for an Order By Item

Responsibilities:

  • Apply itself to a query correctly This node represents either an ASC or DESC encountered on the input stream e.g SELECT ... FROM ... WHERE ... ORDER BY emp.salary ASC
author
Jon Driscoll
since
TopLink 5.0

Fields Summary
private int
sortDirection
Constructors Summary
Methods Summary
public oracle.toplink.essentials.expressions.ExpressionaddToExpression(oracle.toplink.essentials.expressions.Expression parentExpression, oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Return the parent expression unmodified


               
          
        return parentExpression.getFunction(getSortDirection());
    
public intgetSortDirection()

        return sortDirection;
    
public voidsetSortDirection(int sortDirection)

        this.sortDirection = sortDirection;
    
public voiduseAscending()

        setSortDirection(ExpressionOperator.Ascending);
    
public voiduseDescending()

        setSortDirection(ExpressionOperator.Descending);