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

WhereNode

public class WhereNode extends MajorNode
INTERNAL

Purpose: Represent a WHERE

Responsibilities:

  • Apply this where clause to a query
author
Jon Driscoll
since
TopLink 5.0

Fields Summary
Constructors Summary
Methods Summary
public oracle.toplink.essentials.expressions.ExpressiongenerateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL

param
context The generation context
return
A TopLink expression

        Expression whereClause = null;
        if (getLeft() != null) {
            whereClause = getLeft().generateExpression(context);
        }
        return whereClause;
    
public voidvalidate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Validate node and calculate its type.

        if (left != null) {
            left.validate(context);
            TypeHelper typeHelper = context.getTypeHelper();
            setType(typeHelper.getBooleanType());
        }