FileDocCategorySizeDatePackage
LowerNode.javaAPI DocGlassfish v2 API3055Tue May 22 16:54:38 BST 2007oracle.toplink.essentials.internal.parsing

LowerNode

public class LowerNode extends StringFunctionNode
INTERNAL

Purpose: Represent a LOWER

Responsibilities:

  • Generate the correct expression for LOWER

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

        super();
    
Methods Summary
public oracle.toplink.essentials.expressions.ExpressiongenerateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Generate the TopLink expression for this node

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

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