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

UpperNode

public class UpperNode extends StringFunctionNode
INTERNAL

Purpose: Represent a UPPER

Responsibilities:

  • Generate the correct expression for UPPER

Fields Summary
Constructors Summary
public UpperNode()
UpperNode 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.toUpperCase();
        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());