Purpose: Used to resolve the LENGTH Function in EJBQL
Responsibilities:
LengthNode constructor comment. super();
super();
INTERNAL Generate the TopLink expression for this node Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.length(); return whereClause;
Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.length(); return whereClause;
INTERNAL Validate the current node and calculates its type. TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getStringType()); } setType(typeHelper.getIntType());
TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getStringType()); } setType(typeHelper.getIntType());