FileDocCategorySizeDatePackage
AndNode.javaAPI DocGlassfish v2 API2945Tue May 22 16:54:36 BST 2007oracle.toplink.essentials.internal.parsing

AndNode

public class AndNode extends LogicalOperatorNode
INTERNAL

Purpose: Represent an AND in EJBQL

Responsibilities:

  • Generate the correct expression for an AND in EJBQL
author
Jon Driscoll and Joel Lucuik
since
TopLink 4.0

Fields Summary
Constructors Summary
public AndNode()
AndNode constructor comment.

        super();
    
Methods Summary
public oracle.toplink.essentials.expressions.ExpressiongenerateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Return a TopLink expression by 'AND'ing the expressions from the left and right nodes

        // Get the left expression
        Expression whereClause = getLeft().generateExpression(context);

        // Or it with whatever the right expression is
        whereClause = whereClause.and(getRight().generateExpression(context));

        // and return the expression...
        return whereClause;