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

BooleanLiteralNode

public class BooleanLiteralNode extends LiteralNode
INTERNAL

Purpose: Represent an BOOLEAN 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 BooleanLiteralNode()

    
public BooleanLiteralNode(Boolean thisBoolean)

        setLiteral(thisBoolean);
    
public BooleanLiteralNode(boolean thisBoolean)

        setLiteral(new Boolean(thisBoolean));
    
Methods Summary
public voidvalidate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Validate node and calculate its type.

        TypeHelper typeHelper = context.getTypeHelper();
        setType(typeHelper.getBooleanType());